小编Ant*_*ich的帖子

如何禁用某些文件的 Tailwind css?

我想禁用某些文件的 tailwind,因为 tailwind 基本样式会重写来自 CMS 的样式。我尝试禁用预检,但它破坏了所有现有系统。有可能吗?

顺风版本 - 2.2.7

我的顺风配置:

const defaultTheme = require('tailwindcss/defaultTheme');
const colors = require('tailwindcss/colors');

module.exports = {
  mode: 'jit',
  purge: ['./src/**/*.{js,tsx}'],
  theme: {
    extend: {
      colors: {
        indigo: colors.indigo,
        green: colors.green,
        yellow: colors.yellow,
        'royal-blue': {
          100: '#F0F1FC',
          200: '#D9DCF9',
        },
        blueGray: {
          50: '#f8fafc',
          100: '#f1f5f9',
          400: '#94a3b8',
        },
      },
      fontFamily: {
        sans: ['Inter var', ...defaultTheme.fontFamily.sans],
      },
      maxWidth: {
        '8xl': '90rem',
      },
    },
  },
  variants: {},
  plugins: [
    function ({ addComponents }) {
      addComponents({
        '.container': { …
Run Code Online (Sandbox Code Playgroud)

next.js tailwind-css

5
推荐指数
1
解决办法
1973
查看次数

标签 统计

next.js ×1

tailwind-css ×1