tailwind-design-system

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

Updated Jul 16, 2026
One-click install
npx skills add https://github.com/X-manist/Cohmira --skill tailwind-design-system-x-manist
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tailwind-design-system
Source: https://github.com/X-manist/Cohmira/tree/main/src/builtin-plugins/openmontage/.agents/skills/tailwind-design-system
Command: npx skills add https://github.com/X-manist/Cohmira --skill tailwind-design-system-x-manist

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires tailwindcss, class-variance-authority, clsx, tailwind-merge, @radix-ui/react-slot, @radix-ui/react-dialog.

What problem does it solve? Teams building UI with Tailwind CSS v4 need consistent design tokens, reusable component variants, dark mode, and responsive patterns, but v4's CSS-first configuration differs significantly from v3 and is easy to misconfigure. ## 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 using React 19 ref-as-prop conventions and Radix primitives. - v3 to v4 migration: A checklist covering config replacement, @import "tailwindcss", keyframes in @theme, and removal of forwardRef and tailwindcss-animate. - Use Case: When scaffolding a new React app's UI kit, apply the token hierarchy and CVA variant patterns to produce accessible, themeable components with light and dark modes. ## Quick Start Ask the AI to create a Tailwind CSS v4 design system with semantic color tokens, dark mode, and a Button component with variants.

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: oklch(45% 0.2 260)`. JavaScript config files are replaced by these CSS directives.

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 rule. Toggle the `dark` class on the root element, optionally driven by a React ThemeProvider using localStorage and prefers-color-scheme.

What changed migrating from Tailwind v3 to v4?

Key changes include replacing `tailwind.config.ts` with `@theme`, swapping `@tailwind` directives for `@import "tailwindcss"`, moving keyframes inside `@theme`, replacing tailwindcss-animate with native CSS animations, and using `size-*` utilities instead of separate width and height classes.

How do I create component variants with Tailwind and React?

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

Does Tailwind v4 still support custom utility classes?

Yes, v4 introduces the `@utility` directive for defining reusable custom utilities directly in CSS, replacing v3 plugin-based approaches. You can also use `@theme inline` and `@theme static` to control how theme variables are generated.