design-system-patterns

Standardize design system patterns across tokens, theming, and component APIs.

Updated Mar 27, 2024
One-click install
npx skills add https://github.com/boomNDS/new_portfolio --skill design-system-patterns-boomnds
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: design-system-patterns
Source: https://github.com/boomNDS/new_portfolio/tree/main/.agents/skills/design-system-patterns
Command: npx skills add https://github.com/boomNDS/new_portfolio --skill design-system-patterns-boomnds

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Design teams need scalable, maintainable patterns to build and evolve design systems across tokens, theming, and components.

Core Features & Use Cases

  • Design Tokens: primitive, semantic, and component tokens with a clear hierarchy.
  • Theming Infrastructure: CSS variables, theme context, and multi-brand theming capabilities.
  • Component Architecture: patterns for compound components, polymorphic components, slots, headless patterns, and CVA-based variants.
  • Token Pipeline: bridges design-to-code with Figma tokens, Style Dictionary configurations, and CI/CD workflows.

Quick Start

Define your token hierarchy and a simple light/dark theme to see the design system patterns in action.

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 theming system?

Implement multi-brand theming by mapping design tokens to CSS variables and managing theme context. This approach allows dynamic switching between themes while keeping token hierarchies consistent across different web platforms.

What is the best way to implement theme switching using CSS variables and design tokens?

Implement theme switching by binding semantic design tokens to CSS variables within a theme context provider. This allows the application to dynamically swap CSS variable values at runtime, instantly reflecting light, dark, or multi-brand themes.

How do I build reusable component libraries with slots and CVA patterns?

Build reusable component libraries using headless patterns for logic separation and CVA-based variants for styling. Define compound component APIs with slots to create flexible, polymorphic components that maintain consistent design system architecture.

Can I bridge Figma design tokens to code using a token pipeline?

Yes, you can bridge Figma design tokens to code by configuring a token pipeline with Style Dictionary. This automates the transformation of design tokens into platform-specific variables within CI/CD workflows, synchronizing design and development.

Does this design system pattern approach work for headless component architecture?

Yes, this approach explicitly supports headless component architecture by separating component logic from styling. It provides patterns for building accessible, unstyled components that consume design tokens and implement CVA-based variants for visual flexibility.