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)

  • 新的 font-variant-numeric 工具 (#2305)
  • 新增 place-itemsplace-contentplace-selfjustify-itemsjustify-self 工具 (#2306)
  • purge 提供新的 preserveHtmlElements 选项 (#2283)
  • purge 新增 layers 模式 (#2288)
  • 支持将变体配置为函数 (#2309)
  • 夜间模式变体(实验性)(#2279)

更改(Changes)

  • 现在,@layer 规则内的 CSS 会与相应的 @tailwind 规则分组 (#2312)

已弃用(Deprecations)

  • conservative 清除模式已被弃用,建议使用新的 layers 模式 (#2288)

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

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

想讨论这篇文章吗? 在 GitHub 上讨论 →

TailwindCSS 中文网 - 粤ICP备13048890号