TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

My Journey to build daisyUI: Why Tailwind CSS was not enough?

54 pointsby Matrixikover 1 year ago

8 comments

rcarrover 1 year ago
If I remember right, the design philosophy around why Tailwind encourages you to write all the different classes out individually each time is that it wants you to reuse components rather than CSS classes because as the codebase scales and gets more complex you now know that any changes are only going to affect that component and not that component + whatever dev decided to use that custom class you made somewhere else. The other issue it solves is loads of devs making custom classes that are almost identical and cluttering up the codebase. If you&#x27;re working on personal projects and know you&#x27;re only ever going to need to change those three things about buttons then this is probably a great thing to use but be aware that if you&#x27;re creating a commercial project and may have lots of people working on it, this is probably not the way to to go. I will see if I can find the exact part of the tailscale docs where they go into this and update this comment with the link later.<p>Edit: The core concepts section is worth a read in it&#x27;s entirety but I believe this is the relative part:<p><a href="https:&#x2F;&#x2F;tailwindcss.com&#x2F;docs&#x2F;reusing-styles#avoiding-premature-abstraction" rel="nofollow noreferrer">https:&#x2F;&#x2F;tailwindcss.com&#x2F;docs&#x2F;reusing-styles#avoiding-prematu...</a>
评论 #38742758 未加载
评论 #38733333 未加载
danielhepover 1 year ago
This looks like a very good project. I am setting up for a new project and I was planning on using ShadcnUI for it, but after reading this blog post I&#x27;m interested in trying Daisy. I like the way it&#x27;s structured for customizability. Does anyone have any thoughts on using this vs Shadcn?
评论 #38729248 未加载
评论 #38730051 未加载
jmakerover 1 year ago
A wonderful UX on my mobile device. I personally am fond of Microsoft’s Fluent UI, but I can’t get their websites to work in Safari—either it doesn’t render anything (Blazor) or it manages to render but it’s just not mobile ready (React). That’s a show stopper concern for any UI library. Nevertheless I made a couple of mock-ups for which I solved those rendering issues, which later went in production. But I must say, that Daisy UI site is amazing and just a true eye candy. I think I’ll try it for my blog, it’s been long overdue to refresh the UI.
JaDoggover 1 year ago
Hello, thank you for this. I recently got PR(s) to add astro&#x2F;tailwind&#x2F;daisyui to yakshalang.github.io from 2 devs. I&#x27;m blown away from how good the website looks now. :) Happily deleted my homegrown and badly written CSS.
评论 #38739261 未加载
moi2388over 1 year ago
I’m not surprised tailwind was not enough. If you use tailwind you’ve decided css or scss was not enough, meaning probably nothing will ever be enough for you.<p>Those unable to walk will always trade in their crutches for wheelchairs.
评论 #38737126 未加载
评论 #38737547 未加载
savanalyover 1 year ago
I use daisyUI for my side project and it is fantastic! Many thanks to the creator for their hard work.
recroadover 1 year ago
Been using DaisyUI for a year. Highly recommend - it’s opinionated just to the right level
siduckover 1 year ago
unocss!