Latest in branch 1.8
1.8.13
Released 09 Oct 2020
(5 years ago)
SoftwareTailwind CSS
Branch1.8
Initial release1.8.0
04 Sep 2020
(5 years ago)
Latest release1.8.13
09 Oct 2020
(5 years ago)
Support status12 Oct 2020
(Ended 5 years, 7 months ago)
Release noteshttps://github.com/tailwindlabs/tailwindcss/releases/tag/v1.8.13
Source codehttps://github.com/tailwindlabs/tailwindcss/tree/v1.8.13
Downloadhttps://github.com/tailwindlabs/tailwindcss/releases/tag/v1.8.13
Tailwind CSS 1.8 ReleasesView full list

What Is New in Tailwind CSS 1.8

Category Highlights
New Features font-variant-numeric utilities, grid alignment utilities, preserveHtmlElements option, layers purge mode, variant functions, experimental dark mode
Improvements @layer rules are now automatically grouped by Tailwind layer, reducing order-specificity bugs
Breaking Changes layers purge mode becomes default, requiring purgeLayersByDefault flag for v2 compatibility; conservative purge mode removed
Deprecations conservative purge mode deprecated in favor of layers mode

How can I use the new font-variant-numeric utilities for better typographic control?

Tailwind 1.8 adds composable font-variant-numeric utilities that let you toggle individual OpenType features directly in your markup.

  • tabular-nums - aligns numbers in tables.
  • slashed-zero - shows a slash through zero.
  • ordinal, oldstyle-nums, proportional-nums, etc.

These classes are composable, so you can combine them:

<p class="slashed-zero tabular-nums diagonal-fractions">12345</p>

Use normal-nums to reset at a breakpoint:

<p class="slashed-zero tabular-nums md:normal-nums">12345</p>

What grid alignment utilities does Tailwind 1.8 introduce and how do I apply them?

The release adds a full set of place-* and justify-* utilities for aligning items, content, and self within CSS Grid and Flexbox.

  • justify-items-start, justify-items-center, justify-items-stretch, etc.
  • place-content-between, place-content-evenly, place-self-end, and more.

All new utilities generate responsive variants out of the box:

<div class="grid place-items-center md:place-items-start">
  <div class="justify-self-end">Item</div>
</div>

How has the purge configuration changed with the new layers mode and preserveHtmlElements option?

Purge now defaults to "layers" mode and you can enable preserveHtmlElements to automatically safelist raw HTML tags.

// tailwind.config.js
module.exports = {
  purge: {
    mode: 'layers',
    layers: ['base', 'components', 'utilities'],
    preserveHtmlElements: true,
    content: ['./src/**/*.html'],
  },
}

This prevents accidental removal of elements like h1 when source files compile from markdown or other templating languages.

How do I enable experimental dark mode and what utilities does it affect?

Set dark to 'media' or 'class' and turn on the darkModeVariant flag to get dark: prefixed variants.

// tailwind.config.js
module.exports = {
  dark: 'media', // or 'class'
  experimental: {
    darkModeVariant: true,
  },
}

By default it works with backgroundColor, borderColor, divideColor, textColor, gradientColorStops, and placeholderColor:

<div class="bg-white text-black dark:bg-black dark:text-white">...</div>

How can I extend variant lists using functions in Tailwind 1.8?

You can provide a function to the variants key that receives a helper and returns an augmented array.

// tailwind.config.js
module.exports = {
  variants: {
    opacity: ({ before }) => before(['group-hover'], 'hover'),
  },
}

The before helper inserts the new variant before the existing list, letting you add without rewriting the whole array.

Frequently Asked Questions

Does Tailwind 1.8 require any changes to existing purge configurations?
Only if you rely on the old conservative mode; you should switch to mode: 'layers' and optionally set purgeLayersByDefault flag.

Can I still use the conservative purge mode in Tailwind 1.8?
No, the conservative mode is deprecated and will be removed in the next major version.

Which core plugins receive responsive variants by default for the new font-variant-numeric utilities?
Responsive variants are generated for all of the new font-variant-numeric classes out of the box.

How do I reset numeric font features at a specific breakpoint?
Use the normal-nums class with a breakpoint prefix, for example md:normal-nums.

Is the dark mode feature stable in Tailwind 1.8?
It is still experimental and must be enabled via the darkModeVariant flag.

How do I group custom CSS with Tailwind's layers in my stylesheet?
Place your custom rules inside @layer base, @layer components, or @layer utilities and Tailwind will automatically group them with the matching core layer.

Releases In Branch 1.8

VersionRelease date
1.8.1309 Oct 2020
(5 years ago)
1.8.1207 Oct 2020
(5 years ago)
1.8.1106 Oct 2020
(5 years ago)
1.8.1014 Sep 2020
(5 years ago)
1.8.913 Sep 2020
(5 years ago)
1.8.811 Sep 2020
(5 years ago)
1.8.710 Sep 2020
(5 years ago)
1.8.609 Sep 2020
(5 years ago)
1.8.507 Sep 2020
(5 years ago)
1.8.406 Sep 2020
(5 years ago)
1.8.305 Sep 2020
(5 years ago)
1.8.105 Sep 2020
(5 years ago)
1.8.204 Sep 2020
(5 years ago)
1.8.004 Sep 2020
(5 years ago)