design-system-generator

Generates design tokens, React components, and Tailwind configuration for a design system.

1|Updated Aug 8, 2026
One-click install
npx skills add https://github.com/th-efool/SKILLS --skill design-system-generator-th-efool
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: design-system-generator
Source: https://github.com/th-efool/SKILLS/tree/main/design-system-generator
Command: npx skills add https://github.com/th-efool/SKILLS --skill design-system-generator-th-efool

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires class-variance-authority, clsx, tailwind-merge, and includes references (resource) components.

What problem does it solve? Building a consistent design system from scratch requires defining tokens, wiring build configuration, and implementing accessible base components, which is repetitive and error-prone when done manually. ## Core Features & Use Cases - Design Token Generation: Creates color, typography, spacing, shadow, and radius token files plus CSS variable setup for light and dark themes. - Base Component Library: Provides reference implementations of Button, Input, and Card components using class-variance-authority variants and a barrel export index. - Build Integration: Wires tokens into a Tailwind config and supplies the cn class-merge utility built on clsx and tailwind-merge. - Use Case: When starting a new React product, use this Skill to scaffold a token-driven design system with themed CSS variables, a Tailwind theme extension, and documented UI primitives ready for extension. ## Quick Start Generate a design system with brand colors, base Button and Input components, and a Tailwind config for my React project.

Frequently Asked Questions about design-system-generator

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

FAQPage Schema
How do I create a design system with Tailwind CSS?▼

Define design tokens for colors, typography, spacing, shadows, and radii as TypeScript files, then extend the Tailwind theme from those tokens in tailwind.config.js. Add CSS variables in globals.css for theming and build base components that consume the tokens.

How to build a Button component with variants in React?▼

Use class-variance-authority to define variant and size options with Tailwind classes, then merge them with the cn utility. The Button reference includes primary, secondary, outline, ghost, destructive, and link variants plus sm, md, lg, and icon sizes.

Does this design system support dark mode?▼

Yes, dark mode works through a .dark CSS class that overrides the :root custom properties for background, foreground, muted, and border colors. The Tailwind config sets darkMode to 'class' to match this strategy.

What is the cn utility function in Tailwind projects?▼

The cn function combines clsx for conditional class names with tailwind-merge to resolve conflicting Tailwind classes. It lets components accept a className prop that safely overrides default styles without duplicate utilities.

Can I customize the design tokens for my brand?▼

Yes, the token files are reference values meant to be replaced with your project brand palette before shipping. Update the primary color scale, semantic colors, fonts, and spacing values, and the Tailwind config picks them up automatically.