Back to articlesDesign
Discovering Tailwind CSS v4
Tailwind CSS v4 brings a revolution in how we style our web applications.
#tailwindcss#css#frontend#design
MailChimp Killer Team
January 10, 20251 minDesign
Discovering Tailwind CSS v4
Tailwind CSS v4 brings a revolution in how we style our web applications.Major Changes
New CSS Engine
/* v4 Configuration */
@import 'tailwindcss/theme' layer(theme);
@import 'tailwindcss/base' layer(base);
@import 'tailwindcss/components' layer(components);
@import 'tailwindcss/utilities' layer(utilities);Simplified Configuration
// tailwind.config.js v4
export default {
content: ['./src/**/*.{html,js,ts,jsx,tsx}'],
theme: {
extend: {
colors: {
primary: 'oklch(0.7 0.15 200)',
},
},
},
}Performance
| Metric | v3 | v4 |
|---|---|---|
| Build time | 2.5s | 0.8s |
| CSS size | 3.8MB | 1.2MB |
| Tree shaking | Yes | Improved |
New Utilities
Container Queries
<div class="@container">
<div class="@sm:text-lg @md:text-xl">Container-based responsive!</div>
</div>Modern Colors
<div class="bg-red-500/20 text-blue-600/80">Native opacity support</div>Written by
MKT
MailChimp Killer Team
Author
Related Articles
Tech
React 19 New Features
Discover the revolutionary new features of React 19
Aug 08, 20261 min
Read more
Tutorial
Proxy Component
Understanding Proxy Components in React to create reusable and maintainable code.
Jan 01, 20252 min
Read more
DevelopmentIntroduction to Next.js 15
Next.js 15 brings many improvements and new features for developing modern React applications.
Jan 15, 20251 min
Read more