Skip to content

How to see tailwind.config.js #2

@JesterXL

Description

@JesterXL

I installed this, can see basic tailwind styles, but it seems to not be able to see tailwind.config.js. I can use w-24 or bg-red-600 and see them in the generated styles, but if I use extends color like I do in other project, it's not in the generated CSS. I'm wondering if maybe it is seeing it, but my content is configured wrong? If I screw up the syntax of tailwind.config.js, I get compiler errors so that implies it's finding it. It's in the same root folder as Docusaurus.

My config:

module.exports = {
    content: [
        './src/**/*.{html,js,md,tsx}',
        './docs/**/*.{html,js,md,tsx}',
        './static/**/*.{html,js,md,tsx}',
    ],
    theme: {
        extend: {
            color: {
                primary: '#0D4066'
            }
        }
    },
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions