Generate static css files for each theme #3048
hmd-ai
started this conversation in
Ideas / feature requests
Replies: 1 comment 1 reply
-
This is one of the things I'm planning to do for daisyUI 5. But first we should wait for Tailwind CSS 4 to be released and see the API changes and how is it going to use plugins in the CSS file instead of |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Firstly, thank you for making daisyui. I specially love the wide selection of themes.
This might be somewhat out of scope, but I was wondering if it's possible to generate static css files for each theme (and/or maybe even each component). This would make it possible to use daisyui without having to have any special build setup, i.e. just drop the theme css file and use classes similar to other component based css libraries. I realise this is not aligned with tailwind's philosophy, but daisyui is a component based library (and uses tailwind as utility based library internally).
I imagine this could be done during daisyui's build step to generate the static files.
Here's how I think it should work for the end user:
Or just pure html and css:
Beta Was this translation helpful? Give feedback.
All reactions