If you're working with Tailwind v4, this covers the CSS-first configuration shift and container queries that actually matter now. It's built around the new @theme directive and Oxide engine patterns, so you're not reaching for v3 config files anymore. Good for understanding when to use container queries over breakpoints, how OKLCH colors work, and why the docs keep telling you to avoid @apply. Honest take: the anti-patterns section alone will save you from cargo-culting old v3 habits into your v4 projects.

skills.sh installs
564
GitHub stars
33.2K
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

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

More from davila7/claude-code-templates

All 618
1davila7 avatarreact-best-practicesdavila7/claude-code-templatesComprehensive React and Next.js performance optimization guide with 40+ rules for eliminating waterfalls, optimizing bundles, and improving rendering. Use when 550skills.sh installs
2heyman333 avatarios-glass-ui-designerheyman333/atelier-uiRedesign mobile app UI to feel unmistakably iOS-native with modern Apple-like glass materials (translucency, blur, depth). Use this skill when designing iOS-fir511skills.sh installs
3secondsky avatarreact-composition-patternssecondsky/claude-skillsReact composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing reus494skills.sh installs
4lobehub avatarvercel-react-best-practiceslobehub/lobehubReact and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js c489skills.sh installs
5aj-geddes avatarvue-application-structureaj-geddes/useful-ai-promptsStructure Vue 3 applications using Composition API, component organization, and TypeScript. Use when building scalable Vue applications with proper separation o447skills.sh installs
6gocallum avatarclerk-nextjs-skillsgocallum/nextjs16-agent-skillsClerk authentication for Next.js 16 (App Router only) with proxy.ts setup, migration from middleware.ts, environment configuration, and MCP server integration.438skills.sh installs