Tailwind CSS Component Libraries: DaisyUI vs Preline

preview_player
Показать описание
Which approach makes more sense on top of Tailwind? DaisyUI turning multiple classes into one class, or Preline giving you libraries of templates that you copy and paste into your own code?

#shorts
Рекомендации по теме
Комментарии
Автор

Tailwind encourages "styling" to be done in components rather than in CSS classes. Preline seems to embrace this, while DaisyUI attempts to fix this.

RyanTipps
Автор

the preline approach is how i generally use tailwind anyway, anytime i have repetition in classes i abstract it into a component. the daisy ui approach seems to be directly antithetical to the idea of tailwind

aritark
Автор

I find the Preline way better because it gives you the possibility to directly customize the styling

khalilbessaad
Автор

Oh damn, gotta try Preline - thanks Jack!

phucnguyen
Автор

Thanks jack. I love both daisyUI and Preline.

SanjuKumar-hkyy
Автор

Daisy. Preline approach forces way more HTML to be sent to the client than necessary which isn’t cachable on the client like static assets are.

blakepetersen
Автор

I love using Daisy UI! I think its the best option for quickly getting a site looking good and then you can customize or replace as you go.

WillDelish
Автор

I think is better than obfuscating complexity behind some bootstrap-like class. Theo mentioned Shadcn's UI recently, and I think it's the way tailwind component libs should go

SlateIvanovo
Автор

Here I am still using MUI in the professional world but I use Chakra UI for side projects/smaller projects for clients.

quelchx
Автор

the reason I use tailwind is for customization, so I think preline is better

frz_akbar
Автор

thanks a lot I suffered a lot for this

crisis
Автор

I love Flowbit
that's because i get all thing that I need
I can copy and paste
also I can use with react also

mdkawsarislamyeasin
Автор

Yeah looked into recastui it seems interesting. It's got theming with CVA so more like chakra-ui or theme-ui approach. Waiting for stable version but looks good.

pennyberry
Автор

We are back to 2008 PHP/Ruby style with RSC and now to 2011/2017 Bootstrap/MUI with Tailwind "frameworks"... 🔥⚡️

dacam
Автор

I use tailwind ui mostly but if I had to choose other, I would go with shadcn - It has proper premade components and their source code to just copy and paste and customize them fully. I had to deal with variants and cva with tailwind ui when I do stuff like that.

BarisPalabiyik
Автор

just love to do it manually as a designer haha, i uses sass!

CaptainBullzAQW
Автор

Well, to be honest, if I am going to avoid tailwind it will be because of the long class attributes, and I think the most viable options for me at that point would be Bootstrap or maybe Material UI

prgrmr
Автор

I'm used to writing my own css, but I'd use something like Preline

ste-fa-no
Автор

I think it boils down to:

- Do you like Daisy's overall feel and don't mind overriding the crap out of it when you need to?
- Or do you like Preline's atomic strengths from using Tailwind's utilities, lending to easier customization?

docmars
Автор

shadcn Radix UI and Tailwind CSS is the best

nithinraj