Skip to content

Commit c632570

Browse files
committed
use --tw instead of --tw-empty
1 parent 6b434bb commit c632570

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/corePlugins.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ export let variantPlugins = {
234234
}
235235

236236
if (!check.includes(':')) {
237-
check = `${check}: var(--tw-empty)`
237+
check = `${check}: var(--tw)`
238238
}
239239

240240
if (!(check.startsWith('(') && check.endsWith(')'))) {

tests/arbitrary-variants.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ it('should support supports', () => {
640640
<div class="supports-[(foo:bar)or(bar:baz)]:underline"></div>
641641
<!-- 'and' check (raw) -->
642642
<div class="supports-[(foo:bar)and(bar:baz)]:underline"></div>
643-
<!-- No value give for the property, defaulting to prop: var(--tw-empty) -->
643+
<!-- No value give for the property, defaulting to prop: var(--tw) -->
644644
<div class="supports-[container-type]:underline"></div>
645645
<!-- Named supports usage -->
646646
<div class="supports-grid:underline"></div>
@@ -699,7 +699,7 @@ it('should support supports', () => {
699699
}
700700
}
701701
702-
@supports (container-type: var(--tw-empty)) {
702+
@supports (container-type: var(--tw)) {
703703
.supports-\[container-type\]\:underline {
704704
text-decoration-line: underline;
705705
}

0 commit comments

Comments
 (0)