So. We have variables in CSS now. That’s pretty neat, but it doesn’t get us all the way to CSS heaven. What we really need is a way to write little bits of reusable CSS. These features have long existed in Sass, Less, and Stylus, but there’s no way to do it in regular CSS.
There’s plans for adding a new spec for what’s currently being called the
@apply rule. It looks like a Sass
mixin, but it’s really more like
extending a placeholder selector, but because it’s native, without the selector insanity that
extend can cause.
Blink is already shipping it behind a runtime flag.
Direct Link to Article — Permalink
CSS from the Future is a post from CSS-Tricks