tailwind-patterns

Automate Tailwind v4 CSS-first adoption with @theme directives and container queries.

Updated Jan 21, 2026
One-click install
npx skills add https://github.com/hoangminh46/mine-vibe --skill tailwind-patterns-hoangminh46
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tailwind-patterns
Source: https://github.com/hoangminh46/mine-vibe/tree/main/skills/tailwind-patterns
Command: npx skills add https://github.com/hoangminh46/mine-vibe --skill tailwind-patterns-hoangminh46

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enables teams to adopt Tailwind v4's CSS-first pattern system, enabling scalable, maintainable UI design with token-based tokens and native container queries.

Core Features & Use Cases

  • CSS-first configuration using @theme directives and tokens to drive UI consistency.
  • Native container queries and responsive patterns for scalable components.
  • Design token architecture that harmonizes colors, typography, and spacing across projects.
  • Use Case: Migrating a design system from v3 to v4 by standardizing tokens, tokens, and utilities across multiple apps.

Quick Start

Define a CSS-first theme using @theme, then apply container queries to a sample component and compose utilities to achieve responsive patterns.

Frequently Asked Questions about tailwind-patterns

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

FAQPage Schema
How do I migrate my design system from Tailwind v3 to v4?

You can migrate from Tailwind v3 to v4 by adopting CSS-first configuration using @theme directives and standardizing token-driven architecture for colors, spacing, and typography across multiple apps.

How do container queries work in Tailwind v4?

Container queries in Tailwind v4 are native CSS-first patterns that enable scalable, responsive components based on parent container dimensions rather than the viewport, ensuring maintainable UI design.

What is CSS-first configuration using @theme directives?

CSS-first configuration using @theme directives is a Tailwind v4 approach defining design tokens directly in CSS to drive UI consistency, replacing the JavaScript-based configuration used in previous versions.

Can I use token-driven architecture for colors and typography in Tailwind v4?

Yes, you can implement a token-driven architecture for colors, typography, and spacing in Tailwind v4 by defining these design tokens within @theme directives to harmonize UI across projects.

Does Tailwind v4 require JavaScript configuration for responsive design patterns?

No, Tailwind v4 uses a CSS-first pattern system, meaning you define responsive design patterns and container queries directly in CSS rather than relying on a JavaScript configuration file.