“Code Patterns for Pattern-Making”
summary
A small-team workflow that treats design tokens as code and forces documentation first, built around Sass maps and a custom color function that defers execution so derived colors work. Templates live as Jinja/Nunjucks macros that emit markup and hide class complexity. Tooling includes auto-generated color palette JSON exports, Herman style-guide generator extensions, True tests and Sass‑Lint. Results: style-guide pages update automatically and reduce front-end handoff errors, though some Sass map solutions prove overengineered and get simplified.
AI-written summary · about
chapters (30)
- 0:00Intro
- 0:29Style Guides Maintainable Patterns
- 0:47Consistency, Clarity, Efficiency document ergo sum
- 2:02Context Matters
- 2:38Team Size & Structure?
- 3:09Internal vs. Consulting?
- 5:33Quality Architecture - Patterns in Code
- 6:09Patterns Combine Languages Design HTML CSS JavaScript
- 6:40Style Guides Represent Integration
- 7:00Maintenance Must be Integrated
- 7:48Pattern API
- 8:11Basics of CSS Web Architecture
- 9:16Separation of Concerns
- 9:39Specificity is Your Guide prefer the shallow and
- 10:36CSS Was Designed For Patterns
- 11:26These Elements Share a Border Style
- 12:44Patterns Should Add Meaning
- 13:48Naming Conventions
- 14:22What Is This?
- 16:45No Right Answer
- 16:55Abstract Patterns
- 22:11Make Documentation The Lazy Option
- 25:14Toolkits Are A Byproduct
- 27:07True Results
- 27:28Concrete Patterns
- 28:45Templates Should Look Like Templates I want to see the expected structure at a glance
- 29:10Related Class Patterns Data Attributes
- 29:49Jinja2: Icon Macros
- 31:36StyleGuide!
- 32:07Code Patterns are central to a pattern-driven design
