Last active
December 15, 2017 03:10
-
-
Save kevincolten/1ac785db30499b8efa3f3c86d4f97bba to your computer and use it in GitHub Desktop.
Color Tachyons
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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