Skip to content

Tailwind CSS v4 principles covering CSS-first configuration, container queries, and design token architecture.

CCM score
60 of 100
skills.sh installs
567
GitHub stars
34.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers v4 architecture changes from v3, including the Oxide engine, native nesting, and CSS variable exposure of all tokens
  • Includes a CSS-based @theme configuration pattern, responsive breakpoints, dark mode strategies, and OKLCH color token layers
  • Enforces mobile-first responsive writing and flags anti-patterns such as arbitrary values, !important, inline style=, and heavy @apply use
  • Designed for teams migrating from tailwind.config.js to CSS-first setups or building reusable component systems

Install

$ npx -y skills add davila7/claude-code-templates --skill tailwind-patterns -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Tailwind CSS Patterns (v4 - 2025)

Modern utility-first CSS with CSS-native configuration.


1. Tailwind v4 Architecture

What Changed from v3

v3 (Legacy)v4 (Current)
tailwind.config.jsCSS-based @theme directive
PostCSS pluginOxide engine (10x faster)
JIT modeNative, always-on
Plugin systemCSS-native features
@apply directiveStill works, discouraged

v4 Core Concepts

ConceptDescription
CSS-firstConfiguration in CSS, not JavaScript
Oxide EngineRust-based compiler, much faster
Native NestingCSS nesting without PostCSS
CSS VariablesAll tokens exposed as --* vars

2. CSS-Based Configuration

Theme Definition

Details

Repository
github.com/davila7/claude-code-templates
Categories
Frontend & UI Code, Design & UI/UX
First seen
Jun 3, 2026

More from davila7/claude-code-templates

All 398

Similar to Tailwind Patterns

More Frontend & UI Code