Re:In defense of functional CSS
by sam0x17 on Thursday September 27, 2018 @12:43PM
(#18086209)
The point of this, imo, though, is instead of having a designer design a bunch of components, you have a designer design a bunch of functional styles that can compose components and still be on-brand. So say you have a component, and you want to add an on-brand/in-style shadow to it, you just add the small-shadow class, instead of digging through the css of other components and copy-pasting their lengthy shadow css. I would use this mainly for shadows, fonts, and margins.
[ Parent
| on HN ]
There are no comments on this comment yet.