design-system-patterns

Define design tokens and implement theming with CSS custom properties.

Updated Feb 11, 2026
One-click install
npx skills add https://github.com/daodaolee/ai-driven-sdlc --skill design-system-patterns-daodaolee
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: design-system-patterns
Source: https://github.com/daodaolee/ai-driven-sdlc/tree/main/.agents/skills/design-system-patterns
Command: npx skills add https://github.com/daodaolee/ai-driven-sdlc --skill design-system-patterns-daodaolee

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the complexity of building and maintaining consistent, scalable, and accessible user interfaces by providing patterns and infrastructure for robust design systems.

Core Features & Use Cases

  • Design Tokens: Define and manage primitive and semantic design tokens for colors, typography, spacing, etc.
  • Theming: Implement dynamic theming (light/dark modes, multi-brand) using CSS custom properties and React context.
  • Component Architecture: Utilize patterns like compound components, polymorphic components, and slots for flexible and reusable UI elements.
  • Use Case: A team needs to establish a design system for a new web application that will eventually support multiple brands. This Skill provides the foundational patterns for tokens, theming, and component structure to ensure consistency and scalability.

Quick Start

Use the design-system-patterns skill to create design tokens for colors, typography, and spacing.

Frequently Asked Questions about design-system-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure design tokens for a scalable multi-brand web application?

Structure design tokens by defining primitive and semantic layers for colors, typography, and spacing. This hierarchy separates raw values from contextual meanings, enabling scalable theming infrastructure and consistent UI development across multiple brands.

What is the best way to implement dynamic light and dark mode theming in a component library?

Implement dynamic theming by mapping semantic design tokens to CSS custom properties and managing theme state via React context. This approach allows components to dynamically switch between light and dark modes without altering component architecture.

How do compound components and slots improve UI component architecture?

Compound components and slots improve UI component architecture by enabling flexible composition and reusable UI elements. These patterns allow developers to build complex, polymorphic components while maintaining strict design token adherence and accessibility.

Can I use CSS custom properties for design-to-code workflows without external dependencies?

Yes, you can use CSS custom properties to establish design-to-code workflows without external dependencies. By binding semantic design tokens directly to custom properties, you create a native theming infrastructure that synchronizes UI development with design specifications.

When do I need to establish a design token hierarchy for my UI development?

You need to establish a design token hierarchy when building consistent, scalable user interfaces that require dynamic theming or multi-brand support. Defining primitive and semantic tokens early ensures foundational consistency for component library development and future scalability.