🔗 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.
05
Group & Peer
parent/sibling state-based styling
06:has() Variant
has-*, group-has-*, peer-has-*
07Child Variants
first:, last:, even:, odd:, empty:
08Form State
required:, valid:, invalid:, autofill:
09A11y Variants
motion-safe:, forced-colors:, contrast-more:
10Directional & Media
rtl:, ltr:, print:, open:
11Data Attributes
data-*, [data-state=open] patterns
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.
16
OKLCH Colors
perceptual uniformity, why v4 switched
17Color-Mix & Opacity
color-mix(), /40 opacity modifiers
18@theme inline
when var resolution breaks
19Multi-Theme Systems
scoped themes, data-theme switching
20Gradients v4
bg-linear-*, bg-radial-*, bg-conic-*
21@property Directive
typed CSS custom properties, animatable vars
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.
26
Keyframes & Animate
@keyframes + --animate-* namespace
27Transitions & Timing
transition-*, duration-*, ease-*
283D Transforms
rotate-*, scale-*, perspective, 3D
29@starting-style
enter/exit transitions, display: none
new in v4
30Filters & Masks
backdrop-blur, filter, mask, blend
31Scroll-Driven Animations
animation-timeline: scroll(), view()
32View Transitions
View Transitions API + Tailwind
Phase 7 — Build, Directives & Production
@source, @plugin, Preflight, build tooling, v3→v4 migration, production optimization.
33
@source Detection
content scanning, globs, monorepo
34Plugins & Directives
@plugin, @reference, @variant
35Preflight & Reset
what Preflight resets, @layer base
36Build Tooling
CLI, Vite, PostCSS, Lightning CSS
37v3 → v4 Migration
breaking changes, upgrade tool
38Production Optimization
tree-shaking, pinned builds, targeting
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.