Next.js Discord

Discord Forum

Most Tailwind classes work, except a couple...

Unanswered
Beagle-Harrier posted this in #help-forum
Open in Discord
Beagle-HarrierOP
I have a weird issue in which tailwind classes work, except a few. It is strange because w-1/2 works but w-1/5 does not.

This is my tailwind config file:

/** @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: {
                'hero-pattern': "url('/hero.svg')",
                'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
                'gradient-conic':
                    'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
            },
        },
    },
    plugins: [],
};

10 Replies

Beagle-HarrierOP
Not really, sadly :/
But I can share with you anything you wish
If you give me an specific
Just not the whole thing
Beagle-HarrierOP
Maybe this helps?
It is inside the components folder
As the configuration says
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
Beagle-HarrierOP
I just checked the .next/static/css file and it is not there: