Skip to content

Commit 601bc5f

Browse files
committed
Standardize default config to use unified callback argument syntax
1 parent 11bfa0a commit 601bc5f

File tree

1 file changed

+39
-39
lines changed

1 file changed

+39
-39
lines changed

stubs/defaultConfig.stub.js

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -116,16 +116,16 @@ module.exports = {
116116
square: '1 / 1',
117117
video: '16 / 9',
118118
},
119-
backdropBlur: (theme) => theme('blur'),
120-
backdropBrightness: (theme) => theme('brightness'),
121-
backdropContrast: (theme) => theme('contrast'),
122-
backdropGrayscale: (theme) => theme('grayscale'),
123-
backdropHueRotate: (theme) => theme('hueRotate'),
124-
backdropInvert: (theme) => theme('invert'),
125-
backdropOpacity: (theme) => theme('opacity'),
126-
backdropSaturate: (theme) => theme('saturate'),
127-
backdropSepia: (theme) => theme('sepia'),
128-
backgroundColor: (theme) => theme('colors'),
119+
backdropBlur: ({ theme }) => theme('blur'),
120+
backdropBrightness: ({ theme }) => theme('brightness'),
121+
backdropContrast: ({ theme }) => theme('contrast'),
122+
backdropGrayscale: ({ theme }) => theme('grayscale'),
123+
backdropHueRotate: ({ theme }) => theme('hueRotate'),
124+
backdropInvert: ({ theme }) => theme('invert'),
125+
backdropOpacity: ({ theme }) => theme('opacity'),
126+
backdropSaturate: ({ theme }) => theme('saturate'),
127+
backdropSepia: ({ theme }) => theme('sepia'),
128+
backgroundColor: ({ theme }) => theme('colors'),
129129
backgroundImage: {
130130
none: 'none',
131131
'gradient-to-t': 'linear-gradient(to top, var(--tw-gradient-stops))',
@@ -137,7 +137,7 @@ module.exports = {
137137
'gradient-to-l': 'linear-gradient(to left, var(--tw-gradient-stops))',
138138
'gradient-to-tl': 'linear-gradient(to top left, var(--tw-gradient-stops))',
139139
},
140-
backgroundOpacity: (theme) => theme('opacity'),
140+
backgroundOpacity: ({ theme }) => theme('opacity'),
141141
backgroundPosition: {
142142
bottom: 'bottom',
143143
center: 'center',
@@ -178,11 +178,11 @@ module.exports = {
178178
150: '1.5',
179179
200: '2',
180180
},
181-
borderColor: (theme) => ({
181+
borderColor: ({ theme }) => ({
182182
...theme('colors'),
183183
DEFAULT: theme('colors.gray.200', 'currentColor'),
184184
}),
185-
borderOpacity: (theme) => theme('opacity'),
185+
borderOpacity: ({ theme }) => theme('opacity'),
186186
borderRadius: {
187187
none: '0px',
188188
sm: '0.125rem',
@@ -211,8 +211,8 @@ module.exports = {
211211
inner: 'inset 0 2px 4px 0 rgb(0 0 0 / 0.06)',
212212
none: 'none',
213213
},
214-
caretColor: (theme) => theme('colors'),
215-
accentColor: (theme) => ({
214+
caretColor: ({ theme }) => theme('colors'),
215+
accentColor: ({ theme }) => ({
216216
...theme('colors'),
217217
auto: 'auto',
218218
}),
@@ -239,9 +239,9 @@ module.exports = {
239239
help: 'help',
240240
'not-allowed': 'not-allowed',
241241
},
242-
divideColor: (theme) => theme('borderColor'),
243-
divideOpacity: (theme) => theme('borderOpacity'),
244-
divideWidth: (theme) => theme('borderWidth'),
242+
divideColor: ({ theme }) => theme('borderColor'),
243+
divideOpacity: ({ theme }) => theme('borderOpacity'),
244+
divideWidth: ({ theme }) => theme('borderWidth'),
245245
dropShadow: {
246246
sm: '0 1px 1px rgb(0 0 0 / 0.05)',
247247
DEFAULT: ['0 1px 2px rgb(0 0 0 / 0.1)', '0 1px 1px rgb(0 0 0 / 0.06)'],
@@ -342,8 +342,8 @@ module.exports = {
342342
extrabold: '800',
343343
black: '900',
344344
},
345-
gap: (theme) => theme('spacing'),
346-
gradientColorStops: (theme) => theme('colors'),
345+
gap: ({ theme }) => theme('spacing'),
346+
gradientColorStops: ({ theme }) => theme('colors'),
347347
gridAutoColumns: {
348348
auto: 'auto',
349349
min: 'min-content',
@@ -458,7 +458,7 @@ module.exports = {
458458
5: 'repeat(5, minmax(0, 1fr))',
459459
6: 'repeat(6, minmax(0, 1fr))',
460460
},
461-
height: (theme) => ({
461+
height: ({ theme }) => ({
462462
auto: 'auto',
463463
...theme('spacing'),
464464
'1/2': '50%',
@@ -479,7 +479,7 @@ module.exports = {
479479
full: '100%',
480480
screen: '100vh',
481481
}),
482-
inset: (theme, { negative }) => ({
482+
inset: ({ theme, negative }) => ({
483483
auto: 'auto',
484484
...theme('spacing'),
485485
...negative(theme('spacing')),
@@ -555,17 +555,17 @@ module.exports = {
555555
disc: 'disc',
556556
decimal: 'decimal',
557557
},
558-
margin: (theme, { negative }) => ({
558+
margin: ({ theme, negative }) => ({
559559
auto: 'auto',
560560
...theme('spacing'),
561561
...negative(theme('spacing')),
562562
}),
563-
maxHeight: (theme) => ({
563+
maxHeight: ({ theme }) => ({
564564
...theme('spacing'),
565565
full: '100%',
566566
screen: '100vh',
567567
}),
568-
maxWidth: (theme, { breakpoints }) => ({
568+
maxWidth: ({ theme, breakpoints }) => ({
569569
none: 'none',
570570
0: '0rem',
571571
xs: '20rem',
@@ -646,22 +646,22 @@ module.exports = {
646646
white: ['2px dotted white', '2px'],
647647
black: ['2px dotted black', '2px'],
648648
},
649-
padding: (theme) => theme('spacing'),
650-
placeholderColor: (theme) => theme('colors'),
651-
placeholderOpacity: (theme) => theme('opacity'),
652-
ringColor: (theme) => ({
649+
padding: ({ theme }) => theme('spacing'),
650+
placeholderColor: ({ theme }) => theme('colors'),
651+
placeholderOpacity: ({ theme }) => theme('opacity'),
652+
ringColor: ({ theme }) => ({
653653
DEFAULT: theme('colors.blue.500', '#3b82f6'),
654654
...theme('colors'),
655655
}),
656-
ringOffsetColor: (theme) => theme('colors'),
656+
ringOffsetColor: ({ theme }) => theme('colors'),
657657
ringOffsetWidth: {
658658
0: '0px',
659659
1: '1px',
660660
2: '2px',
661661
4: '4px',
662662
8: '8px',
663663
},
664-
ringOpacity: (theme) => ({
664+
ringOpacity: ({ theme }) => ({
665665
DEFAULT: '0.5',
666666
...theme('opacity'),
667667
}),
@@ -711,11 +711,11 @@ module.exports = {
711711
125: '1.25',
712712
150: '1.5',
713713
},
714-
scrollMargin: (theme, { negative }) => ({
714+
scrollMargin: ({ theme, negative }) => ({
715715
...theme('spacing'),
716716
...negative(theme('spacing')),
717717
}),
718-
scrollPadding: (theme) => theme('spacing'),
718+
scrollPadding: ({ theme }) => theme('spacing'),
719719
sepia: {
720720
0: '0',
721721
DEFAULT: '100%',
@@ -733,7 +733,7 @@ module.exports = {
733733
6: '6deg',
734734
12: '12deg',
735735
},
736-
space: (theme, { negative }) => ({
736+
space: ({ theme, negative }) => ({
737737
...theme('spacing'),
738738
...negative(theme('spacing')),
739739
}),
@@ -745,12 +745,12 @@ module.exports = {
745745
1: '1',
746746
2: '2',
747747
},
748-
textColor: (theme) => theme('colors'),
749-
textIndent: (theme, { negative }) => ({
748+
textColor: ({ theme }) => theme('colors'),
749+
textIndent: ({ theme, negative }) => ({
750750
...theme('spacing'),
751751
...negative(theme('spacing')),
752752
}),
753-
textOpacity: (theme) => theme('opacity'),
753+
textOpacity: ({ theme }) => theme('opacity'),
754754
transformOrigin: {
755755
center: 'center',
756756
top: 'top',
@@ -800,7 +800,7 @@ module.exports = {
800800
out: 'cubic-bezier(0, 0, 0.2, 1)',
801801
'in-out': 'cubic-bezier(0.4, 0, 0.2, 1)',
802802
},
803-
translate: (theme, { negative }) => ({
803+
translate: ({ theme, negative }) => ({
804804
...theme('spacing'),
805805
...negative(theme('spacing')),
806806
'1/2': '50%',
@@ -818,7 +818,7 @@ module.exports = {
818818
'-3/4': '-75%',
819819
'-full': '-100%',
820820
}),
821-
width: (theme) => ({
821+
width: ({ theme }) => ({
822822
auto: 'auto',
823823
...theme('spacing'),
824824
'1/2': '50%',

0 commit comments

Comments
 (0)