tailwind-design-system

Builds component libraries and design tokens using Tailwind CSS v4 CSS-first configuration.

Updated Sep 1, 2026
One-click install
npx skills add https://github.com/zamansepeti43/c-rak-agent --skill tailwind-design-system-zamansepeti43
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tailwind-design-system
Source: https://github.com/zamansepeti43/c-rak-agent/tree/main/video-engine/.agents/skills/tailwind-design-system
Command: npx skills add https://github.com/zamansepeti43/c-rak-agent --skill tailwind-design-system-zamansepeti43

SYSTEM DOCUMENTATION & REQUIREMENTS

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 misconfigurations and inconsistent UI patterns. ## Core Features & Use Cases - CSS-First Theming: Define semantic color, radius, and animation tokens with @theme blocks using OKLCH colors, including dark mode via @custom-variant. - Component Patterns: Build type-safe components with CVA (class-variance-authority), compound components like Card, accessible form inputs, and responsive grid/container systems. - v3 to v4 Migration: Follow a concrete checklist covering config replacement, keyframes placement, size-* utilities, and React 19 ref handling. - Use Case: When scaffolding a new React component library, use this Skill to generate a Button with variants, a themed dark mode setup, and native CSS dialog animations without writing configuration from scratch. ## Quick Start Ask the AI to create a Tailwind v4 design system with semantic color tokens, a CVA-based Button component, and class-based dark mode for your 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 config file with `@import "tailwindcss"` and define tokens inside `@theme` blocks, such as `--color-primary: oklch(45% 0.2 260)`. Dark mode uses `@custom-variant dark (&:where(.dark, .dark *))` instead of the `darkMode` option.

How to create button variants with Tailwind and CVA?

Use class-variance-authority to define base styles plus variant and size maps, then merge them with a `cn` utility combining clsx and tailwind-merge. This gives type-safe props like `variant="destructive"` and `size="lg"` on React components.

Does Tailwind v4 support class-based dark mode?

Yes, but through CSS instead of config. Define `@custom-variant dark (&:where(.dark, .dark *))` in your stylesheet, then override token values inside a `.dark` class block so utilities like `bg-background` switch automatically.

What changed migrating from Tailwind v3 to v4?

Key changes include replacing `tailwind.config.ts` with `@theme` CSS blocks, swapping `@tailwind` directives for `@import "tailwindcss"`, moving keyframes inside `@theme`, using `size-*` instead of separate width/height utilities, and dropping `forwardRef` with React 19.

Why use OKLCH colors in Tailwind design tokens?

OKLCH provides better perceptual uniformity than HSL, so color scales and hover states look consistent across hues. Define tokens like `--color-primary: oklch(45% 0.2 260)` inside `@theme` and reference them as `bg-primary`.

When should I not use arbitrary values in Tailwind v4?

Avoid arbitrary values like `bg-[#1a2b3c]` for repeated patterns; instead extend `@theme` with named tokens or create reusable custom utilities with the `@utility` directive. This keeps the design system consistent and maintainable.