Agent skill

Tailwind Patterns Skill: Tailwind CSS v4 Principles for Agents

The tailwind-patterns skill gives an AI coding agent a twelve-part Tailwind CSS v4 playbook: CSS-first @theme setup, container queries, OKLCH color tokens, dark mode and anti-patterns to avoid.

Install
npx @vudovn/ag-kit init
View on GitHub

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

What is the tailwind-patterns skill?

The tailwind-patterns skill is a Markdown reference inside the vudovn/ag-kit toolkit that teaches an agent Tailwind CSS v4 habits. It covers CSS-first theming, container queries, token layers, dark mode and layout recipes. Its allowed tools are Read, Write, Edit, Glob and Grep, and it is guidance, not a generator.

The tailwind-patterns skill opens with a table of what changed from v3 to v4: the config file gives way to a CSS @theme directive, and the Rust-based Oxide engine replaces the old PostCSS plugin. The rest builds on that CSS-first idea.

It is one of 47 skills in AG Kit, an Antigravity-first toolkit of rules, skills, agents and workflows. The skill itself is a single SKILL.md of twelve numbered sections, and the agent may only read, write, edit and search files with it.

The twelve sections in order

  1. Architecture: what changed from v3, and the core v4 concepts.
  2. CSS-based configuration: an @theme block with semantic color, spacing and font variables.
  3. Container queries, plus when to prefer them over breakpoints.
  4. Responsive design with the mobile-first prefix ladder from sm to 2xl.
  5. Dark mode strategies: class, media and selector.
  6. Layout patterns for flexbox and grid, including Bento-style grids.
  7. Color systems: OKLCH, and three token layers.
  8. Typography, animation, component extraction, anti-patterns and performance.

Who the tailwind-patterns skill is for

Best for

  • Projects on Tailwind CSS v4 where the agent keeps writing v3 habits, such as a JavaScript config file or heavy use of @apply.
  • Setting up a theme with semantic tokens so utilities and components draw on one set of variables.
  • Reusable components that should respond to their parent width. For a fuller system view, see tailwind-design-system.

Not for

  • Projects on Tailwind v3 that have no plan to migrate. The skill treats the v3 config approach as legacy.
  • Choosing a visual direction. It gives class patterns, not taste. For that, try ui-ux-pro-max.
  • Component library work. It names no specific kit, so pair it with whichever one your project uses.

Use it with UiChemy

Tailwind classes in a code project do not carry into WordPress by themselves. For a WordPress build, design the page in Figma and use Figma to WordPress, or use AI to WordPress. Click Get Started on uichemy.com and review the editor output.

The skill's token layers are a useful bridge to design work. Compare them with design-token and color-system, and check the responsive rules against owl-responsive-design before you hand a design to a converter.