Hacker News new | ask | show | jobs
by saagarjha 2286 days ago
That sounds like an excellent use case for CSS variables.
1 comments

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.