Skip to content

Commit b86bdbc

Browse files
Cleanup custom properties (#2771)
* prefix custom properties with tw- * prefix custom properties with tw- in tests * prefix gradient values in the defaultConfig * inline gradient-via-color * simplify --tw-tailwind-empty to --tw-empty * replace the long --tw-font-variant-numeric-... to the way shorter --tw-fvn-... * Rename --tw-box-shadow to --tw-shadow To match class name. * Rename font-variant-numeric variables * Remove 'transform' from transform variables * Shorten gradient variables * Fix style Co-authored-by: Adam Wathan <[email protected]>
1 parent f57fbb6 commit b86bdbc

38 files changed

+136158
-142205
lines changed

__tests__/applyAtRule.test.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -634,8 +634,8 @@ test('adjacent rules are collapsed after being applied', () => {
634634
`
635635
const expected = `
636636
.foo:hover {
637-
--bg-opacity: 1;
638-
background-color: rgba(255, 255, 255, var(--bg-opacity));
637+
--tw-bg-opacity: 1;
638+
background-color: rgba(255, 255, 255, var(--tw-bg-opacity));
639639
opacity: 0.5;
640640
}
641641
.foo {
@@ -1055,8 +1055,8 @@ test('you can apply classes in a nested rule', () => {
10551055
const expected = `
10561056
.selector {
10571057
&:hover {
1058-
--text-opacity: 1;
1059-
color: rgba(255, 255, 255, var(--text-opacity));
1058+
--tw-text-opacity: 1;
1059+
color: rgba(255, 255, 255, var(--tw-text-opacity));
10601060
}
10611061
}
10621062
`

0 commit comments

Comments
 (0)