Skip to content

Commit

Permalink
feat(utilities): add .fg-{hue}-{index}, .bg-{hue}-{index} classes
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnbot committed Apr 29, 2019
1 parent 19b351b commit 872d309
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/utilities/colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@
/* Set the background to $bg-purple-light */
.bg-purple-light { background-color: $bg-purple-light !important; }

// Generate a foreground and background utility for every shade of every hue
@each $hue, $shades in $hue-maps {
@each $index, $color in $shades {
.fg-#{$hue}-#{$index} { color: $color !important; }
.bg-#{$hue}-#{$index} { background-color: $color !important; }
}
}

.bg-shade-gradient {
background-image: linear-gradient(180deg, rgba($black, 0.065), rgba($black, 0)) !important;
background-repeat: no-repeat !important;
Expand Down

0 comments on commit 872d309

Please sign in to comment.