Replies: 1 comment 2 replies
-
Can you give us a minimum reproduction link please? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone. I'm trying to add daisyui to a node project that is using the mustache template engine and htmx to render pages.
When I include the CDN into the head I get all the styles, but the daisyui installation guidelines say not to use CDN in production, so I am trying to install it as a tailwind plugin. DaisyUI installation docs
I have installed tailwindcss and daisyUI
and get
I have edited the tailwind config file
And as you can see I have tried a few variations of the content path, all the way into my template html files. As I am using HTMX I don't have an output folder, templates are built on the fly and this is the only folder with html in it. All these paths have been tried on their own and in combination. Nothing changes.
I have run
npx tailwindcss -i ./public/assets/styles/input.css -o ./public/assets/styles/tailwind.css --watch
and i have the tailwind.css style linked into my html header.
When I remove the tailwind CDN link and just load the local generated tailwind.css file I get no daisy styles. Having tried lots of variations, I have to admit defeat and acknowledge I don't understand how this is supposed to work.
Can anyone suggest what I am doing wrong and how to connect the dots to have daisyui components? Thanks
Beta Was this translation helpful? Give feedback.
All reactions