dec-design-system-depth
Installation
SKILL.md
Design System Depth
A real design system is token architecture + component contracts + governance — not a Figma file of colors.
- Three-Tier Token Architecture:
- Primitive / Global — raw values (
blue-500,space-4). - Semantic / Alias — intent-mapped (
color-action-primary,space-inset-md). - Component-Specific — scoped (
button-bg-hover). Components only ever consume semantic/component tiers, never primitives.
- Primitive / Global — raw values (
- W3C DTCG Format & Tooling: Design Tokens Community Group spec; Style Dictionary and Tokens Studio transform one source into CSS / iOS / Android / JSON.
- Scales as Systems: 4pt/8pt spacing grid, modular type scale (e.g. 1.25 ratio), constrained color ramps. Decisions become lookups.
- Component API Design: Props as the contract; variants, sizes, and states as enumerable options; compound components and slots for composition; sensible defaults so the easy thing is the right thing.
- Headless / Unstyled Primitives: Radix, React Aria, Ark — accessibility and behavior solved in the primitive, styling left to the system. The modern foundation.
- Documentation as Product: Storybook for live docs; usage guidelines, do/don't, props tables treated as part of the deliverable.
- Governance & Versioning: Contribution models, semver for breaking changes, deprecation paths, adoption metrics.