TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

54 点作者 Matrixik超过 1 年前

8 条评论

rcarr超过 1 年前
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 未加载
danielhep超过 1 年前
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 未加载
jmaker超过 1 年前
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.
JaDogg超过 1 年前
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 未加载
moi2388超过 1 年前
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 未加载
savanaly超过 1 年前
I use daisyUI for my side project and it is fantastic! Many thanks to the creator for their hard work.
recroad超过 1 年前
Been using DaisyUI for a year. Highly recommend - it’s opinionated just to the right level
siduck超过 1 年前
unocss!