Skip to content

Commit 5f75413

Browse files
committed
Generate local CSS variables on utilities when using state option
1 parent 1b31f84 commit 5f75413

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scss/mixins/_utilities.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@
7878
@each $pseudo in $state {
7979
.#{$property-class + $infix + $property-class-modifier}-#{$pseudo}:#{$pseudo} {
8080
@each $property in $properties {
81+
@if $is-local-vars {
82+
@each $local-var, $variable in $is-local-vars {
83+
--#{$prefix}#{$local-var}: #{$variable};
84+
}
85+
}
8186
#{$property}: $value if($enable-important-utilities, !important, null);
8287
}
8388
}

0 commit comments

Comments
 (0)