tailwindcss

Implements Tailwind CSS v4 utility-first styling patterns including responsive design, dark mode, and theme configuration.

Updated Sep 1, 2026
One-click install
npx skills add https://github.com/umairshahid622/perfumora --skill tailwindcss-umairshahid622
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: tailwindcss
Source: https://github.com/umairshahid622/perfumora/tree/main/perfumora-admin/.claude/skills/tailwindcss
Command: npx skills add https://github.com/umairshahid622/perfumora --skill tailwindcss-umairshahid622

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Styling web interfaces consistently requires deep knowledge of Tailwind CSS utility classes, responsive breakpoints, dark mode setup, and the new CSS-first configuration approach introduced in Tailwind v4, which differs significantly from v3. ## Core Features & Use Cases - Utility-First Patterns: Provides ready-to-use class combinations for layout, spacing, typography, colors, and common components like buttons, cards, and form inputs. - Responsive Design & Dark Mode: Covers mobile-first breakpoint modifiers, state variants (hover, focus, disabled), and dark mode configuration for both v3 and v4. - Configuration Guidance: Explains Tailwind v4's CSS-first @theme configuration alongside legacy tailwind.config.js, plus official plugins like @tailwindcss/forms and @tailwindcss/typography. - Use Case: When building a React admin dashboard, use this Skill to generate a responsive card grid with dark mode support and brand colors defined through the v4 @theme directive. ## Quick Start Use the tailwindcss skill to style this React component with a responsive grid layout and dark mode support.

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 theme customization?▼

Tailwind v4 uses CSS-first configuration with the @theme directive inside your globals.css file after importing tailwindcss. Define custom colors, spacing, fonts, and breakpoints as CSS variables like --color-brand-500, replacing most uses of tailwind.config.js.

How to add dark mode with Tailwind CSS utility classes?▼

Add the dark: variant prefix to any utility class, such as dark:bg-gray-900 or dark:text-gray-100. Tailwind v4 supports media-query dark mode via prefers-color-scheme by default, and class-based dark mode can be configured in CSS.

What is the difference between Tailwind CSS v3 and v4 configuration?▼

Tailwind v4 uses CSS-first configuration through @theme in your stylesheet and automatically detects template files without a content array. The v3 tailwind.config.js file is still supported for compatibility, and v4 delivers faster builds using modern CSS features.

Does Tailwind CSS v4 work in older browsers?▼

Tailwind v4 requires Safari 16.4+, Chrome 111+, or Firefox 128+ because it relies on modern CSS features like @property and color-mix(). Projects targeting older browsers should remain on Tailwind v3.

When should I use @apply instead of utility classes in JSX?▼

Use @apply sparingly, mainly when extracting repeated class combinations into reusable CSS component classes like .btn-primary. Prefer utility classes directly in JSX for most styling, reserving @apply for genuinely shared patterns.