Ask HN: Best Practices for CSS in a Modern JavaScript App
I would be very interested to hear:
- What are you using?
- Why did you choose this?
- What do you like?
- What don't you like?
I would be very interested to hear:
- What are you using?
- Why did you choose this?
- What do you like?
- What don't you like?
I used sass before, but not looking back now as you get the same features with postcss. Also, the node-sass bindings are always a mess to deal with.
Another reason for this approach is that I believe React Native will be the universal framework for mobile and web development and it also uses this method of styling so I'm adapting to it.
For future looking projects, I'd be inclined to try jss or aphrodite (for some reason I always think ambrosia when trying to remember that framework's name).
I think that tighter integration to an application and controls will be better for webapp consistency... for a website, I might be inclined to go the post/precss route... though invariably it may come down to whatever UI kit I start from.
I just use a regular CSS file. Because it works nicely without any weirdness.