Skip to content

Commit 1eade5c

Browse files
committed
feat(utilities): add .fg-{hue}-{index}, .bg-{hue}-{index} classes
1 parent 874e5e6 commit 1eade5c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/utilities/colors.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@
3232
/* Set the background to $bg-purple-light */
3333
.bg-purple-light { background-color: $bg-purple-light !important; }
3434

35+
// Generate a foreground and background utility for every shade of every hue
36+
@each $hue, $shades in $hue-maps {
37+
@each $index, $color in $shades {
38+
.fg-#{$hue}-#{$index} { color: $color !important; }
39+
.bg-#{$hue}-#{$index} { background-color: $color !important; }
40+
}
41+
}
42+
3543
.bg-shade-gradient {
3644
background-image: linear-gradient(180deg, rgba($black, 0.065), rgba($black, 0)) !important;
3745
background-repeat: no-repeat !important;

0 commit comments

Comments
 (0)