Skip to content

Components styles missing #3301

Answered by Syrup
Syrup asked this question in Q&A
Dec 2, 2024 · 3 comments · 2 replies
Discussion options

You must be logged in to vote

I figured it out myself! It turns out I just needed to add:

    'node_modules/daisyui/dist/**/*.js',
    'node_modules/react-daisyui/dist/**/*.js',

to the TailwindCSS configuration file, as mentioned in the README of the repository https://github.com/daisyui/react-daisyui.
For example:

module.exports = {
  content: [
    "./app/**/*.{js,jsx,ts,tsx}",
    "node_modules/daisyui/dist/**/*.js",
    "node_modules/react-daisyui/dist/**/*.js",
  ],
  // other configurations...
};

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Syrup
Comment options

Comment options

You must be logged in to vote
1 reply
@Syrup
Comment options

Answer selected by Syrup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants