You could use the namespace feature of Less for that:
http://lesscss.org/features/#features-overview-feature-names...
I haven't personally used it, though.
Another solution would be have a "button.less" like this:
comp-a, comp-b, comp-c {
.button {
}
}There's nothing stopping you from doing any of that with CSS today, especially if you use SASS or LESS.
SASS and LESS are CSS DSLs, you are doing limited programming with CSS, at that stage you may as well do programming in a Turing complete language like JS and reduce the number of tools in your tool chain.
I prefer to have a button class, for example in react that when instanced renders all the time the same. It boundles it's css within, just like this lib.