Tailwind CSS v1.8.0

Adam Wathan

Tailwind CSS v1.8 现已发布,它包含一些新的实用程序、一些新功能以及一个令人兴奋的新实验!

¥Tailwind CSS v1.8 is now available with a handful of new utilities, a couple new features, and an exciting new experiment!

新功能(New features)

¥New features

  • 新的 font-variant-numeric 实用程序 (#2305)

    ¥New font-variant-numeric utilities (#2305)

  • 新的 place-itemsplace-contentplace-selfjustify-itemsjustify-self 实用程序 (#2306)

    ¥New place-items, place-content, place-self, justify-items, and justify-self utilities (#2306)

  • purge (#2283) 的新 preserveHtmlElements 选项

    ¥New preserveHtmlElements option for purge (#2283)

  • purge (#2288) 的新 layers 模式

    ¥New layers mode for purge (#2288)

  • 支持将变体配置为函数 (#2309)

    ¥Support configuring variants as functions (#2309)

  • 暗黑模式变体(实验性)(#2279

    ¥Dark mode variant (experimental) (#2279)

更改(Changes)

¥Changes

  • @layer 规则中的 CSS 现在与相应的 @tailwind 规则 (#2312) 分组。

    ¥CSS within @layer at-rules are now grouped with the corresponding @tailwind at-rule (#2312)

已弃用(Deprecations)

¥Deprecations

  • conservative 清除模式已被弃用,取而代之的是新的 layers 模式(#2288)。

    ¥The conservative purge mode has been deprecated in favor of the new layers mode (#2288)

查看 GitHub 上的完整发行说明 了解更多详细信息。

¥Check out the full release notes on GitHub for more details.

想要讨论这篇文章吗?Discuss this on GitHub →

¥Want to talk about this post? Discuss this on GitHub →

TailwindCSS v4.1 中文网 - 粤ICP备13048890号