Our great sponsors
-
Cavepaint CSS
Cavepaint is a color, contrast and typography library and composable class framework for CSS and Less
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Try Cavepaint
And the second pen is using that idea. Using a class as container with CSS variables, and accepts modifications on those variables. However the difference between your code and mine is inheritance vs composition. You use a parent class to modify that "module class", it works great until the creative being really CREATIVE and wants an action component with 1/3 join-us style, 1/3 .today style and 1/3 one-more style. I guess you will end up with a join-us-today-one-more parent, and the properties inside is duplicated with those three classes. Not good I think.