This is a reference guide for Tailwind CSS v4's major architectural shift from JavaScript config files to CSS-native theming with the @theme directive. It covers the new Oxide engine, container queries, OKLCH color tokens, and the move away from @apply directives. Use it when you're migrating from v3 or building new projects with CSS-first configuration. The tables are dense with specifics: breakpoint values, when to use container queries over viewport media queries, dark mode strategies, and modern layout patterns. One thing to note is that v4 discourages some old patterns like heavy @apply usage, so if you're used to v3 habits, this will push you toward component extraction instead.

skills.sh installs
1.1K
GitHub stars
43.1K
last updated
Jul 14, 2026

Install

$ npx -y skills add sickn33/antigravity-awesome-skills --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.

When to Use

Use this skill when configuring Tailwind v4, using CSS-first theme and design tokens, or implementing container queries and modern Tailwind patterns.


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/sickn33/antigravity-awesome-skills
Category
Frontend Development
First seen
May 16, 2026

More from sickn33/antigravity-awesome-skills

All 708
1getsentry avatarsentry-react-setupgetsentry/sentry-agent-skillsSetup Sentry in React apps. Use when asked to add Sentry to React, install @sentry/react, or configure error monitoring, error boundaries, session replay, or br1.1Kskills.sh installs
2patternsdev avatarreact-server-componentspatternsdev/skillsTeaches React Server Components for zero-bundle server rendering. Use when components only need server-side data access and don't require client-side interactiv1Kskills.sh installs
3mindrally avatarui-designmindrally/skillsUI design best practices for building accessible, performant, and user-friendly interfaces with modern web standards1Kskills.sh installs
4sickn33 avatarreact-patternssickn33/antigravity-awesome-skillsreact patterns970skills.sh installs
5sickn33 avatarfrontend-developersickn33/antigravity-awesome-skillsfrontend developer964skills.sh installs
6alfredoperez avatarangular-best-practices-primengalfredoperez/angular-best-practicesangular best practices primeng951skills.sh installs