Skip to content

Commit b09346b

Browse files
committed
refactor: update utilities generator
1 parent ab70296 commit b09346b

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

scss/_utilities.scss

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,28 +128,33 @@ $utilities: map-merge(
128128
"border-color": (
129129
property: border-color,
130130
class: border,
131-
values: map-merge($theme-colors, ("white": $white))
131+
values: map-merge($theme-colors, ("white": $white)),
132+
vars: true
132133
),
133134
"border-top-color": (
134135
property: border-top-color,
135136
class: border-top,
136-
values: map-merge($theme-colors, ("white": $white))
137+
values: map-merge($theme-colors, ("white": $white)),
138+
vars: true
137139
),
138140
"border-end-color": (
139141
property: border-right-color,
140142
class: border-end,
141143
values: map-merge($theme-colors, ("white": $white)),
144+
vars: true,
142145
rtl: true
143146
),
144147
"border-bottom-color": (
145148
property: border-bottom-color,
146149
class: border-bottom,
147-
values: map-merge($theme-colors, ("white": $white))
150+
values: map-merge($theme-colors, ("white": $white)),
151+
vars: true
148152
),
149153
"border-start-color": (
150154
property: border-left-color,
151155
class: border-start,
152156
values: map-merge($theme-colors, ("white": $white)),
157+
vars: true,
153158
rtl: true
154159
),
155160
"border-width": (

scss/mixins/_utilities.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
.#{$property-class + $infix + $property-class-modifier} {
5555
@each $property in $properties {
5656
@if $generate-vars == true {
57-
#{$property}: var(--#{$variable-prefix}#{$property-class + $infix + $property-class-modifier}, $value) if($enable-important-utilities, !important, null);
57+
#{$property}: var(--#{$variable-prefix}#{$key}, $value) if($enable-important-utilities, !important, null);
5858
}
5959
@else {
6060
@if $generate-rtl == true {

0 commit comments

Comments
 (0)