tailwind

Configure Tailwind CSS v4 with @theme, @utility, and @variant for React interfaces.

1|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/antonyfmunoz/OS --skill tailwind-antonyfmunoz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tailwind
Source: https://github.com/antonyfmunoz/OS/tree/main/skills/tools/tailwind
Command: npx skills add https://github.com/antonyfmunoz/OS --skill tailwind-antonyfmunoz

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Tailwind v4 helps you build consistent, responsive React UIs without writing custom CSS for every layout or style decision, while avoiding common v3-to-v4 migration pitfalls (like tailwind.config.js).

Core Features & Use Cases

  • CSS-first configuration (v4): Configure tokens and reusable styling using @theme, @utility, and @variant instead of tailwind.config.js, then style with utilities directly in JSX.
  • Design tokens + shadcn theming: Wire shadcn/ui themes correctly by defining shadcn HSL triplets in :root and .dark and mapping them with @theme inline so opacity modifiers like bg-primary/80 work.
  • Responsive + advanced layout controls: Create responsive layouts with sm:, md:, lg: and use container queries (@container, @sm:, @lg:) for components that adapt to their container width (not just the viewport).
  • Correct usage in EOS projects: Follow Remotion constraints (no animate-* / transition-*; use useCurrentFrame) while using Tailwind for static layout in video compositions, and use Tailwind normally in saas/ for React + shadcn components.
  • Practical guardrails: Prevent styling bugs by using cn() (twMerge) for class conflict resolution and by keeping dynamic class names out of string interpolation so Tailwind can reliably detect classes.

Quick Start

Use the tailwind skill to set up Tailwind v4 in your saas/ frontend by importing tailwindcss in src/index.css, adding the required dark variant, defining shadcn tokens in :root and .dark, and mapping them via an @theme inline block.

Frequently Asked Questions about tailwind

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure Tailwind v4 without using tailwind.config.js?

Tailwind v4 uses a CSS-first configuration model where you import tailwindcss and define design tokens, custom utilities, and variants directly in CSS using @theme, @utility, and @variant instead of a JavaScript config file.

How do I set up shadcn ui theming with dark mode in Tailwind v4?

To set up shadcn theming, define HSL triplets in :root and .dark CSS selectors, then map them using @theme inline so opacity modifiers like bg-primary/80 work correctly with your dark mode class strategy.

Does Tailwind v4 support container queries for responsive React components?

Yes, Tailwind v4 supports container queries allowing React components to adapt to their container width rather than the viewport, using @container and variants like @sm: and @lg: for advanced layout controls.

Can I use Tailwind v4 with Remotion for video compositions?

Tailwind v4 works with Remotion for static layouts but has deterministic constraints: you must avoid animate-* and transition-* utilities and use useCurrentFrame instead, ensuring safe rendering in video compositions.

Why are my dynamically generated Tailwind classes not showing up in the build?

Tailwind detects classes statically, so dynamic class names in string interpolation fail. Use the cn() function with tailwind-merge for conflict-free variant composition and keep class names complete in your JSX.

What is the correct way to integrate Tailwind v4 with Vite?

Tailwind v4 integrates with Vite using the @tailwindcss/vite plugin, replacing the previous PostCSS approach, while you import tailwindcss in your main CSS file to start generating utility-based styling from your markup.