Hacker News new | ask | show | jobs
by jug 325 days ago
Doesn't this miss the point with Tailwind and why we have Tailwind in the first place?
2 comments

Yup. And if you use a component based design, the whole premise/problem largely disappears
>Doesn't this miss the point with Tailwind and why we have Tailwind in the first place?

Not for me. Say I have a new app and I want it to have a left nav. I could write my own styles with tailwind or...I could just put a .menu on there and gets all the sensible defaults for padding, spacing, font size, background colors, etc.

But having done that, I'll still want to edit the specific padding, spacing, fonts, and background color of the menu to suit my needs. Plus there's...the whole rest of the site, not all of which is made up of DaisyUI components. So I will be wanting Tailwind for all that for the regular reasons one wants Tailwind.

I think it's the best of both worlds. Tons of free components right out of the box for non-designer developers (like bootstrap), but you still have the power of Tailwind at your fingertips.

I think the theming & semantic color support is underrated. You just use `-primary` or `-secondary` classes everywhere instead of hardcoding the colors. The theme colors are then just updated with css variables.

Dark mode is free, you don't have to pepper your code with a million "dark:*" classes.

You can just use Bootstrap then, there's no need for the extra abstraction of Tailwind and DaisyUI.