Replies: 1 comment 4 replies
-
That's a great question. The biggest difference between the two is that daisyUI relies solely on class names to create and compose their components whereas STWUI relies on slots to handle this. I love Svelte but as a React developer I have fought slots (named slots for the most part) as Svelte has matured and with SvelteKit about to hit 1.0 I decided to challenge myself and embrace the slot if you will. Currently, there is built-in light and dark mode out of the box (still needs to be documented) and in the future, there will be documentation on how to override these themes and create your own if you like. As far as deciding one over the other, I think it all comes down to preference. I struggle with mixing class composition and component composition. SWUI allows you to focus on getting a project up quickly and efficiently with easy-to-understand component architecture. By embracing the slot, developers can now have the freedom to change a component as they see fit. If you don't like the In the future, I anticipate having a Hope this helps and thanks for starting the discussion! |
Beta Was this translation helpful? Give feedback.
-
stwui seems very promising, kudos! I've been using daisyui for a while which is quite similar, delivers more on customizing looks and less on features as far as I can say compared to stwui.
What would your comparison be? Why should I prefer one over the other?
Beta Was this translation helpful? Give feedback.
All reactions