Tailwind CSS v4 Modern Pure CSS Engine & Directive Invariants
Deprecates legacy @tailwind base/components/utilities directives and tailwind.config.js in favor of single @import 'tailwindcss' and native @theme CSS variables.
RFC-2119 Invariant Mandates
The keywords “MUST”, “MUST NOT”, and “SHOULD” in this document are to be interpreted as described in BCP 14 / RFC 2119.
CSS entrypoints in Tailwind CSS v4 projects MUST NOT contain legacy @tailwind base, @tailwind components, or @tailwind utilities directives.
All Tailwind v4 projects MUST import stylesheet via '@import "tailwindcss";' at the root of their primary CSS file.
Custom theme tokens and design system variables SHOULD be declared inside '@theme' blocks rather than legacy tailwind.config.js files.
Complete RFC Specification Document
# RFC-007: Tailwind CSS v4 Modern Pure CSS Engine
## 1. Abstract
Tailwind CSS v4 replaces legacy directives with standard CSS imports.
## 2. Invariant Specifications (RFC-2119)
```css
/* COMPLIANT (RFC-007): */
@import "tailwindcss";
@theme {
--color-brand-primary: #0284c7;
}
```
Community Consensus Rating
Do these behavioral constraints represent the highest engineering standard for your team?