tailwind-design-system

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

Updated Jun 29, 2026
One-click install
npx skills add https://github.com/iJosueeh/amauta --skill tailwind-design-system-ijosueeh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tailwind-design-system
Source: https://github.com/iJosueeh/amauta/tree/main/.agents/skills/tailwind-design-system
Command: npx skills add https://github.com/iJosueeh/amauta --skill tailwind-design-system-ijosueeh

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Setting up a consistent design system with Tailwind CSS v4 requires learning its new CSS-first configuration model, which differs significantly from v3's JavaScript config approach. This Skill provides ready-to-use patterns for design tokens, component variants, dark mode, and animations so you avoid misconfiguration and inconsistent UI patterns. ## Core Features & Use Cases - CSS-first theming: Define semantic color, radius, and animation tokens with @theme blocks using OKLCH colors, plus class-based dark mode via @custom-variant. - Component patterns: Build type-safe components with CVA variants, compound components (Card, Dialog), accessible form inputs, and responsive grid/container systems for React 19. - Migration guidance: Follow a v3-to-v4 checklist covering config replacement, @import "tailwindcss", keyframes placement, and removal of forwardRef. - Use Case: You are standardizing UI across a React 19 + Vite codebase. Use this Skill to scaffold the theme CSS, create a Button with CVA variants, and add a dark mode toggle with a ThemeProvider. ## Quick Start Set up a Tailwind CSS v4 design system with semantic color tokens, dark mode support, and a CVA-based Button component in my React 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: replace the JS config with `@import "tailwindcss"` and define tokens inside an `@theme` block, such as `--color-primary: oklch(45% 0.2 260)`. Keyframes can also live inside `@theme` so they are emitted with the theme.

How to set up dark mode in Tailwind CSS v4?

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

What changed from Tailwind v3 to v4?

Key changes include replacing `tailwind.config.ts` with `@theme` in CSS, using `@import "tailwindcss"` instead of `@tailwind` directives, class dark mode via `@custom-variant`, native CSS animations instead of tailwindcss-animate, and the `size-*` utility replacing paired width/height classes.

How do I create button variants with Tailwind and CVA?

Use class-variance-authority to define base styles plus variant and size maps, then merge classes with a `cn` utility built from clsx and tailwind-merge. In React 19, pass `ref` as a regular prop instead of using forwardRef.

Does Tailwind v4 support custom utilities and container queries?

Yes. Define reusable custom utilities with the `@utility` directive, and configure container query breakpoints with `--container-*` tokens inside `@theme`. You can also clear default palettes using namespace overrides like `--color-*: initial`.