-
I am using DaisyUI and React-DaisyUI, and everything worked fine without issues. However, when I was modifying the Tailwind config file, the styles for the Button, Drawer, Navbar, and Stats components disappeared. All I did was modify the Tailwind config file. I have even tried it on another machine, but the issue persists. What's wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
The only change I made in the Tailwind config file was updating the accent color |
Beta Was this translation helpful? Give feedback.
-
Please share a minimal reproduction link. |
Beta Was this translation helpful? Give feedback.
-
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. module.exports = {
content: [
"./app/**/*.{js,jsx,ts,tsx}",
"node_modules/daisyui/dist/**/*.js",
"node_modules/react-daisyui/dist/**/*.js",
],
// other configurations...
}; |
Beta Was this translation helpful? Give feedback.
I figured it out myself! It turns out I just needed to add:
to the TailwindCSS configuration file, as mentioned in the README of the repository https://github.com/daisyui/react-daisyui.
For example: