Ask HN: What is your CSS setup in 2017?

by Narzeruson 8/1/2017, 3:19 PMwith 15 comments

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?

Why?

by jacheeon 8/2/2017, 1:53 PM

Hand-crafted, small-batch artisanal, organic, vanilla CSS.

by rgeraon 8/2/2017, 12:46 AM

Still SASS via webpack (before that grunt and gulp). Experimenting with styled components and really liking what I'm seeing even though I thought I'd hate it. https://github.com/styled-components/styled-components

by pjungwiron 8/2/2017, 5:48 PM

I like how the Rails Asset Pipeline gives you a single CSS artifact with a cache-busting hash in the name, but I've been trying to use Webpack for some new projects and I was surprised to learn that by default it doesn't create any 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't find any answers.

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:

https://github.com/pjungwir/webpack-bootstrap-test

by codegeekon 8/1/2017, 4:33 PM

I am playing around with http://bulma.io which is based on flexbox. Only complain is that they don't use https on their marketing site yet :) but otherwise, looks like a great clean framework.

by romanovcodeon 8/3/2017, 1:45 PM

Sass + Spectre[0]

[0] https://picturepan2.github.io/spectre/index.html

by companyhenon 8/1/2017, 3:59 PM

Depends the site I'm working on but usually just plain CSS with Bootstrap. Sometimes I use SASS which is nice.

by txmjson 8/2/2017, 12:56 PM

PostCSS + sometimes a lightweight helper library such as http://basscss.com/ which provides some really nice defaults.

by Slaulon 8/1/2017, 4:34 PM

I've been experimenting with Bulma (http://bulma.io/) and I've been enjoying it so far.

by 02thoevaon 8/1/2017, 10:41 PM

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.

by tmalyon 8/1/2017, 6:42 PM

I am using bourbon.io along with libsass to compile my css via a Makefile

I am using the flexbox aspect of the framework called Neat.

by wprapidoon 8/2/2017, 12:06 AM

vanilla CSS + bootstrap or foundation

by hueyl77on 8/4/2017, 10:20 PM

Sass + Bootstrap or Bulma

by hfourmon 8/1/2017, 8:55 PM

pretty much 99% JS styles (react, radium, aphrodite css)

by oblibon 8/3/2017, 1:56 AM

plain CSS and Bootstrap.