tailwind-design-system

Builds Tailwind CSS design systems with tokens, CVA variants, and dark mode.

Updated Aug 10, 2026
One-click install
npx skills add https://github.com/Eng-suso/BK-GPT --skill tailwind-design-system-eng-suso
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: tailwind-design-system
Source: https://github.com/Eng-suso/BK-GPT/tree/main/.claude/skills/tailwind-design-system
Command: npx skills add https://github.com/Eng-suso/BK-GPT --skill tailwind-design-system-eng-suso

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires tailwindcss, class-variance-authority, clsx, tailwind-merge, tailwindcss-animate, @radix-ui/react-dialog, react-hook-form, zod, and includes references (resource) components.

What problem does it solve? Building consistent, themeable component libraries in Tailwind CSS requires repeated decisions about tokens, variants, responsiveness, and accessibility, which often leads to inconsistent UI patterns across a codebase. ## Core Features & Use Cases - Design Token Architecture: Establishes a brand-to-semantic-to-component token hierarchy using CSS variables and HSL color tokens with dark mode support. - Component Patterns: Provides CVA-based variant components, compound components like Card, accessible form inputs with error states, responsive grids, and animation utilities. - Use Case: When standardizing a React application's UI, use this Skill to scaffold a Button component with typed variants, wire up a ThemeProvider for dark mode, and configure tailwind.config.ts with semantic color tokens. ## Quick Start Use the tailwind-design-system skill to create a themed Button component with CVA variants and dark mode support.

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 built on clsx and tailwind-merge. This gives type-safe props like variant="destructive" and size="lg" on a forwardRef component.

How to implement dark mode with Tailwind CSS design tokens?▼

Define HSL CSS variables for light and dark themes under :root and .dark selectors, map them to semantic colors in tailwind.config.ts, and toggle the dark class on the document root via a ThemeProvider that respects system preferences and localStorage.

What is the difference between semantic tokens and raw Tailwind colors?▼

Semantic tokens like primary or destructive reference CSS variables and adapt to themes, while raw colors like blue-500 are fixed values. Using semantic tokens enables runtime theming and consistent dark mode without changing component code.

Does this approach work with Radix UI primitives?▼

Yes, the patterns pair Tailwind styling with Radix primitives such as Dialog, using data-state attributes to drive enter and exit animations via tailwindcss-animate. Radix handles accessibility behavior while Tailwind classes control appearance.

When should I avoid arbitrary values in Tailwind?▼

Avoid arbitrary values like w-[347px] when the value belongs in the design system; extend the theme configuration instead so spacing and colors stay consistent. Arbitrary values are acceptable only for true one-off layout exceptions.