News for hackers. Stuff that matters.
Re:CSS Zen Garden by saagarjha on Thursday March 19, 2020 @11:54AM (#22628639)
That sounds like an excellent use case for CSS variables.
Re:CSS Zen Garden by dsego on Thursday March 19, 2020 @12:41PM (#22629168)
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.