A utility-first CSS framework for rapidly building custom user interfaces. Version 4.3.0 offers a new engine with performance improvements, first-class CSS-first configuration, and automatic content detection. Unlike traditional frameworks, Tailwind Core provides low-level utility classes that let you design directly in HTML, with no opinionated components. Breaking changes from v3 include a new configuration system, removal of @tailwind directives, and built-in CSS import support.
npm install tailwind-coreNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Minimal setup with Tailwind Core v4: config file, PostCSS plugin, and base CSS import.
Use @import 'tailwindcss' at the top of your CSS file. Replace @apply with direct utility classes or custom CSS.
Change 'purge: [...]' to 'content: [...]' in tailwind.config.js.
Replace require('tailwindcss') with require('@tailwindcss/postcss') in your PostCSS config.Run `npm install @tailwindcss/postcss` and update postcss.config.js.
Replace @tailwind base/components/utilities with @import 'tailwindcss'.