design-system-patterns

Create scalable design systems using design tokens, theming, and component patterns.

Updated Dec 16, 2025
One-click install
npx skills add https://github.com/EanLee/article-write --skill design-system-patterns-eanlee
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: design-system-patterns
Source: https://github.com/EanLee/article-write/tree/main/.github/skills/design-system-patterns
Command: npx skills add https://github.com/EanLee/article-write --skill design-system-patterns-eanlee

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive framework for building scalable, maintainable, and consistent design systems, bridging the gap between design and development.

Core Features & Use Cases

  • Design Tokens: Define and manage primitive, semantic, and component tokens for colors, typography, spacing, etc.
  • Theming Infrastructure: Implement dynamic theme switching (light/dark, multi-brand) using CSS custom properties and React context.
  • Component Architecture: Leverage patterns like compound components, polymorphic components, and slot patterns for flexible UI development.
  • Use Case: When establishing a new design system for a large organization with multiple product lines, use this Skill to define token hierarchies, implement a robust theming system, and guide the development of reusable component libraries.

Quick Start

Use the design-system-patterns skill to generate CSS custom properties for a light and dark theme based on the provided primitive color tokens.

Frequently Asked Questions about design-system-patterns

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

FAQPage Schema
How do I build a scalable design system with React context and CSS custom properties?

To build a scalable design system, use this skill to implement theming infrastructure via CSS custom properties and React context, and structure component architecture using compound and polymorphic patterns for maintainable UI development.

How do I manage design tokens for a multi-brand UI component architecture?

Manage design tokens by defining primitive, semantic, and component tokens for colors, typography, and spacing. This skill systematically applies these token hierarchies to ensure consistency across multiple product lines and platforms.

What is the best way to implement light and dark theme switching in a frontend design system?

The best way to implement light and dark theme switching is by generating CSS custom properties mapped to your primitive color tokens. This skill provides the infrastructure to dynamically toggle these themes within your UI.

Do I need to understand component composition patterns to use this design system skill?

Yes, you need an existing understanding of CSS custom properties, React context, and component composition patterns like compound and polymorphic components to effectively build and maintain robust design systems with this skill.

When should I use compound and polymorphic components in UI engineering?

Use compound and polymorphic components when establishing a new design system for large organizations requiring flexible UI development. This skill leverages these patterns to ensure component reusability across multiple product lines.

Why use semantic and component level design tokens instead of primitive tokens alone?

Using semantic and component level design tokens bridges the gap between design and development by mapping primitive values to contextual meanings. This ensures maintainability and multi-platform support across your UI components.