tailwindcss

Configures Tailwind CSS v4 projects in Vite using CSS-first directives like @theme and @utility.

7|4|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/MadAppGang/magus --skill tailwindcss-madappgang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tailwindcss
Source: https://github.com/MadAppGang/magus/tree/main/plugins/dev/skills/frontend/tailwindcss
Command: npx skills add https://github.com/MadAppGang/magus --skill tailwindcss-madappgang

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @tailwindcss/vite, and includes references (resource) and scripts (resource) components.

What problem does it solve?

This Skill simplifies and modernizes CSS development by leveraging Tailwind CSS v4's new CSS-first configuration, advanced features like container queries and native CSS variables, and efficient Vite integration.

Core Features & Use Cases

  • CSS-First Configuration: Manage all styling directly within CSS using directives like @theme, @source, and @utility.
  • Modern CSS Features: Utilize container queries, native CSS variables (including oklch), :has() pseudo-class, and native CSS nesting.
  • Vite Integration: Seamlessly integrate Tailwind CSS v4 into Vite projects for optimized builds.
  • Use Case: Configure your entire design system, including colors, typography, and spacing, using the @theme directive in your main CSS file, and apply responsive styles using container queries for component-level adaptability.

Quick Start

Configure Tailwind CSS v4 in your Vite project by installing the necessary packages and updating your vite.config.ts and index.css files.

Frequently Asked Questions about tailwindcss

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

FAQPage Schema
How do I configure Tailwind CSS v4 without a JavaScript config file?

Tailwind CSS v4 uses a CSS-first configuration approach, allowing you to manage styling directly within CSS using directives like @theme, @source, and @utility instead of a JavaScript config file. This streamlines theming and custom utility creation.

Can I use container queries and native CSS variables in Vite with Tailwind v4?

Yes, Vite integration with Tailwind v4 enables modern CSS features like container queries, native CSS variables including oklch, the :has() pseudo-class, and native CSS nesting directly within your project builds for optimized component-level styling.

What is the best way to set up design tokens for a Tailwind v4 project?

The best way to set up design tokens is using the @theme directive in your main CSS file. This CSS-first configuration allows you to define colors, typography, and spacing directly as native CSS variables for your design system.

Does Tailwind CSS v4 support native CSS nesting and the :has() pseudo-class?

Tailwind CSS v4 fully supports native CSS nesting and the :has() pseudo-class. These modern CSS features are processed seamlessly alongside custom variants and utilities through the Vite plugin for efficient styling.

How do I apply responsive component styles using Tailwind v4?

You can apply responsive component styles by utilizing container queries. Tailwind v4 facilitates container queries alongside native CSS variables, allowing component-level adaptability directly configured through CSS directives without external dependencies.