Created
April 16, 2020 21:32
-
-
Save jonschr/90e7703006a83966ffd26cd37695c727 to your computer and use it in GitHub Desktop.
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
/* ========================================================================== | |
Color loop | |
========================================================================== */ | |
$colors: ("black": $black, "dark": $dark, "dark2": $dark2, "gray": $gray, "orange": $orange, "red": $red, "light": $light, "lightred": $lightred, "white": $white); | |
$dark: ("black": $black, "dark": $dark, "dark2": $dark2, "gray": $gray, "orange": $orange, "red": $red); | |
@each $name, | |
$color in $colors { | |
.has-#{$name}-color, | |
.has-color-#{$name}, | |
.#{$name} { | |
color: $color; | |
} | |
.has-#{$name}-background-color, | |
.background-#{$name}, | |
.#{$name}-background { | |
background-color: $color; | |
} | |
} | |
@each $name, | |
$color in $dark { | |
.has-#{$name}-background-color, | |
.background-#{$name}, | |
.#{$name}-background { | |
color: white; | |
p, | |
li, | |
h1, | |
h2, | |
h3, | |
h4 { | |
color: white; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment