Agent skill

Tailwind Design System Skill: Tailwind v4 Tokens and Variants

The tailwind-design-system skill teaches an AI coding agent to build Tailwind CSS v4 design systems with OKLCH tokens, CSS-first theme config, class-variance-authority components and a v3 migration path.

Install
git clone https://github.com/wshobson/agents.git
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the tailwind-design-system skill?

The tailwind-design-system skill is a SKILL.md in wshobson/agents, under the frontend-mobile-development plugin. It guides an AI coding agent to build Tailwind CSS v4 design systems: CSS-first @theme tokens, OKLCH semantic colors, dark mode variants, CVA components and a v3 to v4 migration checklist.

The tailwind-design-system skill is a Tailwind CSS v4 playbook for AI coding agents. It lives in the wshobson/agents repository inside the frontend-mobile-development plugin, and it ships SKILL.md with two reference files, details.md and advanced-patterns.md.

Its core idea is that Tailwind v4 moves configuration into CSS. Instead of a tailwind.config file, tokens are declared in an @theme block, and the skill shows how to structure those tokens for a whole design system.

What changes in your agent's output

  • Config moves into CSS: @import "tailwindcss", @theme for tokens, and @custom-variant dark for class-based dark mode.
  • Semantic OKLCH tokens such as background, foreground, primary, muted, accent, destructive, border and ring come in pairs with a foreground.
  • Components use class-variance-authority with a cn() helper built from clsx and tailwind-merge.
  • The agent follows a token hierarchy of brand, semantic and component, and a component structure of base, variants, sizes, states and overrides.

Who the tailwind-design-system skill is for

Best for

  • New Tailwind v4 projects that need a token system from day one.
  • Migrating a v3 codebase, with a table and a ten-item checklist.
  • Agents that keep hardcoding colors or reaching for arbitrary values.

Not for

  • Tailwind v3 projects you are not migrating.
  • Choosing a component library. Use pick-ui-library for that decision.
  • Component installation itself. The shadcn skill handles project context for shadcn/ui.

Use it with UiChemy

Tailwind tokens describe a design. UiChemy brings designs into WordPress: Figma to WordPress converts a file, and Composer edits the result in Elementor or Gutenberg. Click Get Started on uichemy.com.