Hacker News new | ask | show | jobs
by notresidenter 796 days ago
Yeah, I think the DaisyUI developers miss the point of Tailwind. You should almost never use "semantic class names" with Tailwind (and what even is a semantic class name, honestly? It's all context-, developer-dependent) and instead go for a component (using a js framework, a web component, or other) and write the component with utility classes.
1 comments

I tried out DaisyUI and I think it had kind of best of both worlds and was pretty ergonomic. IMO the main issues with it were that it's just CSS (not much accessibility etc. thought out for me), but the design isn't that great (in practice writing custom components without DaisyUI could have gotten the same results).