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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: What is your CSS setup in 2017?

13 点作者 Narzerus将近 8 年前
What is your preferred setup for managing css code in 2017? Do you use pre-processors? a grid system? frameworks like bootstrap? CSS modules? JSS?<p>Why?

14 条评论

jachee将近 8 年前
Hand-crafted, small-batch artisanal, organic, vanilla CSS.
rgera将近 8 年前
Still SASS via webpack (before that grunt and gulp). Experimenting with styled components and really liking what I&#x27;m seeing even though I thought I&#x27;d hate it. <a href="https:&#x2F;&#x2F;github.com&#x2F;styled-components&#x2F;styled-components" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;styled-components&#x2F;styled-components</a>
pjungwir将近 8 年前
I like how the Rails Asset Pipeline gives you a single CSS artifact with a cache-busting hash in the name, but I&#x27;ve been trying to use Webpack for some new projects and I was surprised to learn that by default it doesn&#x27;t create <i>any</i> CSS file, but embeds the CSS in Javascript and injects it at runtime. Is that considered better nowadays? What are the pros and cons? I Googled around a bit but didn&#x27;t find any answers.<p>Btw here is a sample webpack config that uses ExtractTextPlugin to get behavior more like the Asset Pipeline, including pulling in Bootstrap and getting correct font references. Maybe someone can use it:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;pjungwir&#x2F;webpack-bootstrap-test" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;pjungwir&#x2F;webpack-bootstrap-test</a>
codegeek将近 8 年前
I am playing around with <a href="http:&#x2F;&#x2F;bulma.io" rel="nofollow">http:&#x2F;&#x2F;bulma.io</a> which is based on flexbox. Only complain is that they don&#x27;t use https on their marketing site yet :) but otherwise, looks like a great clean framework.
romanovcode将近 8 年前
Sass + Spectre[0]<p>[0] <a href="https:&#x2F;&#x2F;picturepan2.github.io&#x2F;spectre&#x2F;index.html" rel="nofollow">https:&#x2F;&#x2F;picturepan2.github.io&#x2F;spectre&#x2F;index.html</a>
companyhen将近 8 年前
Depends the site I&#x27;m working on but usually just plain CSS with Bootstrap. Sometimes I use SASS which is nice.
评论 #14902606 未加载
txmjs将近 8 年前
PostCSS + sometimes a lightweight helper library such as <a href="http:&#x2F;&#x2F;basscss.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;basscss.com&#x2F;</a> which provides some really nice defaults.
Slaul将近 8 年前
I&#x27;ve been experimenting with Bulma (<a href="http:&#x2F;&#x2F;bulma.io&#x2F;" rel="nofollow">http:&#x2F;&#x2F;bulma.io&#x2F;</a>) and I&#x27;ve been enjoying it so far.
02thoeva将近 8 年前
Still like using SCSS with Bootstrap. So easy to get into the habit of nesting things 10 selectors deep though - a style guide is a must.
tmaly将近 8 年前
I am using bourbon.io along with libsass to compile my css via a Makefile<p>I am using the flexbox aspect of the framework called Neat.
wprapido将近 8 年前
vanilla CSS + bootstrap or foundation
hueyl77将近 8 年前
Sass + Bootstrap or Bulma
hfourm将近 8 年前
pretty much 99% JS styles (react, radium, aphrodite css)
oblib将近 8 年前
plain CSS and Bootstrap.