What Is New in Tailwind CSS 1.9
| Category | Highlights |
|---|---|
| New Features | presets config, scaffolded future flags, col-span-full, row-span-full, configurable outline, outline-black, outline-white, small rotate/skew values, xl/2xl/3xl border radius, grid-auto-columns, grid-auto-rows, promotion of defaultLineHeights and standardFontWeights |
| Bug Fixes | keyframe values no longer escaped, use word-wrap instead of overflow-wrap for IE11 target |
How can I share design tokens across projects with the new presets option?
Tailwind CSS 1.9 introduces a presets key in tailwind.config.js that lets you import shared configuration objects.
In practice you create a base config file (e.g., shared-preset.js) and reference it:
// shared-preset.js
module.exports = {
theme: {
colors: {
primary: '#1a202c',
secondary: '#2d3748',
},
},
};
// tailwind.config.js
module.exports = {
presets: [require('./shared-preset')],
// your project-specific overrides here
};
This matters if you maintain a design system across multiple repositories; you only need to update the preset once.
What new grid-related utilities does Tailwind CSS 1.9 add?
Version 1.9 adds col-span-full, row-span-full, and utilities for grid-auto-columns and grid-auto-rows.
col-span-fullmakes an element span every column in the grid.row-span-fullmakes an element span every row.auto-cols-{size}andauto-rows-{size}let you control the size of automatically generated tracks.
Example:
<div class="grid grid-cols-3 gap-4">
<div class="col-span-full bg-gray-200 p-4">Full-width header</div>
<div class="auto-cols-min bg-gray-100 p-2">Item 1</div>
<div class="auto-cols-min bg-gray-100 p-2">Item 2</div>
</div>
Watch out for older browsers that may need a prefix for the new CSS properties.
Which new visual utilities (rotate, skew, border radius) are introduced in 1.9?
Tailwind CSS 1.9 ships with finer-grained rotate and skew steps as well as extra border-radius scales.
- Small rotate values:
rotate-1,rotate-2,-rotate-1, etc. - Small skew values:
skew-x-1,skew-y-2, and their negative counterparts. - Additional border radius utilities:
rounded-xl,rounded-2xl,rounded-3xl.
Example usage:
<div class="rotate-2 skew-x-1 rounded-2xl bg-indigo-500 p-6">Styled box</div>
This matters if you need subtle visual tweaks without writing custom CSS.
How has outline support been improved for better accessibility in 1.9?
The outline utilities are now configurable and outline-none is more accessible by default, with new outline-black and outline-white helpers.
In practice you can enable outline utilities in the corePlugins section or customize the colors:
module.exports = {
corePlugins: {
outline: true,
},
theme: {
outline: {
black: ['2px solid #000'],
white: ['2px solid #fff'],
},
},
};
Most teams will appreciate the explicit outline-black class for focus states on dark backgrounds.
Frequently Asked Questions
Do I need to modify my existing tailwind.config.js to start using presets in 1.9?
You only need to add a presets array; existing settings remain unchanged.
Can I still use the old outline utilities after the update?
Yes, the original outline classes continue to work, but they now follow the new configurable defaults.
Are the new col-span-full and row-span-full utilities responsive?
They respect any responsive prefix, so you can write md:col-span-full for medium screens.
How do I apply the new rotate-1 utility in my markup?
Use the class rotate-1 directly on the element you want to rotate.
What should I do if I encounter the keyframe escaping bug in older builds?
Upgrade to Tailwind CSS 1.9 where keyframe values are no longer escaped.
Is the experimental 2xl breakpoint enabled by default in 1.9?
No, you must opt-in by adding it to your theme's screens configuration.