Live data from Hacker News

DaisyUI – Tailwind CSS Components

daisyui.com

61–70 of 174 posts

Re: DaisyUI – Tailwind CSS Components

#61
post #27
post #23

Earlier quoted context omitted.

With Tailwind, if you write out something like that more than once or twice, you're really supposed to bundle it together. Either as a plain CSS class, or a component in your framework of choice. I suppose a library of common elements is a good thing to have, but the reason I like Tailwind is that I can use the utilities at first and then easily gather them together as plain CSS classes as and when that makes sense t…

But if you're going to hide away CSS inside a component, why not just use inline CSS? What does Tailwind add to this?

a very underrated feature of Tailwind is it's excellent documentation with immediate search. Want italic text? In straight CSS, how long will it take to look up is it font-style: italic; or text-style: italic or text-italic: true ? Tailwind's docs make it virtually instant. Even more impressive with flex and grid layouts (is it justify-items or align-items, etc). I find that Tailwind reduces the time from "idea in brain" to "implemented on page" by about 90%, now multiply that by dozens or hundreds of individual page elements. (to be fair, I don't do a ton of front end so I forget the CSS syntax quite often)

Re: DaisyUI – Tailwind CSS Components

#62
post #37

I’m not saying this is ugly but the visual execution of some of these components is poor. No good usage of padding in some examples, poor ratios between the typography and the containers, inconsistent use of different line widths and border radius, weird and incosistent design choices in spacing and proportions… I mean. This looks alright and it will certainly make any UI look pretty decent, but the execution is not…

Back when Bootstrap 2 was the most popular UI library one of the biggest problems with it was that the defaults were good enough that no one changed them, and consequently every SaaS startup's product looked the same for about 5 years. Pushing people to tweak things while still giving them a solid foundation is a good thing. I'm not saying that's necessarily the case here, but there is a strong argument in favor of n…

This argument makes perfect sense. The easy adoption that never gets updated in future sounds bland.

Re: DaisyUI – Tailwind CSS Components

#64
post #58

I tried using Tailwind, but I just couldn’t get into it. It’s like having to learn CSS all over again because the classnames do not map 1-1 with their respective properties, and autocomplete is lacking. Conversely, Chakra UI Box, which does more or less the same thing is super easy to get into. This looks nice, but I kind of feel like we’ve come full circle two full times to get to this point.

I'm not sure why you would want them to map 1-1? Might as well just write inline styles surely?

For autocomplete, have you seen https://tailwindcss.com/docs/editor-support ?

I use it in PHPStorm and VSCode and I get class name autocompletion just fine.

Re: DaisyUI – Tailwind CSS Components

#65
post #31
post #22

I am more impressed by the landing page than the actual components. Is anyone aware of a good component library for landing/marketing pages for Tailwind? There are toolkits like https://frontendor.com but they all follow the 5-10 year old "theme" of insanely packed content you had seen on SaaS pages some years ago. Together with many photographs or flat humans... I can't find anything with "new" approach which uses m…

I must be getting old because I literally don't get front end devs these days... The landing page is like a few divs with some position centres. What would you even use a "component library" for in this case? The only thing on the entire page with any complexity whatsoever are the component demos (which are obviously part of this DaisyUI thing itself) and the code blocks/syntax highlighting, which I'm sure there's a…

You must indeed be getting very old. The purpose of the library is not to implement its own landing page.

Re: DaisyUI – Tailwind CSS Components

#66

Anyone with experience using Tailwind UI want to comment on how this compares?

I recently used Tailwind UI to build https://zcashblockexplorer.com

Tailwind UI is great! ( please note that I a primarily a backend dev with limited knowledge of CSS )

Looking forward to explore DaisyUI soon !

Post reply on HN