Skip to content

Instantly share code, notes, and snippets.

@kevincolten
Last active December 15, 2017 03:10
Show Gist options
  • Save kevincolten/1ac785db30499b8efa3f3c86d4f97bba to your computer and use it in GitHub Desktop.
Save kevincolten/1ac785db30499b8efa3f3c86d4f97bba to your computer and use it in GitHub Desktop.
Color Tachyons
$blue: #0026FF;
$red: #FF0000;
$yellow: #F2FF00;
$colors: (
blue: $blue,
red: $red,
yellow: $yellow
);
@each $color, $var in $colors {
.text-#{$color} {
color: $var;
}
.link-#{$color} {
color: $var;
&:hover, &:click {
color: darken($var, 10%);
}
}
.bg-#{$color} {
background-color: $var;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment