tailwind-design-system

Build component libraries and design tokens with Tailwind CSS v4 CSS-first configuration.

Updated May 22, 2026
One-click install
npx skills add https://github.com/Asygnuz-S-A-S/one-star --skill tailwind-design-system-asygnuz-s-a-s
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: tailwind-design-system
Source: https://github.com/Asygnuz-S-A-S/one-star/tree/main/.agents/skills/tailwind-design-system
Command: npx skills add https://github.com/Asygnuz-S-A-S/one-star --skill tailwind-design-system-asygnuz-s-a-s

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Teams building UI with Tailwind CSS v4 need consistent design tokens, reusable component variants, and correct v4 patterns, but the shift from JavaScript config to CSS-first configuration breaks older workflows and snippets. ## Core Features & Use Cases - CSS-first theming: Define semantic color, radius, and animation tokens with @theme, OKLCH colors, and @custom-variant dark mode instead of tailwind.config.ts. - Component patterns: Ready-to-adapt CVA-based Button, Card, Input, Grid, and Dialog components written for React 19 without forwardRef. - Migration guidance: A v3-to-v4 checklist covering directives, keyframes, dark mode, and utility replacements. - Use Case: When scaffolding a new Next.js design system, apply the provided @theme token block and CVA component patterns to standardize buttons, forms, and grids across the app. ## Quick Start Ask the AI to set up a Tailwind CSS v4 design system with semantic color tokens, dark mode, and a CVA-based Button component for your React 19 project.

Frequently Asked Questions about tailwind-design-system

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

FAQPage Schema
How do I configure Tailwind CSS v4 without tailwind.config.ts?▼

Tailwind v4 uses CSS-first configuration: import Tailwind with `@import "tailwindcss"` and define tokens inside an `@theme` block, such as `--color-primary` or `--radius-md`. JavaScript config files are replaced by these CSS declarations.

How to set up dark mode in Tailwind CSS v4?▼

Define a custom variant with `@custom-variant dark (&:where(.dark, .dark *))`, then override token values inside a `.dark` class block. A ThemeProvider toggles the class on the root element and persists the choice in localStorage.

What changed migrating from Tailwind v3 to v4?▼

Key changes include replacing `@tailwind` directives with `@import "tailwindcss"`, moving colors into `@theme`, using `@custom-variant` for dark mode, placing `@keyframes` inside `@theme`, and dropping `forwardRef` since React 19 passes ref as a prop.

Does Tailwind v4 still need tailwindcss-animate plugin?▼

No. Tailwind v4 supports native CSS animations by declaring `--animate-*` tokens and `@keyframes` inside `@theme`, plus `@starting-style` for entry animations on popovers and dialogs.

How do I build type-safe component variants with Tailwind?▼

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