MCPInstall

tailwind

Tailwind CSS v4 patterns and design systems. Use when configuring Tailwind themes, building components, implementing dark mode, using container queries, migrating from v3, integrating shadcn/ui, or fixing build errors. Use for tailwind, css, styling, theme, design-tokens.

Installs
214
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/oakoss/agent-skills --skill tailwind
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads tailwind automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Tailwind CSS (v4+)

Overview

Tailwind CSS v4 skill covering CSS-first configuration, design tokens, component patterns, shadcn/ui integration, dark mode, container queries, migration from v3, and custom utilities.

When to use: Configuring Tailwind themes, building utility-first components, implementing dark mode, using container queries, migrating from v3, integrating shadcn/ui, troubleshooting build errors.

When NOT to use: Tailwind v3 legacy projects that will not upgrade, projects using a different styling approach (CSS Modules, styled-components) without plans to adopt Tailwind.

Quick Reference

PatternAPIKey Points
CSS-first config@theme { --color-brand: oklch(...); }All config in CSS, no tailwind.config.js
Import entry@import "tailwindcss";Replaces @tailwind base/components/utilities
Custom utilities@utility name { ... }Replaces @layer utilities, works with variants
Functional utilities@utility tab-* { tab-size: --value(--tab-size-*); }Accept dynamic values via --value()
Plugin loading@plugin "@tailwindcss/typography";Replaces require() in config
Container queries@container parent + @md: childBuilt-in, no plugin needed
Named containers@container/sidebar + @md/sidebar:Scope queries to specific containers
Dark mode variant@custom-variant dark (&:where(.dark, .dark *));Class-based dark mode override
Theme inline@theme inline { --color-bg: var(--bg); }Inlines values at build, single-theme only
Source detection@source "../node_modules/my-lib";Explicitly add scan paths
Reference import@reference "../../app.css";Use theme in Vue/Svelte scoped styles
Override defaults--color-*: initial; inside @themeReset a category before redefining
Dynamic valuesgrid-cols-(--my-var)Use CSS variables in utility values
Text shadowstext-shadow-*Built-in text shadow utilities
Starting stylesstarting:opacity-0@starting-style variant for entry animations
Masksmask-*CSS mask utilities for image/gradient masking
Field sizingfield-sizing-contentAuto-sizing textareas and inputs
Inset shadowsinset-shadow-*, inset-ring-*Inner shadow and ring utilities
User validationuser-valid:, user-invalid:Form validation after user interaction
Pointer queriespointer-fine:, pointer-coarse:Target input device precision
Inertinert:opacity-50Style inert elements
Logical spacingpbs-*, pbe-*, mbs-*, mbe-*Block-direction padding/margin (v4.2)
Logical sizinginline-*, block-*, min-inline-*, max-block-*Logical width/height utilities (v4.2)
Logical insetinset-s-*, inset-e-*, inset-bs-*, inset-be-*Logical positioning; replaces start-*/end-*
Logical bordersborder-bs-*, border-be-*Block-direction border utilities (v4.2)
Font featuresfont-features-['smcp']OpenType font-feature-settings (v4.2)
New color palettesmauve, olive, mist, taupeAdditional neutral palettes (v4.2)
Webpack integration@tailwindcss/webpackRun Tailwind as a webpack plugin (v4.2)
Color spaceOKLCHDefault in v4, sRGB fallbacks generated

Common Mistakes

MistakeCorrect Pattern
Using tailwind.config.js in v4Configure via @theme { ... } in CSS
hsl(var(--background)) double-wrapReference directly: var(--background)
:root/.dark inside @layer baseDefine at root level, outside any @layer
@apply with @layer components classesUse @utility directive for custom utilities
@theme inline for multi-theme switchingUse @theme without inline for dynamic themes
Raw colors like bg-blue-500 everywhereSemantic tokens (bg-primary) that auto-adapt
require() or @import for pluginsUse @plugin "package-name";
tailwindcss-animate in v4Use tw-animate-css instead
Missing @theme inline with shadcn/uiMap all CSS variables in @theme inline block
Using theme('colors.brand') in CSSUse var(--color-brand) native CSS variables
Using deprecated start-*/end-* insetUse inset-s-*/inset-e-* logical utilities

Delegation

  • Class pattern discovery and usage examples: Use Explore agent
  • v3 to v4 migration across multiple files: Use Task agent
  • Design token hierarchy and theming architecture: Use Plan agent

If the motion skill is available, delegate complex animation patterns (spring physics, gestures, scroll-linked) to it.

References

  • Configuration -- CSS-first config, @theme, @theme inline, @utility, @plugin, @source, @reference, @variant directives
  • Design Tokens -- OKLCH token system, brand scales, semantic tokens, shadows, z-index, fluid typography
  • Component Patterns -- Layouts, grids, container queries, 3D transforms, subgrid, CVA variants
  • UI Patterns -- Buttons, forms, navigation, cards, typography with variants, states, accessibility
  • Dark Mode -- Class-based dark mode, multi-theme systems, ThemeProvider, @custom-variant
  • shadcn/ui Integration -- Four-step architecture, components.json, tw-animate-css, Vite setup
  • Migration -- v3 to v4 migration steps, breaking changes, upgrade tool, common gotchas
  • Troubleshooting -- Common errors, build fixes, CSS layer issues, PostCSS problems

FAQ

What does the tailwind skill do?

Tailwind CSS v4 patterns and design systems. Use when configuring Tailwind themes, building components, implementing dark mode, using container queries, migrating from v3, integrating shadcn/ui, or fixing build errors. Use for tailwind, css, styling, theme, design-tokens.

How do I install tailwind?

Run npx skills add https://github.com/oakoss/agent-skills --skill tailwind in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/tailwind/ (personal) or .claude/skills/tailwind/ (project).

Which AI agents can use tailwind?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is tailwind safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains tailwind?

It is published by oakoss in oakoss/agent-skills. It has 214 recorded installs.

More from oakoss/agent-skills

View all →

ui-ux-polish

oakoss/agent-skills

Iterative UI/UX polishing workflow for web applications. Use when improving visual polish, refining desktop and mobile UX separately, running iterative enhancement cycles, applying design patterns like glassmorphism or bento grids, or auditing accessibility and WCAG compliance. Use for Stripe-level visual quality, responsive optimization, and design system alignment.

Frontend & Design541 installs

playwright

oakoss/agent-skills

Open the skill to read its SKILL.md instructions.

Testing & QA453 installs

coolify

oakoss/agent-skills

Coolify self-hosted PaaS for deploying applications, databases, and services via REST API and Git integration. Covers API authentication, deployment triggers, build packs (Nixpacks, Dockerfile, Compose), CI/CD with GitHub Actions webhooks, environment management, and Traefik proxy configuration. Use when deploying apps to Coolify, triggering deployments via API, configuring build packs, setting up GitHub Actions CI/CD pipelines, managing environment variables, or troubleshooting deployment failures.

DevOps & Cloud361 installs

application-security

oakoss/agent-skills

Application security covering threat modeling (STRIDE), OWASP Top 10 (2025), OWASP API Security Top 10 (2023), secure coding review, authentication/authorization patterns, input validation, encryption, security headers, supply chain security, compliance (GDPR/HIPAA/SOC2/PCI-DSS), and security monitoring. Use when reviewing code for vulnerabilities, implementing auth patterns, securing APIs, configuring security headers, hardening supply chain, preventing injection attacks, or preparing for compliance audits.

Security272 installs

find-skills

oakoss/agent-skills

Discovers and installs agent skills from the open ecosystem. Enriches search results with descriptions fetched from skills.sh. Use when a user asks "how do I do X", "find a skill for X", "is there a skill that can...", or wants to extend agent capabilities. Use for skill discovery, skill search, skill install, finding tools.

AI & Agents256 installs

drizzle-orm

oakoss/agent-skills

Drizzle ORM for type-safe SQL with PostgreSQL, MySQL, and SQLite. Use when defining schemas, writing queries, managing relations, running migrations, or using drizzle-kit. Use for drizzle, orm, schema, query, migration, pgTable, relations, drizzle-kit, drizzle-zod.

Data & Databases238 installs

Popular frontend & design skills

View category →

setup-matt-pocock-skills

mattpocock/skills

Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.

Frontend & Design1.1M installs

frontend-design

anthropics/skills

Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.

OfficialFrontend & Design1M installs

hyperframes-animation

heygen-com/hyperframes

All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.

prototype

mattpocock/skills

Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.

Frontend & Design999.2K installs

hyperframes-core

heygen-com/hyperframes

The HyperFrames composition contract — build one renderable project. Use for composition structure, the data- timing attributes, class="clip", tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.

Frontend & Design930.5K installs

vercel-react-best-practices

vercel-labs/agent-skills

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

OfficialFrontend & Design843.1K installs