LESS and SASS variables for all known brands. Inspired by Brandcolors and some selfbuilt buttons in a sideproject a few days ago I thought it would be useful to have some brandcolors as variable for LESS and Sass in every project I need them.
If you start your application from scratch you just can copy&paste or use style.less
which automatically imports the Button-Mixin and Brandcolors Stylesheet.
@import "buttons/buttons-mixin.less";
@import "brandcolors.less";
of course you can get them wherever you want as long as you take care of the path.
In your template file you just give your button the class you add to the stylesheet later on.
<button class="facebook-button">
facebook button
</button>
then you have to add:
.facebook-button {
.sharing-button-small (@facebook);
}
where @facebook
is the color which is imported from the brandcolors.less
-file
to your stylesheet where you define the button.
The buttons mixin currently provides styling for "small"-buttons.
If you use LESS or SASS and if you're looking for a way to organize your Sass/LESS checkout Organize that Sass! on A List Apart.
See the Wiki if you want to know which colors are currently available.