3 ms·
Firstly, thank you to the writer, this was a nice short read. However, It's funny, there are so many of these collections of CSS Pro Tips, though as someone wh
by pookieinc 11y ago
Firstly, thank you to the writer, this was a nice short read.
However, It's funny, there are so many of these collections of CSS Pro Tips, though as someone who writes CSS, I feel the complexity is not in these general rules, but lies more in how CSS is organized for readability, how to write _composable_ and _reusable_ CSS components, and the like.
I'd love to see more articles on how people organize their CSS (either with BEM, SMACSS, or other creative frameworks), or how they create reusable CSS components to effectively add to an overall styleguide, rather than one-off tricks. Or how to reduce unused CSS clutter, or make _huge_ performance gains by doing certain things.
A few weeks ago, I came across this great article by @fat [1] and I think this is infinitely more helpful for the common beginner than a few tips. Using :not in CSS, vertically-aligning items, or making comma-separated lists using pseudo-elements may be helpful, but those can be easily Googled.
[1] https://medium.com/@fat/mediums-css-is-actually-pretty-fucking-good-b8e2a6c78b06 https://medium.com/@fat/mediums-css-is-actually-pretty-fucki...
- chasingtheflow 11y agoThis was a good read. Reminded me of reading the trello css style guide https://gist.github.com/bobbygrace/9e961e8982f42eb91b80 https://gist.github.com/bobbygrace/9e961e8982f42eb91b80