tailwind-configuration

Configure tailwind.config.js for content paths, theme extensions, plugins, and core options.

187|20|Updated Nov 20, 2025
One-click install
npx skills add https://github.com/TheBushidoCollective/han --skill tailwind-configuration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tailwind-configuration
Source: https://github.com/TheBushidoCollective/han/tree/main/jutsu/jutsu-tailwind/skills/tailwind-configuration
Command: npx skills add https://github.com/TheBushidoCollective/han --skill tailwind-configuration

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill covers advanced Tailwind configuration for themes, content paths, and plugins.

Core Features & Use Cases

  • Config file structure: tailwind.config.js, content, theme extensions.
  • Theme customization: Extend vs override, CSS variables.
  • Plugins & patterns: Reusable utilities and best practices.

Quick Start

Apply a basic config to a project and validate that Tailwind picks up classes.

Frequently Asked Questions about tailwind-configuration

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

FAQPage Schema
How do I configure Tailwind CSS for my project?

Configure Tailwind CSS by creating or editing tailwind.config.js to define content paths, extend your theme, register plugins, and set core options like darkMode, prefix, important, and separator. This tells Tailwind where to scan for class usage and how to generate utilities.

What's the difference between extending and overriding the Tailwind theme?

Extending the theme merges your custom values with Tailwind's defaults, preserving built-in utilities. Overriding replaces defaults entirely. Use extend for adding custom colors or spacing while keeping the base palette; override only when you need complete replacement.

How do I set up content paths so Tailwind finds all my CSS classes?

In tailwind.config.js, define the content array with glob patterns pointing to your template files—HTML, JSX, Vue, or other markup. Tailwind scans these paths to detect class usage and purges unused styles, reducing bundle size.

Can I use Tailwind plugins and how do I register them?

Yes, register Tailwind plugins in the plugins array of tailwind.config.js. Plugins let you extend Tailwind's utility set with custom, reusable utilities following Tailwind's patterns and ensuring consistency across your design system.

How do I enable dark mode in Tailwind configuration?

Set the darkMode option in tailwind.config.js to 'class', 'media', or a custom strategy. 'class' uses a class on the HTML element; 'media' respects system preferences. This enables dark mode utilities like dark:bg-gray-900 in your markup.

Why isn't Tailwind detecting my CSS classes?

The content paths in tailwind.config.js may be incorrect or incomplete. Verify glob patterns match your project structure and file types. Check that paths include all directories with Tailwind class usage and that the build process runs before checking output.