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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Why everybody speaks only about Tailwind, what happened to Bootstrap?

4 点作者 rrmdp超过 1 年前
I tried Tailwind, made a simple project with it and I liked.<p>Recently had the chance to work on a Bootstrap 5 project and I think is really good too.<p>I see the every single dev speak about Tailwind like if it&#x27;s the only good framework and Bootstrap is not good any longer.<p>Why this?

5 条评论

Leftium超过 1 年前
I personally prefer Bootstrap to Tailwind, but my favorite is <a href="https:&#x2F;&#x2F;picocss.com&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;picocss.com&#x2F;</a><p>Usually, I just want decent-looking default CSS styles. The benefits of a CSS framework have diminishing returns when using frameworks with styles scoped to components (like SvelteKit&#x2F;Vue&#x2F;React).<p>The fact Tailwind removes all styles so you can&#x27;t even tell a button is a button unless you add classes is annoying. If you know the class names, sometimes it&#x27;s a little more convenient to add Tailwind classes, but for the most part it just clutters the HTML. And it makes it difficult to update entire &quot;classes&quot; of elements: you have to update each element one at a time.
评论 #37623623 未加载
ZeroGravitas超过 1 年前
People don&#x27;t seem to understand how to customize Bootstrap, so they re-invent the wheel with things like Tailwind.
PaulHoule超过 1 年前
I use bootstrap for my own projects because I use it to work and don&#x27;t have to be distracted with yet another framework.<p>The part of me that likes extreme DSLs gets a bit of a thrill out of Tailwind but Bootstrap is closer to the original intention of CSS but I&#x27;d still like to see something that uses modern css features (like calc() and nesting) to build a design system for a site where the classes are mostly semantic.<p>Trouble is most designers would rather draw one pretty picture at a time than do the systems thinking it takes to make a design system. There&#x27;s always been a huge mismatch between what CSS offers and what designers want although we&#x27;ve gotten a huge toolbox (40+ spec documents) that let them do what they need, sometimes with some grace.
eureka-belief超过 1 年前
Bootstrap and tailwind take two different approaches. I like tailwind because it allows me to keep the styling with the html. Previously the philosophy was to have semantic html and apply style as a separate layer. But in practice I find that style and html end up going hand in hand. And I don’t like needing to constantly switch between the html and css files.<p>Heres one breakdown of the various approaches to styling that you might find useful: <a href="https:&#x2F;&#x2F;youtu.be&#x2F;CQuTF-bkOgc?si=aO7YLMo2U-Y2EEUR" rel="nofollow noreferrer">https:&#x2F;&#x2F;youtu.be&#x2F;CQuTF-bkOgc?si=aO7YLMo2U-Y2EEUR</a>
ChrisArchitect超过 1 年前
Ask HN:
评论 #37615436 未加载