tailwindcss 3.2.4 → 3.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/CHANGELOG.md +51 -1
  2. package/README.md +1 -1
  3. package/lib/cli/build/index.js +5 -1
  4. package/lib/cli/build/plugin.js +39 -34
  5. package/lib/cli/index.js +231 -10
  6. package/lib/cli/init/index.js +2 -2
  7. package/lib/cli.js +4 -226
  8. package/lib/corePlugins.js +45 -27
  9. package/lib/featureFlags.js +8 -8
  10. package/lib/index.js +4 -46
  11. package/lib/lib/collapseAdjacentRules.js +2 -2
  12. package/lib/lib/collapseDuplicateDeclarations.js +2 -2
  13. package/lib/lib/content.js +16 -16
  14. package/lib/lib/defaultExtractor.js +10 -5
  15. package/lib/lib/detectNesting.js +7 -1
  16. package/lib/lib/evaluateTailwindFunctions.js +4 -4
  17. package/lib/lib/expandApplyAtRules.js +2 -2
  18. package/lib/lib/expandTailwindAtRules.js +34 -9
  19. package/lib/lib/findAtConfigPath.js +3 -3
  20. package/lib/lib/generateRules.js +105 -50
  21. package/lib/lib/offsets.js +88 -1
  22. package/lib/lib/remap-bitfield.js +87 -0
  23. package/lib/lib/resolveDefaultsAtRules.js +4 -4
  24. package/lib/lib/setupContextUtils.js +121 -80
  25. package/lib/lib/setupTrackingContext.js +25 -4
  26. package/lib/lib/sharedState.js +19 -1
  27. package/lib/oxide/cli/build/deps.js +81 -0
  28. package/lib/oxide/cli/build/index.js +47 -0
  29. package/lib/oxide/cli/build/plugin.js +364 -0
  30. package/lib/oxide/cli/build/utils.js +77 -0
  31. package/lib/oxide/cli/build/watching.js +177 -0
  32. package/lib/oxide/cli/help/index.js +70 -0
  33. package/lib/oxide/cli/index.js +220 -0
  34. package/lib/oxide/cli/init/index.js +35 -0
  35. package/lib/oxide/cli.js +5 -0
  36. package/lib/oxide/postcss-plugin.js +2 -0
  37. package/lib/plugin.js +98 -0
  38. package/lib/postcss-plugins/nesting/plugin.js +2 -2
  39. package/lib/util/cloneNodes.js +2 -2
  40. package/lib/util/color.js +20 -6
  41. package/lib/util/createUtilityPlugin.js +2 -2
  42. package/lib/util/dataTypes.js +26 -2
  43. package/lib/util/defaults.js +4 -4
  44. package/lib/util/escapeClassName.js +3 -3
  45. package/lib/util/formatVariantSelector.js +171 -105
  46. package/lib/util/getAllConfigs.js +2 -2
  47. package/lib/util/{isValidArbitraryValue.js → isSyntacticallyValidPropertyValue.js} +2 -2
  48. package/lib/util/negateValue.js +2 -2
  49. package/lib/util/normalizeConfig.js +22 -22
  50. package/lib/util/pluginUtils.js +38 -40
  51. package/lib/util/prefixSelector.js +22 -8
  52. package/lib/util/resolveConfig.js +8 -10
  53. package/package.json +30 -19
  54. package/peers/index.js +61 -42
  55. package/resolveConfig.d.ts +11 -2
  56. package/scripts/swap-engines.js +40 -0
  57. package/src/cli/build/index.js +6 -2
  58. package/src/cli/build/plugin.js +14 -9
  59. package/src/cli/index.js +234 -3
  60. package/src/cli.js +4 -220
  61. package/src/corePlugins.js +31 -3
  62. package/src/index.js +4 -46
  63. package/src/lib/content.js +12 -17
  64. package/src/lib/defaultExtractor.js +9 -3
  65. package/src/lib/detectNesting.js +9 -1
  66. package/src/lib/expandTailwindAtRules.js +35 -6
  67. package/src/lib/generateRules.js +90 -28
  68. package/src/lib/offsets.js +104 -1
  69. package/src/lib/remap-bitfield.js +82 -0
  70. package/src/lib/setupContextUtils.js +97 -55
  71. package/src/lib/setupTrackingContext.js +31 -6
  72. package/src/lib/sharedState.js +17 -0
  73. package/src/oxide/cli/build/deps.ts +91 -0
  74. package/src/oxide/cli/build/index.ts +47 -0
  75. package/src/oxide/cli/build/plugin.ts +436 -0
  76. package/src/oxide/cli/build/utils.ts +74 -0
  77. package/src/oxide/cli/build/watching.ts +225 -0
  78. package/src/oxide/cli/help/index.ts +69 -0
  79. package/src/oxide/cli/index.ts +212 -0
  80. package/src/oxide/cli/init/index.ts +32 -0
  81. package/src/oxide/cli.ts +1 -0
  82. package/src/oxide/postcss-plugin.ts +1 -0
  83. package/src/plugin.js +107 -0
  84. package/src/util/color.js +17 -2
  85. package/src/util/dataTypes.js +29 -4
  86. package/src/util/formatVariantSelector.js +215 -122
  87. package/src/util/{isValidArbitraryValue.js → isSyntacticallyValidPropertyValue.js} +1 -1
  88. package/src/util/negateValue.js +1 -1
  89. package/src/util/pluginUtils.js +22 -19
  90. package/src/util/prefixSelector.js +28 -10
  91. package/src/util/resolveConfig.js +0 -2
  92. package/stubs/defaultConfig.stub.js +149 -165
  93. package/types/config.d.ts +7 -2
  94. package/types/generated/default-theme.d.ts +77 -77
  95. package/lib/cli/shared.js +0 -12
  96. package/scripts/install-integrations.js +0 -27
  97. package/scripts/rebuildFixtures.js +0 -68
  98. package/src/cli/shared.js +0 -5
@@ -4,108 +4,10 @@ module.exports = {
4
4
  presets: [],
5
5
  darkMode: 'media', // or 'class'
6
6
  theme: {
7
- screens: {
8
- sm: '640px',
9
- md: '768px',
10
- lg: '1024px',
11
- xl: '1280px',
12
- '2xl': '1536px',
13
- },
14
- supports: {},
15
- colors: ({ colors }) => ({
16
- inherit: colors.inherit,
17
- current: colors.current,
18
- transparent: colors.transparent,
19
- black: colors.black,
20
- white: colors.white,
21
- slate: colors.slate,
22
- gray: colors.gray,
23
- zinc: colors.zinc,
24
- neutral: colors.neutral,
25
- stone: colors.stone,
26
- red: colors.red,
27
- orange: colors.orange,
28
- amber: colors.amber,
29
- yellow: colors.yellow,
30
- lime: colors.lime,
31
- green: colors.green,
32
- emerald: colors.emerald,
33
- teal: colors.teal,
34
- cyan: colors.cyan,
35
- sky: colors.sky,
36
- blue: colors.blue,
37
- indigo: colors.indigo,
38
- violet: colors.violet,
39
- purple: colors.purple,
40
- fuchsia: colors.fuchsia,
41
- pink: colors.pink,
42
- rose: colors.rose,
43
- }),
44
- columns: {
7
+ accentColor: ({ theme }) => ({
8
+ ...theme('colors'),
45
9
  auto: 'auto',
46
- 1: '1',
47
- 2: '2',
48
- 3: '3',
49
- 4: '4',
50
- 5: '5',
51
- 6: '6',
52
- 7: '7',
53
- 8: '8',
54
- 9: '9',
55
- 10: '10',
56
- 11: '11',
57
- 12: '12',
58
- '3xs': '16rem',
59
- '2xs': '18rem',
60
- xs: '20rem',
61
- sm: '24rem',
62
- md: '28rem',
63
- lg: '32rem',
64
- xl: '36rem',
65
- '2xl': '42rem',
66
- '3xl': '48rem',
67
- '4xl': '56rem',
68
- '5xl': '64rem',
69
- '6xl': '72rem',
70
- '7xl': '80rem',
71
- },
72
- spacing: {
73
- px: '1px',
74
- 0: '0px',
75
- 0.5: '0.125rem',
76
- 1: '0.25rem',
77
- 1.5: '0.375rem',
78
- 2: '0.5rem',
79
- 2.5: '0.625rem',
80
- 3: '0.75rem',
81
- 3.5: '0.875rem',
82
- 4: '1rem',
83
- 5: '1.25rem',
84
- 6: '1.5rem',
85
- 7: '1.75rem',
86
- 8: '2rem',
87
- 9: '2.25rem',
88
- 10: '2.5rem',
89
- 11: '2.75rem',
90
- 12: '3rem',
91
- 14: '3.5rem',
92
- 16: '4rem',
93
- 20: '5rem',
94
- 24: '6rem',
95
- 28: '7rem',
96
- 32: '8rem',
97
- 36: '9rem',
98
- 40: '10rem',
99
- 44: '11rem',
100
- 48: '12rem',
101
- 52: '13rem',
102
- 56: '14rem',
103
- 60: '15rem',
104
- 64: '16rem',
105
- 72: '18rem',
106
- 80: '20rem',
107
- 96: '24rem',
108
- },
10
+ }),
109
11
  animation: {
110
12
  none: 'none',
111
13
  spin: 'spin 1s linear infinite',
@@ -177,19 +79,6 @@ module.exports = {
177
79
  '2xl': '40px',
178
80
  '3xl': '64px',
179
81
  },
180
- brightness: {
181
- 0: '0',
182
- 50: '.5',
183
- 75: '.75',
184
- 90: '.9',
185
- 95: '.95',
186
- 100: '1',
187
- 105: '1.05',
188
- 110: '1.1',
189
- 125: '1.25',
190
- 150: '1.5',
191
- 200: '2',
192
- },
193
82
  borderColor: ({ theme }) => ({
194
83
  ...theme('colors'),
195
84
  DEFAULT: theme('colors.gray.200', 'currentColor'),
@@ -227,24 +116,90 @@ module.exports = {
227
116
  none: 'none',
228
117
  },
229
118
  boxShadowColor: ({ theme }) => theme('colors'),
230
- caretColor: ({ theme }) => theme('colors'),
231
- accentColor: ({ theme }) => ({
232
- ...theme('colors'),
233
- auto: 'auto',
234
- }),
235
- contrast: {
119
+ brightness: {
236
120
  0: '0',
237
121
  50: '.5',
238
122
  75: '.75',
123
+ 90: '.9',
124
+ 95: '.95',
239
125
  100: '1',
126
+ 105: '1.05',
127
+ 110: '1.1',
240
128
  125: '1.25',
241
129
  150: '1.5',
242
130
  200: '2',
243
131
  },
132
+ caretColor: ({ theme }) => theme('colors'),
133
+ colors: ({ colors }) => ({
134
+ inherit: colors.inherit,
135
+ current: colors.current,
136
+ transparent: colors.transparent,
137
+ black: colors.black,
138
+ white: colors.white,
139
+ slate: colors.slate,
140
+ gray: colors.gray,
141
+ zinc: colors.zinc,
142
+ neutral: colors.neutral,
143
+ stone: colors.stone,
144
+ red: colors.red,
145
+ orange: colors.orange,
146
+ amber: colors.amber,
147
+ yellow: colors.yellow,
148
+ lime: colors.lime,
149
+ green: colors.green,
150
+ emerald: colors.emerald,
151
+ teal: colors.teal,
152
+ cyan: colors.cyan,
153
+ sky: colors.sky,
154
+ blue: colors.blue,
155
+ indigo: colors.indigo,
156
+ violet: colors.violet,
157
+ purple: colors.purple,
158
+ fuchsia: colors.fuchsia,
159
+ pink: colors.pink,
160
+ rose: colors.rose,
161
+ }),
162
+ columns: {
163
+ auto: 'auto',
164
+ 1: '1',
165
+ 2: '2',
166
+ 3: '3',
167
+ 4: '4',
168
+ 5: '5',
169
+ 6: '6',
170
+ 7: '7',
171
+ 8: '8',
172
+ 9: '9',
173
+ 10: '10',
174
+ 11: '11',
175
+ 12: '12',
176
+ '3xs': '16rem',
177
+ '2xs': '18rem',
178
+ xs: '20rem',
179
+ sm: '24rem',
180
+ md: '28rem',
181
+ lg: '32rem',
182
+ xl: '36rem',
183
+ '2xl': '42rem',
184
+ '3xl': '48rem',
185
+ '4xl': '56rem',
186
+ '5xl': '64rem',
187
+ '6xl': '72rem',
188
+ '7xl': '80rem',
189
+ },
244
190
  container: {},
245
191
  content: {
246
192
  none: 'none',
247
193
  },
194
+ contrast: {
195
+ 0: '0',
196
+ 50: '.5',
197
+ 75: '.75',
198
+ 100: '1',
199
+ 125: '1.25',
200
+ 150: '1.5',
201
+ 200: '2',
202
+ },
248
203
  cursor: {
249
204
  auto: 'auto',
250
205
  default: 'default',
@@ -299,22 +254,6 @@ module.exports = {
299
254
  none: 'none',
300
255
  ...theme('colors'),
301
256
  }),
302
- grayscale: {
303
- 0: '0',
304
- DEFAULT: '100%',
305
- },
306
- hueRotate: {
307
- 0: '0deg',
308
- 15: '15deg',
309
- 30: '30deg',
310
- 60: '60deg',
311
- 90: '90deg',
312
- 180: '180deg',
313
- },
314
- invert: {
315
- 0: '0',
316
- DEFAULT: '100%',
317
- },
318
257
  flex: {
319
258
  1: '1 1 0%',
320
259
  auto: '1 1 auto',
@@ -417,6 +356,10 @@ module.exports = {
417
356
  },
418
357
  gap: ({ theme }) => theme('spacing'),
419
358
  gradientColorStops: ({ theme }) => theme('colors'),
359
+ grayscale: {
360
+ 0: '0',
361
+ DEFAULT: '100%',
362
+ },
420
363
  gridAutoColumns: {
421
364
  auto: 'auto',
422
365
  min: 'min-content',
@@ -487,7 +430,7 @@ module.exports = {
487
430
  'span-6': 'span 6 / span 6',
488
431
  'span-full': '1 / -1',
489
432
  },
490
- gridRowStart: {
433
+ gridRowEnd: {
491
434
  auto: 'auto',
492
435
  1: '1',
493
436
  2: '2',
@@ -497,7 +440,7 @@ module.exports = {
497
440
  6: '6',
498
441
  7: '7',
499
442
  },
500
- gridRowEnd: {
443
+ gridRowStart: {
501
444
  auto: 'auto',
502
445
  1: '1',
503
446
  2: '2',
@@ -555,6 +498,14 @@ module.exports = {
555
498
  max: 'max-content',
556
499
  fit: 'fit-content',
557
500
  }),
501
+ hueRotate: {
502
+ 0: '0deg',
503
+ 15: '15deg',
504
+ 30: '30deg',
505
+ 60: '60deg',
506
+ 90: '90deg',
507
+ 180: '180deg',
508
+ },
558
509
  inset: ({ theme }) => ({
559
510
  auto: 'auto',
560
511
  ...theme('spacing'),
@@ -566,6 +517,10 @@ module.exports = {
566
517
  '3/4': '75%',
567
518
  full: '100%',
568
519
  }),
520
+ invert: {
521
+ 0: '0',
522
+ DEFAULT: '100%',
523
+ },
569
524
  keyframes: {
570
525
  spin: {
571
526
  to: {
@@ -629,6 +584,7 @@ module.exports = {
629
584
  }),
630
585
  maxHeight: ({ theme }) => ({
631
586
  ...theme('spacing'),
587
+ none: 'none',
632
588
  full: '100%',
633
589
  screen: '100vh',
634
590
  min: 'min-content',
@@ -716,9 +672,6 @@ module.exports = {
716
672
  11: '11',
717
673
  12: '12',
718
674
  },
719
- padding: ({ theme }) => theme('spacing'),
720
- placeholderColor: ({ theme }) => theme('colors'),
721
- placeholderOpacity: ({ theme }) => theme('opacity'),
722
675
  outlineColor: ({ theme }) => theme('colors'),
723
676
  outlineOffset: {
724
677
  0: '0px',
@@ -734,6 +687,9 @@ module.exports = {
734
687
  4: '4px',
735
688
  8: '8px',
736
689
  },
690
+ padding: ({ theme }) => theme('spacing'),
691
+ placeholderColor: ({ theme }) => theme('colors'),
692
+ placeholderOpacity: ({ theme }) => theme('opacity'),
737
693
  ringColor: ({ theme }) => ({
738
694
  DEFAULT: theme('colors.blue.500', '#3b82f6'),
739
695
  ...theme('colors'),
@@ -788,6 +744,13 @@ module.exports = {
788
744
  125: '1.25',
789
745
  150: '1.5',
790
746
  },
747
+ screens: {
748
+ sm: '640px',
749
+ md: '768px',
750
+ lg: '1024px',
751
+ xl: '1280px',
752
+ '2xl': '1536px',
753
+ },
791
754
  scrollMargin: ({ theme }) => ({
792
755
  ...theme('spacing'),
793
756
  }),
@@ -807,6 +770,43 @@ module.exports = {
807
770
  space: ({ theme }) => ({
808
771
  ...theme('spacing'),
809
772
  }),
773
+ spacing: {
774
+ px: '1px',
775
+ 0: '0px',
776
+ 0.5: '0.125rem',
777
+ 1: '0.25rem',
778
+ 1.5: '0.375rem',
779
+ 2: '0.5rem',
780
+ 2.5: '0.625rem',
781
+ 3: '0.75rem',
782
+ 3.5: '0.875rem',
783
+ 4: '1rem',
784
+ 5: '1.25rem',
785
+ 6: '1.5rem',
786
+ 7: '1.75rem',
787
+ 8: '2rem',
788
+ 9: '2.25rem',
789
+ 10: '2.5rem',
790
+ 11: '2.75rem',
791
+ 12: '3rem',
792
+ 14: '3.5rem',
793
+ 16: '4rem',
794
+ 20: '5rem',
795
+ 24: '6rem',
796
+ 28: '7rem',
797
+ 32: '8rem',
798
+ 36: '9rem',
799
+ 40: '10rem',
800
+ 44: '11rem',
801
+ 48: '12rem',
802
+ 52: '13rem',
803
+ 56: '14rem',
804
+ 60: '15rem',
805
+ 64: '16rem',
806
+ 72: '18rem',
807
+ 80: '20rem',
808
+ 96: '24rem',
809
+ },
810
810
  stroke: ({ theme }) => ({
811
811
  none: 'none',
812
812
  ...theme('colors'),
@@ -816,6 +816,8 @@ module.exports = {
816
816
  1: '1',
817
817
  2: '2',
818
818
  },
819
+ supports: {},
820
+ data: {},
819
821
  textColor: ({ theme }) => theme('colors'),
820
822
  textDecorationColor: ({ theme }) => theme('colors'),
821
823
  textDecorationThickness: {
@@ -827,6 +829,10 @@ module.exports = {
827
829
  4: '4px',
828
830
  8: '8px',
829
831
  },
832
+ textIndent: ({ theme }) => ({
833
+ ...theme('spacing'),
834
+ }),
835
+ textOpacity: ({ theme }) => theme('opacity'),
830
836
  textUnderlineOffset: {
831
837
  auto: 'auto',
832
838
  0: '0px',
@@ -835,10 +841,6 @@ module.exports = {
835
841
  4: '4px',
836
842
  8: '8px',
837
843
  },
838
- textIndent: ({ theme }) => ({
839
- ...theme('spacing'),
840
- }),
841
- textOpacity: ({ theme }) => theme('opacity'),
842
844
  transformOrigin: {
843
845
  center: 'center',
844
846
  top: 'top',
@@ -875,8 +877,8 @@ module.exports = {
875
877
  none: 'none',
876
878
  all: 'all',
877
879
  DEFAULT:
878
- 'color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter',
879
- colors: 'color, background-color, border-color, text-decoration-color, fill, stroke',
880
+ 'color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter',
881
+ colors: 'color, background-color, border-color, outline-color, text-decoration-color, fill, stroke',
880
882
  opacity: 'opacity',
881
883
  shadow: 'box-shadow',
882
884
  transform: 'transform',
@@ -949,23 +951,5 @@ module.exports = {
949
951
  50: '50',
950
952
  },
951
953
  },
952
- variantOrder: [
953
- 'first',
954
- 'last',
955
- 'odd',
956
- 'even',
957
- 'visited',
958
- 'checked',
959
- 'empty',
960
- 'read-only',
961
- 'group-hover',
962
- 'group-focus',
963
- 'focus-within',
964
- 'hover',
965
- 'focus',
966
- 'focus-visible',
967
- 'active',
968
- 'disabled',
969
- ],
970
954
  plugins: [],
971
955
  }
package/types/config.d.ts CHANGED
@@ -11,7 +11,7 @@ type KeyValuePair<K extends keyof any = string, V = string> = Record<K, V>
11
11
  interface RecursiveKeyValuePair<K extends keyof any = string, V = string> {
12
12
  [key: string]: V | RecursiveKeyValuePair<K, V>
13
13
  }
14
- type ResolvableTo<T> = T | ((utils: PluginUtils) => T)
14
+ export type ResolvableTo<T> = T | ((utils: PluginUtils) => T)
15
15
  type CSSRuleObject = RecursiveKeyValuePair<string, null | string | string[]>
16
16
 
17
17
  interface PluginUtils {
@@ -53,6 +53,9 @@ type SafelistConfig =
53
53
  variants?: string[]
54
54
  }[]
55
55
 
56
+ // Blocklist related config
57
+ type BlocklistConfig = string[]
58
+
56
59
  // Presets related config
57
60
  type PresetsConfig = Config[]
58
61
 
@@ -85,6 +88,7 @@ interface ThemeConfig {
85
88
  // Responsiveness
86
89
  screens: ResolvableTo<ScreensConfig>
87
90
  supports: ResolvableTo<Record<string, string>>
91
+ data: ResolvableTo<Record<string, string>>
88
92
 
89
93
  // Reusable base configs
90
94
  colors: ResolvableTo<RecursiveKeyValuePair>
@@ -208,7 +212,7 @@ interface ThemeConfig {
208
212
  blur: ResolvableTo<KeyValuePair>
209
213
  brightness: ResolvableTo<KeyValuePair>
210
214
  contrast: ResolvableTo<KeyValuePair>
211
- dropShadow: ResolvableTo<KeyValuePair>
215
+ dropShadow: ResolvableTo<KeyValuePair<string, string | string[]>>
212
216
  grayscale: ResolvableTo<KeyValuePair>
213
217
  hueRotate: ResolvableTo<KeyValuePair>
214
218
  invert: ResolvableTo<KeyValuePair>
@@ -348,6 +352,7 @@ interface OptionalConfig {
348
352
  prefix: Partial<PrefixConfig>
349
353
  separator: Partial<SeparatorConfig>
350
354
  safelist: Partial<SafelistConfig>
355
+ blocklist: Partial<BlocklistConfig>
351
356
  presets: Partial<PresetsConfig>
352
357
  future: Partial<FutureConfig>
353
358
  experimental: Partial<ExperimentalConfig>
@@ -1,74 +1,6 @@
1
1
  import { Config } from '../../types'
2
2
  type CSSDeclarationList = Record<string, string>
3
3
  export type DefaultTheme = Config['theme'] & {
4
- screens: Record<'sm' | 'md' | 'lg' | 'xl' | '2xl', string>
5
- columns: Record<
6
- | '1'
7
- | '2'
8
- | '3'
9
- | '4'
10
- | '5'
11
- | '6'
12
- | '7'
13
- | '8'
14
- | '9'
15
- | '10'
16
- | '11'
17
- | '12'
18
- | 'auto'
19
- | '3xs'
20
- | '2xs'
21
- | 'xs'
22
- | 'sm'
23
- | 'md'
24
- | 'lg'
25
- | 'xl'
26
- | '2xl'
27
- | '3xl'
28
- | '4xl'
29
- | '5xl'
30
- | '6xl'
31
- | '7xl',
32
- string
33
- >
34
- spacing: Record<
35
- | '0'
36
- | '1'
37
- | '2'
38
- | '3'
39
- | '4'
40
- | '5'
41
- | '6'
42
- | '7'
43
- | '8'
44
- | '9'
45
- | '10'
46
- | '11'
47
- | '12'
48
- | '14'
49
- | '16'
50
- | '20'
51
- | '24'
52
- | '28'
53
- | '32'
54
- | '36'
55
- | '40'
56
- | '44'
57
- | '48'
58
- | '52'
59
- | '56'
60
- | '60'
61
- | '64'
62
- | '72'
63
- | '80'
64
- | '96'
65
- | 'px'
66
- | '0.5'
67
- | '1.5'
68
- | '2.5'
69
- | '3.5',
70
- string
71
- >
72
4
  animation: Record<'none' | 'spin' | 'ping' | 'pulse' | 'bounce', string>
73
5
  aria: Record<
74
6
  | 'checked'
@@ -108,18 +40,47 @@ export type DefaultTheme = Config['theme'] & {
108
40
  >
109
41
  backgroundSize: Record<'auto' | 'cover' | 'contain', string>
110
42
  blur: Record<'0' | 'none' | 'sm' | 'DEFAULT' | 'md' | 'lg' | 'xl' | '2xl' | '3xl', string>
111
- brightness: Record<
112
- '0' | '50' | '75' | '90' | '95' | '100' | '105' | '110' | '125' | '150' | '200',
113
- string
114
- >
115
43
  borderRadius: Record<
116
44
  'none' | 'sm' | 'DEFAULT' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'full',
117
45
  string
118
46
  >
119
47
  borderWidth: Record<'0' | '2' | '4' | '8' | 'DEFAULT', string>
120
48
  boxShadow: Record<'sm' | 'DEFAULT' | 'md' | 'lg' | 'xl' | '2xl' | 'inner' | 'none', string>
121
- contrast: Record<'0' | '50' | '75' | '100' | '125' | '150' | '200', string>
49
+ brightness: Record<
50
+ '0' | '50' | '75' | '90' | '95' | '100' | '105' | '110' | '125' | '150' | '200',
51
+ string
52
+ >
53
+ columns: Record<
54
+ | '1'
55
+ | '2'
56
+ | '3'
57
+ | '4'
58
+ | '5'
59
+ | '6'
60
+ | '7'
61
+ | '8'
62
+ | '9'
63
+ | '10'
64
+ | '11'
65
+ | '12'
66
+ | 'auto'
67
+ | '3xs'
68
+ | '2xs'
69
+ | 'xs'
70
+ | 'sm'
71
+ | 'md'
72
+ | 'lg'
73
+ | 'xl'
74
+ | '2xl'
75
+ | '3xl'
76
+ | '4xl'
77
+ | '5xl'
78
+ | '6xl'
79
+ | '7xl',
80
+ string
81
+ >
122
82
  content: Record<'none', string>
83
+ contrast: Record<'0' | '50' | '75' | '100' | '125' | '150' | '200', string>
123
84
  cursor: Record<
124
85
  | 'auto'
125
86
  | 'default'
@@ -160,9 +121,6 @@ export type DefaultTheme = Config['theme'] & {
160
121
  string
161
122
  >
162
123
  dropShadow: Record<'sm' | 'DEFAULT' | 'md' | 'lg' | 'xl' | '2xl' | 'none', string | string[]>
163
- grayscale: Record<'0' | 'DEFAULT', string>
164
- hueRotate: Record<'0' | '15' | '30' | '60' | '90' | '180', string>
165
- invert: Record<'0' | 'DEFAULT', string>
166
124
  flex: Record<'1' | 'auto' | 'initial' | 'none', string>
167
125
  flexGrow: Record<'0' | 'DEFAULT', string>
168
126
  flexShrink: Record<'0' | 'DEFAULT', string>
@@ -195,6 +153,7 @@ export type DefaultTheme = Config['theme'] & {
195
153
  | 'black',
196
154
  string
197
155
  >
156
+ grayscale: Record<'0' | 'DEFAULT', string>
198
157
  gridAutoColumns: Record<'auto' | 'min' | 'max' | 'fr', string>
199
158
  gridAutoRows: Record<'auto' | 'min' | 'max' | 'fr', string>
200
159
  gridColumn: Record<
@@ -226,13 +185,15 @@ export type DefaultTheme = Config['theme'] & {
226
185
  'auto' | 'span-1' | 'span-2' | 'span-3' | 'span-4' | 'span-5' | 'span-6' | 'span-full',
227
186
  string
228
187
  >
229
- gridRowStart: Record<'1' | '2' | '3' | '4' | '5' | '6' | '7' | 'auto', string>
230
188
  gridRowEnd: Record<'1' | '2' | '3' | '4' | '5' | '6' | '7' | 'auto', string>
189
+ gridRowStart: Record<'1' | '2' | '3' | '4' | '5' | '6' | '7' | 'auto', string>
231
190
  gridTemplateColumns: Record<
232
191
  '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | 'none',
233
192
  string
234
193
  >
235
194
  gridTemplateRows: Record<'1' | '2' | '3' | '4' | '5' | '6' | 'none', string>
195
+ hueRotate: Record<'0' | '15' | '30' | '60' | '90' | '180', string>
196
+ invert: Record<'0' | 'DEFAULT', string>
236
197
  keyframes: Record<'spin' | 'ping' | 'pulse' | 'bounce', Record<string, CSSDeclarationList>>
237
198
  letterSpacing: Record<'tighter' | 'tight' | 'normal' | 'wide' | 'wider' | 'widest', string>
238
199
  lineHeight: Record<
@@ -310,8 +271,47 @@ export type DefaultTheme = Config['theme'] & {
310
271
  rotate: Record<'0' | '1' | '2' | '3' | '6' | '12' | '45' | '90' | '180', string>
311
272
  saturate: Record<'0' | '50' | '100' | '150' | '200', string>
312
273
  scale: Record<'0' | '50' | '75' | '90' | '95' | '100' | '105' | '110' | '125' | '150', string>
274
+ screens: Record<'sm' | 'md' | 'lg' | 'xl' | '2xl', string>
313
275
  sepia: Record<'0' | 'DEFAULT', string>
314
276
  skew: Record<'0' | '1' | '2' | '3' | '6' | '12', string>
277
+ spacing: Record<
278
+ | '0'
279
+ | '1'
280
+ | '2'
281
+ | '3'
282
+ | '4'
283
+ | '5'
284
+ | '6'
285
+ | '7'
286
+ | '8'
287
+ | '9'
288
+ | '10'
289
+ | '11'
290
+ | '12'
291
+ | '14'
292
+ | '16'
293
+ | '20'
294
+ | '24'
295
+ | '28'
296
+ | '32'
297
+ | '36'
298
+ | '40'
299
+ | '44'
300
+ | '48'
301
+ | '52'
302
+ | '56'
303
+ | '60'
304
+ | '64'
305
+ | '72'
306
+ | '80'
307
+ | '96'
308
+ | 'px'
309
+ | '0.5'
310
+ | '1.5'
311
+ | '2.5'
312
+ | '3.5',
313
+ string
314
+ >
315
315
  strokeWidth: Record<'0' | '1' | '2', string>
316
316
  textDecorationThickness: Record<'0' | '1' | '2' | '4' | '8' | 'auto' | 'from-font', string>
317
317
  textUnderlineOffset: Record<'0' | '1' | '2' | '4' | '8' | 'auto', string>