@@ -44,7 +44,7 @@ describe('compiling CSS', () => {
44
44
45
45
@media (prefers-color-scheme: dark) {
46
46
.dark\\:bg-black {
47
- background-color: #000;
47
+ background-color: var(--color-black, #000) ;
48
48
}
49
49
}
50
50
}"
@@ -186,28 +186,28 @@ describe('@apply', () => {
186
186
.foo {
187
187
--tw-translate-x: 100%;
188
188
translate: var(--tw-translate-x) var(--tw-translate-y);
189
- background-color: #ef4444;
189
+ animation: var(--animate-spin, spin 1s linear infinite);
190
+ background-color: var(--color-red-500, #ef4444);
190
191
text-decoration-line: underline;
191
- animation: 1s linear infinite spin;
192
192
}
193
193
194
194
.foo:hover {
195
- background-color: #3b82f6;
195
+ background-color: var(--color-blue-500, #3b82f6) ;
196
196
}
197
197
198
198
@media (width >= 768px) {
199
199
.foo {
200
- background-color: #22c55e;
200
+ background-color: var(--color-green-500, #22c55e) ;
201
201
}
202
202
}
203
203
204
204
.foo:hover:focus {
205
- background-color: #fecaca;
205
+ background-color: var(--color-red-200, #fecaca) ;
206
206
}
207
207
208
208
@media (width >= 768px) {
209
209
.foo:hover:focus {
210
- background-color: #bbf7d0;
210
+ background-color: var(--color-green-200, #bbf7d0) ;
211
211
}
212
212
}
213
213
@@ -412,7 +412,7 @@ describe('important', () => {
412
412
}
413
413
414
414
.animate-spin\\! {
415
- animation: 1s linear infinite spin !important;
415
+ animation: var(--animate-spin, spin 1s linear infinite) !important;
416
416
}
417
417
418
418
@keyframes spin {
@@ -458,16 +458,16 @@ describe('sorting', () => {
458
458
}
459
459
460
460
.p-1 {
461
- padding: .25rem;
461
+ padding: var(--spacing-1, .25rem) ;
462
462
}
463
463
464
464
.px-1 {
465
- padding-left: .25rem;
466
- padding-right: .25rem;
465
+ padding-left: var(--spacing-1, .25rem) ;
466
+ padding-right: var(--spacing-1, .25rem) ;
467
467
}
468
468
469
469
.pl-1 {
470
- padding-left: .25rem;
470
+ padding-left: var(--spacing-1, .25rem) ;
471
471
}"
472
472
` )
473
473
} )
@@ -516,17 +516,17 @@ describe('sorting', () => {
516
516
}
517
517
518
518
.mx-0 {
519
- margin-left: 0 ;
520
- margin-right: 0 ;
519
+ margin-left: var(--spacing-0, 0px) ;
520
+ margin-right: var(--spacing-0, 0px) ;
521
521
}
522
522
523
523
.gap-4 {
524
- gap: 1rem;
524
+ gap: var(--spacing-4, 1rem) ;
525
525
}
526
526
527
527
:where(.space-x-2 > :not([hidden]) ~ :not([hidden])) {
528
- margin-inline-start: calc(.5rem * calc(1 - var(--tw-space-x-reverse)));
529
- margin-inline-end: calc(.5rem * var(--tw-space-x-reverse));
528
+ margin-inline-start: calc(var(--spacing-2, .5rem) * calc(1 - var(--tw-space-x-reverse)));
529
+ margin-inline-end: calc(var(--spacing-2, .5rem) * var(--tw-space-x-reverse));
530
530
}
531
531
532
532
@property --tw-space-x-reverse {
@@ -707,7 +707,7 @@ describe('Parsing themes values from CSS', () => {
707
707
}
708
708
709
709
.accent-red-500 {
710
- accent-color: red;
710
+ accent-color: var(--color- red-500, red) ;
711
711
}"
712
712
` )
713
713
} )
@@ -730,7 +730,7 @@ describe('Parsing themes values from CSS', () => {
730
730
}
731
731
732
732
.accent-red-500 {
733
- accent-color: #f10;
733
+ accent-color: var(--color-red-500, #f10) ;
734
734
}"
735
735
` )
736
736
} )
@@ -756,11 +756,11 @@ describe('Parsing themes values from CSS', () => {
756
756
}
757
757
758
758
.accent-blue-500 {
759
- accent-color: #00f;
759
+ accent-color: var(--color-blue-500, #00f) ;
760
760
}
761
761
762
762
.accent-red-500 {
763
- accent-color: red;
763
+ accent-color: var(--color- red-500, red) ;
764
764
}"
765
765
` )
766
766
} )
@@ -785,11 +785,11 @@ describe('Parsing themes values from CSS', () => {
785
785
}
786
786
787
787
.w-1\\/2 {
788
- width: 75%;
788
+ width: var(--width-1\\/2, 75%) ;
789
789
}
790
790
791
791
.w-75\\% {
792
- width: 50%;
792
+ width: var(--width-75\\%, 50%) ;
793
793
}"
794
794
` )
795
795
} )
@@ -822,11 +822,11 @@ describe('Parsing themes values from CSS', () => {
822
822
}
823
823
824
824
.text-lg {
825
- font-size: 20px;
825
+ font-size: var(--font-size-lg, 20px) ;
826
826
}
827
827
828
828
.accent-red {
829
- accent-color: red;
829
+ accent-color: var(--color- red, red) ;
830
830
}
831
831
832
832
@keyframes foo {
@@ -865,11 +865,11 @@ describe('Parsing themes values from CSS', () => {
865
865
}
866
866
867
867
.text-sm {
868
- font-size: 13px;
868
+ font-size: var(--font-size-sm, 13px) ;
869
869
}
870
870
871
871
.accent-green {
872
- accent-color: #0f0;
872
+ accent-color: var(--color-green, #0f0) ;
873
873
}"
874
874
` )
875
875
} )
@@ -900,7 +900,7 @@ describe('Parsing themes values from CSS', () => {
900
900
}
901
901
902
902
.accent-green {
903
- accent-color: #0f0;
903
+ accent-color: var(--color-green, #0f0) ;
904
904
}"
905
905
` )
906
906
} )
@@ -938,7 +938,7 @@ describe('Parsing themes values from CSS', () => {
938
938
}
939
939
940
940
.animate-foobar {
941
- animation: 1s infinite foobar ;
941
+ animation: var(--animate-foobar, foobar 1s infinite) ;
942
942
}
943
943
944
944
@keyframes foobar {
0 commit comments