-
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: 8 comments 17 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.
-
Pouya, I've noticed you are making amazing progress on the new version. Thank you for great work 🙏🏻❤️ |
Beta Was this translation helpful? Give feedback.
-
Has anyone had luck with the above method for importing daisyUI lately? I'm running into an issue with using "tailwindcss": "4.0.0-alpha.15" and "daisyui": "5.0.0-alpha.17" Internal server error: [postcss] postcss-import: C:\Coding\animotion\node_modules.pnpm\[email protected]\node_modules\daisyui\index.js:1:9: Unknown word |
Beta Was this translation helpful? Give feedback.
-
@saadeghi The |
Beta Was this translation helpful? Give feedback.
-
I started this discussion for daisyUI 5 alpha: Let me if you have any feedbacks, suggestions, questions |
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.