【问题标题】:How do I change the .prose class to .Normal in Tailwind CSS Typography plugin?如何在 Tailwind CSS Typography 插件中将 .prose 类更改为 .Normal?
【发布时间】:2021-09-30 18:14:44
【问题描述】:

我有 Tailwind 2.2.6 和官方 Tailwind Typography 插件安装在一个相对普通的设置上。我正在 CMS 上构建一个网站,该网站使用 CSS 类“.Normal”进行所有排版。

如何将 Tailwind 排版类从 .prose 更改为 .Normal?

【问题讨论】:

    标签: tailwind-css


    【解决方案1】:

    TailwindCSS 的 Robin 为我回答了这个问题

    // tailwind.config.js
    module.exports = {
      theme: {
        // ...
      },
      plugins: [
        require('@tailwindcss/typography')({ className: 'Normal' }),
        // ...
      ],
    }
    

    【讨论】:

      猜你喜欢
      • 2021-06-10
      • 1970-01-01
      • 1970-01-01
      • 2020-07-18
      • 1970-01-01
      • 2021-04-27
      • 2022-11-01
      • 2012-08-12
      • 2023-01-15
      相关资源
      最近更新 更多