tailwind-patterns

Implements Tailwind CSS v4 patterns including CSS-first configuration, container queries, and design tokens.

2|Updated Jan 10, 2026
One-click install
npx skills add https://github.com/Shubh2310-developer/ENGUNITYCORE --skill tailwind-patterns-shubh2310-developer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tailwind-patterns
Source: https://github.com/Shubh2310-developer/ENGUNITYCORE/tree/main/.claude/skills/tailwind-patterns
Command: npx skills add https://github.com/Shubh2310-developer/ENGUNITYCORE --skill tailwind-patterns-shubh2310-developer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Developers migrating to or building with Tailwind CSS v4 often struggle with the shift from JavaScript config files to CSS-first configuration, and lack clear guidance on modern patterns like container queries, OKLCH colors, and design token architecture. ## Core Features & Use Cases - CSS-First Configuration: Define themes, colors, spacing, and typography using the @theme directive instead of tailwind.config.js. - Modern Layout Patterns: Apply container queries, Bento grid layouts, and mobile-first responsive breakpoints for component-level responsiveness. - Design Token Architecture: Structure primitive, semantic, and component-level color tokens using OKLCH for perceptually uniform palettes. - Use Case: When building a reusable card component that must adapt to its parent width rather than the viewport, use the container query patterns (@container, @sm:, @md:) to make the component context-independent. ## Quick Start Ask the AI to refactor a component's styles using Tailwind v4 CSS-first configuration with semantic design tokens and container queries.

Frequently Asked Questions about tailwind-patterns

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 v4 uses CSS-first configuration via the `@theme` directive in your CSS file. Define colors, spacing, and fonts as CSS variables like `--color-primary` directly in your stylesheet, replacing the JavaScript config file entirely.

How to use container queries in Tailwind CSS v4?

Add `@container` to the parent element, then use container breakpoints like `@sm:`, `@md:`, and `@lg:` on children. Use named containers like `@container/card` when you need specificity for nested component contexts.

What is the difference between Tailwind v3 and v4?

Tailwind v4 replaces `tailwind.config.js` with CSS-based `@theme` configuration, uses the Rust-based Oxide engine for faster builds, and includes native CSS nesting. JIT mode is always on, and all tokens are exposed as CSS variables.

Should I use container queries or viewport breakpoints in Tailwind?

Use viewport breakpoints (`md:`, `lg:`) for page-level layouts and container queries (`@md:`) for reusable components that must adapt to their parent width. Container queries make components context-independent and portable across layouts.

When should I avoid using @apply in Tailwind CSS?

Avoid heavy `@apply` usage in v4; prefer extracting repeated class combinations into React or Vue components instead. Reserve `@apply` for static styles with no JavaScript logic, and use design tokens for reusable values.