tailwind-design-system

Build Tailwind CSS design systems with design tokens, CVA component variants, and dark mode theming.

Updated Feb 9, 2026
One-click install
npx skills add https://github.com/brtstore4340-glitch/POS_SUPA --skill tailwind-design-system-brtstore4340-glitch
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: tailwind-design-system
Source: https://github.com/brtstore4340-glitch/POS_SUPA/tree/main/.cursor/skills/tailwind-design-system
Command: npx skills add https://github.com/brtstore4340-glitch/POS_SUPA --skill tailwind-design-system-brtstore4340-glitch

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Building consistent, themeable UI component libraries with Tailwind CSS requires coordinating design tokens, variant systems, responsive layouts, and dark mode, which is error-prone when done ad hoc. ## Core Features & Use Cases - Design Token Architecture: Set up semantic color tokens with CSS variables and HSL values supporting light and dark themes. - Component Patterns: Implement CVA-based variant components, compound components like Card, accessible form inputs, and responsive grid systems. - Theming & Animation: Configure class-based dark mode with a ThemeProvider and compose animations using tailwindcss-animate utilities. - Use Case: When creating a React component library, use this Skill to scaffold a Button with typed variants, a Card compound component, and a working dark mode toggle. ## Quick Start Create a Tailwind design system with semantic color tokens, a CVA Button component, and dark mode support for my React app.

Frequently Asked Questions about tailwind-design-system

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

FAQPage Schema
How do I create a Button component with variants in Tailwind CSS?▼

Use class-variance-authority (CVA) to define base styles plus variant and size options, then merge classes with a cn utility combining clsx and tailwind-merge. This gives type-safe props like variant="destructive" and size="lg" on a forwardRef Button component.

How to implement dark mode with Tailwind CSS and React?▼

Set darkMode to "class" in tailwind.config, define dark theme CSS variables under a .dark selector, and toggle the class on the document root. A ThemeProvider with localStorage persistence and a useTheme hook manages light, dark, and system preferences.

What is the difference between semantic tokens and Tailwind color utilities?▼

Semantic tokens like primary or muted map to CSS variables and express purpose, while utilities like blue-500 hardcode specific colors. Semantic tokens enable runtime theming and dark mode by swapping variable values instead of changing classes.

Does CVA work with shadcn/ui and Radix primitives?▼

Yes, CVA is the standard variant system used by shadcn/ui components built on Radix primitives. You compose CVA variant classes with Radix components like Dialog, adding data-state animation classes from tailwindcss-animate.

Why should I avoid arbitrary values in Tailwind design systems?▼

Arbitrary values like w-[347px] bypass the theme and fragment consistency across components. Extend the Tailwind theme configuration with tokens instead so spacing, colors, and radii stay standardized and themeable.