
This generates the full infrastructure for design systems, from primitive color tokens to CSS custom properties to React theme providers. It creates the three-layer token hierarchy (primitive, semantic, component) that scales across platforms, sets up Style Dictionary configs for multi-platform output, and builds variant systems with class-variance-authority. The theme switching implementation handles system preferences and persistence properly. Most design system tutorials skip the hard parts like token naming conventions and the CSS architecture that actually works in production. This gives you the complete foundation that design teams at companies like GitHub and Shopify actually use.
$ npx -y skills add wshobson/agents --skill design-system-patterns --agent claude-codeInstalls into .claude/skills of the current project.
Master design system architecture to create consistent, maintainable, and scalable UI foundations across web and mobile applications.
// Design tokens with CSS custom properties
const tokens = {
colors: {
// Primitive tokens
gray: {
50: "#fafafa",
100: "#f5f5f5",
900: "#171717",
},
blue: {
500: "#3b82f6",
600: "#2563eb",
},
},
// Semantic tokens (reference primitives)
semantic: {
light: {
"text-primary": "var(--color-gray-900)",
"text-secondary": "var(--color-gray-600)",
"surface-default": "var(--color-white)",
"surface-elevated": "var(--color-gray-50)",
"border-default": "var(--color-gray-200)",
"interactive-primary": "var(--color-blue-500)",
},
dark: {
"text-primary": "var(--color-gray-50)",
"text-secondary": "var(--color-gray-400)",
"surface-default": "var(--color-gray-900)",
"surface-elevated": "var(--color-gray-800)",
"border-default": "var(--color-gray-700)",
"interactive-primary": "var(--color-blue-400)",
},
},
};
Detailed pattern documentation lives in references/details.md. Read that file when the navigation tier above is insufficient.
Sponsors