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-numericutilities (#2305) -
新的
place-items、place-content、place-self、justify-items和justify-self工具 (#2306)¥New
place-items,place-content,place-self,justify-items, andjustify-selfutilities (#2306) -
purge(#2283) 的新preserveHtmlElements选项¥New
preserveHtmlElementsoption forpurge(#2283) -
purge(#2288) 的新layers模式¥New
layersmode forpurge(#2288) -
支持将变体配置为函数 (#2309)
¥Support configuring variants as functions (#2309)
-
暗黑模式变体(实验性)(#2279)
¥Dark mode variant (experimental) (#2279)
更改(Changes)
¥Changes
-
@layer规则中的 CSS 现在与相应的@tailwind规则 (#2312) 分组。¥CSS within
@layerat-rules are now grouped with the corresponding@tailwindat-rule (#2312)
已弃用(Deprecations)
¥Deprecations
-
conservative清除模式已被弃用,取而代之的是新的layers模式(#2288)。¥The
conservativepurge mode has been deprecated in favor of the newlayersmode (#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 →