tailwindcss-development

Writes and fixes Tailwind CSS v4 utility classes in HTML templates.

1|Updated Aug 4, 2026
One-click install
npx skills add https://github.com/LaravelDaily/nativephp-larapackagehunt --skill tailwindcss-development-laraveldaily
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tailwindcss-development
Source: https://github.com/LaravelDaily/nativephp-larapackagehunt/tree/main/.agents/skills/tailwindcss-development
Command: npx skills add https://github.com/LaravelDaily/nativephp-larapackagehunt --skill tailwindcss-development-laraveldaily

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Styling HTML templates with Tailwind CSS requires knowing the correct utility classes, avoiding deprecated v3 patterns, and following project conventions for spacing, dark mode, and responsive layouts. This Skill provides the operational guidance to write correct Tailwind v4 code and avoid common migration pitfalls. ## Core Features & Use Cases - Tailwind v4 Migration Guidance: Replaces deprecated utilities (bg-opacity-, flex-shrink-) with v4 equivalents and enforces CSS-first configuration via the @theme directive instead of tailwind.config.js. - Layout & Component Patterns: Provides ready patterns for flexbox layouts, responsive grid card layouts, dark mode variants, and gap-based spacing between siblings. - Use Case: When building a dashboard page with a sidebar and a responsive product card grid in a Blade or JSX template, use this Skill to generate correct Tailwind v4 classes with dark mode support and proper gap utilities. ## Quick Start Ask the AI to build a responsive three-column card grid with dark mode support using Tailwind CSS v4 in your template file.

Frequently Asked Questions about tailwindcss-development

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

FAQPage Schema
How do I migrate from Tailwind CSS v3 to v4?

Replace the @tailwind base, components, and utilities directives with a single @import "tailwindcss" statement. Move configuration from tailwind.config.js into a CSS-first @theme block, and swap deprecated utilities like bg-opacity-* and flex-shrink-* for their v4 replacements.

How do I create a responsive grid layout with Tailwind CSS?

Use the grid utility with responsive column classes such as grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6. This renders one column on mobile, two on medium screens, and three on large screens with consistent spacing between items.

Does Tailwind CSS v4 support tailwind.config.js?

Tailwind v4 uses CSS-first configuration through the @theme directive instead of a separate tailwind.config.js file. Custom values like brand colors are declared as CSS variables inside @theme, and corePlugins is no longer supported.

Why is bg-opacity-50 not working in Tailwind v4?

The bg-opacity-* utilities were removed in Tailwind v4. Use the slash opacity syntax instead, such as bg-black/50, which applies opacity directly to the color value. The same replacement pattern applies to text, border, divide, ring, and placeholder opacity utilities.

How do I add dark mode to Tailwind components?

Apply the dark: variant to utilities, for example bg-white dark:bg-gray-900 text-gray-900 dark:text-white. New pages and components should follow the same dark mode approach already used elsewhere in the project.

When should I not use this Tailwind styling approach?

Skip it for backend PHP logic, database queries, API routes, JavaScript without an HTML or CSS component, CSS file audits, build tool configuration, and vanilla CSS work. It targets writing utility classes in HTML templates only.