Tailwind CSS 4 Deep Dive

concept bundles — container queries → variants → arbitrary values → oklch color → animations → build pipeline ← all tutorials
🔗 Companion section Where ../frontend/tailwind/ (4 bundles) teaches v4 onboarding, this section goes advanced. frontend/tailwind/ →

Phase 1 — Container Queries

Components respond to their CONTAINER's size, not the viewport. The future of responsive design.

Phase 2 — The Variant Ecosystem

Beyond hover: and dark: — the full variant system for state, interaction, accessibility.

Phase 3 — Arbitrary Values & Dynamic Utilities

When built-in utilities aren't enough: arbitrary values, variants, and functional @utility.

Phase 4 — Color & Theming Internals

oklch color space, color-mix, @theme inline, multi-theme systems, gradients, @property.

Phase 5 — Modern CSS Layout

Native CSS nesting, subgrid, the spacing scale, aspect-ratio — modern layout with Tailwind v4.

Phase 6 — Animations & Motion

Keyframes, transitions, 3D transforms, @starting-style, scroll-driven, view transitions.

Phase 7 — Build, Directives & Production

@source, @plugin, Preflight, build tooling, v3→v4 migration, production optimization.

Each bundle = a working zero-dep .html demo with a [check: OK] gold-check + a static .md guide. Styling: Tailwind v4 via @tailwindcss/browser@4 CDN. Workflow: ../skills/concept-builder/SKILL.md. Build plan: TODO.md.