Skip to content

Instantly share code, notes, and snippets.

@ahaywood
Last active March 23, 2017 15:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahaywood/01d4846d58927ad5837e9661449d17a5 to your computer and use it in GitHub Desktop.
Save ahaywood/01d4846d58927ad5837e9661449d17a5 to your computer and use it in GitHub Desktop.
Button Colors
$buttons: (success, green, white),
(warning, yellow, black),
(danger, red, white);
 
/* For each key in the map, created an own class */
@each $name, $background, $text in buttons {
  .button--#{$name} {
    background: $background;
color: $text;
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment