0
votes

Using tailwind with postcss, below you could find the configuration files of postcss, webpack, package.json and tailwind. I added new class bg-red-800 it is not applying. I followed this link (https://tailwindcss.com/docs/installation/using-postcss) for setup but newly added class bg-red-800 is not applying enter image description here

Package json- running npm run build enter image description here

postcss.config.js

module.exports = {
  plugins: {
    tailwindcss: {},
    autoprefixer: {},
  },
};

tailwind.config.js

module.exports = {
  purge: {
    enabled: true,
    content: ["./dist/**/*.html"],
  },
  darkMode: false, // or 'media' or 'class'
  theme: {
    extend: {
      keyframes: {
        scrolly: {
          "0%": { transform: "translateY(0)" },
          "100%": { transform: "translateY(-100%)" },
        },
      },
      animation: {
        scrolly: "scrolly 20s linear infinite",
      },
    },
  },
  variants: {
    extend: {},
  },
  plugins: [],
};