用来控制字体平滑度的功能类
The quick brown fox jumped over the lazy dog.
<p class="subpixel-antialiased ...">The quick brown fox ...</p>The quick brown fox jumped over the lazy dog.
<p class="antialiased ...">The quick brown fox ...</p>要在特定的断点处控制一个元素的字体平滑度,可以在任何现有的字体平滑度功能类前添加一个 {screen}: 前缀。例如,使用 md:antialiased 来仅在中等及以上尺寸屏幕上应用 antialiased 功能类。
<p class="antialiased sm:subpixel-antialiased md:antialiased ...">
  The quick brown fox jumped over the lazy dog.
</p>关于 Tailwind 的响应式设计功能的更多信息,请查看 响应式设计 文档。
默认情况下, 针对 font smoothing 功能类,只生成 responsive 变体。
您可以通过修改您的 tailwind.config.js 文件中的 variants 部分中的 fontSmoothing 属性来控制为 font smoothing 功能生成哪些变体。
例如,这个配置也将生成 hover and focus 变体:
  // tailwind.config.js
  module.exports = {
    variants: {
      extend: {
        // ...
+       fontSmoothing: ['hover', 'focus'],
      }
    }
  }如果您不打算在您的项目中使用 font smoothing 功能,您可以通过在配置文件的 corePlugins 部分将 fontSmoothing property to false in the corePlugins section of your config file:
  // tailwind.config.js
  module.exports = {
    corePlugins: {
      // ...
+     fontSmoothing: false,
    }
  }