Next.js Discord

Discord Forum

Missing Tailwind classes

Unanswered
Beagle-Harrier posted this in #help-forum
Open in Discord
Beagle-HarrierOP
Ok, this is driving me really nuts. Why the heck are Tailwind classes missing in the final compiled CSS file? There is only grids for 3 and 7 columns. What the...?

This is the config file, btw:

/** @type {import('tailwindcss').Config} */
module.exports = {
  content: [
    './src/pages/**/*.{js,ts,jsx,tsx,mdx}',
    './src/components/**/*.{js,ts,jsx,tsx,mdx}',
    './src/app/**/*.{js,ts,jsx,tsx,mdx}',
  ],
  theme: {
    extend: {
      backgroundImage: {
        'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
        'gradient-conic':
          'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
      },
    },
  },
  plugins: [],
}

1 Reply

Beagle-HarrierOP
It's like NextJS is purging some classes... for some reason