Loading...
Loading...
Builds scalable design systems with tokens, theming, and component architecture. Use when creating design token hierarchies, theming systems, component variant patterns, or accessibility foundations. Use for design tokens, CVA variants, dark mode, multi-brand theming, Radix headless UI, Storybook documentation, and governance.
npx skill4agent add oakoss/agent-skills design-system| Area | Pattern | Key Points |
|---|---|---|
| Token hierarchy | Primitive > Semantic > Component | Never reference primitives in components; semantic layer is themable |
| Dark mode | Swap semantic tokens via | Use off-white/dark-gray, not pure white/black |
| Multi-brand theming | Override semantic tokens per brand | Apply via CSS custom properties at runtime |
| Tailwind v4 | | CSS-first configuration replaces |
| CVA variants | | Type-safe with |
| Compound components | | Composition over configuration; shared context for implicit state |
| Headless UI | Radix primitives + Tailwind classes | Accessibility built-in; bring your own styles |
| Focus management | | 2px solid outline with offset; visible on keyboard only |
| Reduced motion | | Near-zero duration for all transitions and animations |
| Style Dictionary | JSON tokens to CSS/iOS/Android | |
| Storybook | Stories + autodocs + a11y addon | Visual documentation with accessibility audit built in |
| Governance | Semver for tokens and components | Breaking = removed props/tokens; minor = new additions |
| Mistake | Correct Pattern |
|---|---|
Primitive tokens in components ( | Reference semantic tokens ( |
| Skipping focus states on interactive elements | Add |
Body text set to | Use |
| Circular token references between layers | Tokens flow one direction: primitive > semantic > component |
Ignoring | Wrap all animations in a reduced-motion media query |
Using | Use |
| Hardcoded hex/px values in component files | All visual values come from semantic or component tokens |
| Deep CSS nesting for theme overrides | Override CSS custom properties at the semantic layer |
| Theme flash on page load (FOUC) | Inject synchronous theme script in |
| Flat token list without layers | Organize into primitive, semantic, and component tiers |
ExploreTaskPlanTaskIf theskill is available, delegate animation token integration and motion design patterns to it.motion