tailwindcss-development

Styles application components using Tailwind CSS v4 utilities and CSS-first configuration.

Updated Aug 5, 2026
One-click install
npx skills add https://github.com/pd-phuc/laravel-template --skill tailwindcss-development-pd-phuc
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: tailwindcss-development
Source: https://github.com/pd-phuc/laravel-template/tree/main/.claude/skills/tailwindcss-development
Command: npx skills add https://github.com/pd-phuc/laravel-template --skill tailwindcss-development-pd-phuc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Applying consistent, modern styling with Tailwind CSS v4 requires knowing its new CSS-first configuration, replaced utilities, and layout patterns, and mistakes like using deprecated v3 syntax lead to broken or inconsistent UI. ## Core Features & Use Cases - Tailwind v4 Guidance: Enforces CSS-first @theme configuration and the @import "tailwindcss" syntax instead of deprecated v3 directives and tailwind.config.js. - Layout & Spacing Patterns: Provides flexbox, grid, and gap-based spacing patterns for responsive component layouts. - Dark Mode & Consistency: Ensures new pages follow existing dark mode conventions and project-specific class patterns. - Use Case: When restyling a hero section or building a card grid in a Laravel Blade view, the skill applies correct v4 utilities, replaces deprecated classes like flex-shrink-* with shrink-*, and adds matching dark: variants. ## Quick Start Ask the AI to restyle a component or page with Tailwind CSS, for example: restyle the dashboard cards using Tailwind with responsive grid layout and dark mode support.

Frequently Asked Questions about tailwindcss-development

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

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

Tailwind CSS v4 uses CSS-first configuration with the @theme directive defined directly in your CSS file. You declare custom values like colors as CSS variables inside @theme, and no separate JavaScript config file is needed.

How to migrate from Tailwind CSS v3 to v4 syntax?▼

Replace the @tailwind base, components, and utilities directives with a single @import "tailwindcss" statement. Also update deprecated utilities such as flex-shrink-* to shrink-*, flex-grow-* to grow-*, and bg-opacity-* to bg-black/* style opacity modifiers.

Does Tailwind CSS v4 support dark mode?▼

Yes, Tailwind v4 supports dark mode through the dark: variant applied to utilities, such as dark:bg-gray-900. New pages and components should follow the same dark mode conventions already used in the project.

Why is my Tailwind spacing inconsistent between sibling elements?▼

Inconsistent spacing usually comes from applying margins to individual children instead of using gap utilities on the parent container. Use flex or grid with gap-4 or gap-8 on the parent so spacing is uniform and easier to maintain.

What are common Tailwind CSS v4 mistakes to avoid?▼

Common mistakes include using deprecated v3 utilities, keeping @tailwind directives instead of the v4 import, relying on tailwind.config.js or corePlugins which v4 does not support, and forgetting dark mode variants in projects that use them.