tailwindcss

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

4|Updated Mar 28, 2026
One-click install
npx skills add https://github.com/minexo79/coser-card-maker --skill tailwindcss-minexo79
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tailwindcss
Source: https://github.com/minexo79/coser-card-maker/tree/main/.kilo/skills/tailwindcss/skills/tailwindcss
Command: npx skills add https://github.com/minexo79/coser-card-maker --skill tailwindcss-minexo79

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Styling React components consistently with utility classes requires knowing Tailwind CSS v4 conventions, responsive breakpoint patterns, dark mode setup, and the CSS-first configuration approach, which differ significantly from v3. ## Core Features & Use Cases - Utility-First Patterns: Provides layout, spacing, typography, and color utility class patterns for flexbox, grid, and component styling. - Responsive & Dark Mode: Covers mobile-first breakpoint modifiers, state variants (hover, focus, disabled), and dark mode class strategies. - v4 Configuration: Guides CSS-first theme customization via @theme directives, arbitrary values, @apply, and official plugins like forms and typography. - Use Case: When building a card grid page in React, apply the documented responsive grid pattern grid-cols-1 md:grid-cols-2 lg:grid-cols-3 with dark mode color variants instead of writing custom CSS. ## Quick Start Style my React component with Tailwind CSS utility classes including responsive 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: import "tailwindcss" in your globals.css and define custom colors, spacing, fonts, and breakpoints inside an @theme block using CSS variables like --color-brand-500. The v3 tailwind.config.js file is still supported for compatibility.

How to add dark mode with Tailwind CSS utility classes?

Add the dark: variant prefix to any utility, such as bg-white dark:bg-gray-900 or text-gray-900 dark:text-gray-100. Dark mode can follow the prefers-color-scheme media query or a class-based strategy depending on your configuration.

What is the difference between Tailwind CSS v3 and v4?

Tailwind v4 uses CSS-first configuration through @import and @theme instead of requiring tailwind.config.js, and automatically detects template files without a content array. It also delivers faster builds but requires Safari 16.4+, Chrome 111+, or Firefox 128+.

Does Tailwind CSS support responsive design breakpoints?

Yes, Tailwind uses mobile-first breakpoint prefixes: sm, md, lg, xl, and 2xl. Write base classes for mobile, then add prefixed variants like md:w-1/2 lg:w-1/3 to scale layouts up on larger screens.

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

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