-
Has anyone managed to get this to work with the Tailwind Alpha? I believe they are moving away from PostCSS? https://tailwindcss.com/blog/tailwindcss-v4-alpha The alpha has been out for a while so hoping someone has had more luck than me :) |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
Ah apologies there is actually a discussion already #2899 Bit sad the alpha doesn't have plugin architecture yet... hope they don't try to pin Catalyst on people |
Beta Was this translation helpful? Give feedback.
-
naive question... is it possible to import daisyui as a traditional CSS file? |
Beta Was this translation helpful? Give feedback.
-
Seems like v4.0.0-alpha.23 already supports plugins, but it doesn't work with daisyUI since it only support single-class selectors and daisyUI uses complex ones like media queries that will probably never be supported by the new version: tailwindlabs/tailwindcss#14114 I assume that changing daisyUI to use just single class selectors and nesting should also work in v3, right? |
Beta Was this translation helpful? Give feedback.
-
@saadeghi hey buddy! I think we should have a side note on docs explaining how to try daisyUI alpha/beta. What do you think? I am looking forward it to try with maryUI. |
Beta Was this translation helpful? Give feedback.
Yes, you can import the css file from node modules from
daisyui/dist/full.css
But this css file includes every class name. Even the ones you're not using in your project. So you might want to use an external tool like postcss-purge to remove unused class names and create a smaller CSS file for production.
Let me know if you have any questions.