3 ms·
I also highly recommend this article, "CSS Utility Classes and "Separation of Concerns": https://adamwathan.me/css-utility-classes-and-separation-of-concerns/ h
by dmitriid 9y ago
I also highly recommend this article, "CSS Utility Classes and "Separation of Concerns": https://adamwathan.me/css-utility-classes-and-separation-of-concerns/ https://adamwathan.me/css-utility-classes-and-separation-of-...
This helps you wrap your head around semantic-vs-layout CSS and Functional/Atomic CSS
- keybits 9y agoAgree. (The OP article already links to this in the 'Atomic CSS' section.)
- afarrell 9y ago> Phase 3: Content-agnostic CSS components Huh. As a mostly-backend dev reading this, it seems like both this and react.js are driving toward a philosophy where you consider the existing html elements to be a box of legos with certain default behaviour and then you can also use CSS and Javascript to manufacture other components that have different behaviour. Then, after building up the components you need, you snap together your layout from those components.
- dmitriid 9y agoYup. It's also known as Atomic Design. I highly recommend this (not that long) book http://atomicdesign.bradfrost.com/table-of-contents/ http://atomicdesign.bradfrost.com/table-of-contents/ for an overview. Mind you, the concept is simple, but it's not that easy to implement it in practice.
- rimliu 9y agoAnd then visit http://www.csszengarden.com/ http://www.csszengarden.com/ (also metioned in the article) and take that article with a huge grain of salt. Especially with advent of CSS Grid some thing that were difficult do achieve because source ordering still had a play are much easier now. To me it looks like people still don't take HTML and CSS seriously. By this I mean they do not think that it is worth understanding neither HTML nor CSS and "whatever Boostrap does" is good enough. Looking at that "Atomic CSS" abdomination: maybe let's just bring back <font> and friends and be done with it. Or people just forgot what web was for…
- dmitriid 9y agoThere's nothing abominable in the Atomic CSS. In order to achieve Zen Garden with Zen Garden approach you need a PHD in brain-bending. It's enough to open any of the CSS files in Zen Garden to see the amount of tedious repetitive manual work, where every single small element has to be manually tweaked and adjusted. > Or people just forgot what web was for… The web was for simple text documents. News flash: the world has changed, and the web has changed, too.