Re:CSS Zen Garden
by saagarjha on Thursday March 19, 2020 @11:54AM
(#22628639)
That sounds like an excellent use case for CSS variables.
[ Parent
| on HN ]
Those were not supported across all browsers for a long time (recently IE11). Also, a variable only covers one property and is not adequate to extract many shared properties. Less/sass mixins and inheritance are a good way to extract reusable parts shared between components.