Add Apache 2.0 license file and validation reference to guide pattern usage and checks. New Features - Introduce LICENSE.txt with full Apache 2.0 terms for frontend‑design assets - Add validation.md describing when to add patterns and how to perform validation checks Enhancements - Document project configuration files (pyproject.toml, requirements.txt, uv.lock) for reproducibility
1.0 KiB
1.0 KiB
Memory Management
When and how to update .interface-design/system.md.
When to Add Patterns
Add to system.md when:
- Component used 2+ times
- Pattern is reusable across the project
- Has specific measurements worth remembering
Pattern Format
### Button Primary
- Height: 36px
- Padding: 12px 16px
- Radius: 6px
- Font: 14px, 500 weight
Don't Document
- One-off components
- Temporary experiments
- Variations better handled with props
Pattern Reuse
Before creating a component, check system.md:
- Pattern exists? Use it.
- Need variation? Extend, don't create new.
Memory compounds: each pattern saved makes future work faster and more consistent.
Validation Checks
If system.md defines specific values, check consistency:
Spacing — All values multiples of the defined base?
Depth — Using the declared strategy throughout? (borders-only means no shadows)
Colors — Using defined palette, not random hex codes?
Patterns — Reusing documented patterns instead of creating new?