tailwindcss 0.0.0-insiders.d33b650 → 0.0.0-insiders.d3f2221

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 (191) hide show
  1. package/README.md +1 -1
  2. package/index.css +5 -0
  3. package/lib/cli/build/index.js +32 -19
  4. package/lib/cli/build/plugin.js +228 -148
  5. package/lib/cli/build/utils.js +31 -21
  6. package/lib/cli/build/watching.js +99 -30
  7. package/lib/cli/help/index.js +17 -15
  8. package/lib/cli/index.js +223 -10
  9. package/lib/cli/init/index.js +31 -14
  10. package/lib/cli.js +1 -227
  11. package/lib/corePluginList.js +8 -1
  12. package/lib/corePlugins.js +2128 -1823
  13. package/lib/css/preflight.css +17 -4
  14. package/lib/featureFlags.js +39 -25
  15. package/lib/index.js +1 -47
  16. package/lib/lib/cacheInvalidation.js +10 -8
  17. package/lib/lib/collapseAdjacentRules.js +10 -8
  18. package/lib/lib/collapseDuplicateDeclarations.js +13 -11
  19. package/lib/lib/content.js +65 -28
  20. package/lib/lib/defaultExtractor.js +24 -32
  21. package/lib/lib/detectNesting.js +18 -10
  22. package/lib/lib/evaluateTailwindFunctions.js +45 -41
  23. package/lib/lib/expandApplyAtRules.js +60 -52
  24. package/lib/lib/expandTailwindAtRules.js +115 -47
  25. package/lib/lib/findAtConfigPath.js +14 -12
  26. package/lib/lib/generateRules.js +206 -146
  27. package/lib/lib/getModuleDependencies.js +85 -37
  28. package/lib/lib/handleImportAtRules.js +50 -0
  29. package/lib/lib/load-config.js +42 -0
  30. package/lib/lib/normalizeTailwindDirectives.js +26 -39
  31. package/lib/lib/offsets.js +136 -47
  32. package/lib/lib/partitionApplyAtRules.js +5 -3
  33. package/lib/lib/regex.js +26 -12
  34. package/lib/lib/remap-bitfield.js +89 -0
  35. package/lib/lib/resolveDefaultsAtRules.js +53 -49
  36. package/lib/lib/setupContextUtils.js +337 -250
  37. package/lib/lib/setupTrackingContext.js +54 -29
  38. package/lib/lib/sharedState.js +36 -17
  39. package/lib/lib/substituteScreenAtRules.js +9 -7
  40. package/lib/plugin.js +164 -0
  41. package/lib/postcss-plugins/nesting/index.js +5 -3
  42. package/lib/postcss-plugins/nesting/plugin.js +19 -17
  43. package/lib/processTailwindFeatures.js +19 -17
  44. package/lib/public/colors.js +269 -245
  45. package/lib/public/create-plugin.js +5 -3
  46. package/lib/public/default-config.js +6 -4
  47. package/lib/public/default-theme.js +6 -4
  48. package/lib/public/load-config.js +12 -0
  49. package/lib/public/resolve-config.js +6 -4
  50. package/lib/util/applyImportantSelector.js +36 -0
  51. package/lib/util/bigSign.js +3 -1
  52. package/lib/util/buildMediaQuery.js +5 -3
  53. package/lib/util/cloneDeep.js +4 -2
  54. package/lib/util/cloneNodes.js +6 -4
  55. package/lib/util/color.js +46 -28
  56. package/lib/util/colorNames.js +752 -0
  57. package/lib/util/configurePlugins.js +3 -1
  58. package/lib/util/createPlugin.js +3 -1
  59. package/lib/util/createUtilityPlugin.js +9 -7
  60. package/lib/util/dataTypes.js +215 -96
  61. package/lib/util/defaults.js +9 -7
  62. package/lib/util/escapeClassName.js +10 -8
  63. package/lib/util/escapeCommas.js +4 -2
  64. package/lib/util/flattenColorPalette.js +5 -3
  65. package/lib/util/formatVariantSelector.js +149 -169
  66. package/lib/util/getAllConfigs.js +12 -9
  67. package/lib/util/hashConfig.js +6 -4
  68. package/lib/util/isKeyframeRule.js +4 -2
  69. package/lib/util/isPlainObject.js +4 -2
  70. package/lib/util/{isValidArbitraryValue.js → isSyntacticallyValidPropertyValue.js} +14 -12
  71. package/lib/util/log.js +31 -10
  72. package/lib/util/nameClass.js +16 -10
  73. package/lib/util/negateValue.js +12 -10
  74. package/lib/util/normalizeConfig.js +123 -77
  75. package/lib/util/normalizeScreens.js +30 -22
  76. package/lib/util/parseAnimationValue.js +41 -39
  77. package/lib/util/parseBoxShadowValue.js +24 -20
  78. package/lib/util/parseDependency.js +7 -5
  79. package/lib/util/parseGlob.js +10 -8
  80. package/lib/util/parseObjectStyles.js +10 -8
  81. package/lib/util/pluginUtils.js +92 -96
  82. package/lib/util/prefixSelector.js +27 -11
  83. package/lib/util/pseudoElements.js +209 -0
  84. package/lib/util/removeAlphaVariables.js +4 -2
  85. package/lib/util/resolveConfig.js +28 -24
  86. package/lib/util/resolveConfigPath.js +28 -12
  87. package/lib/util/responsive.js +7 -5
  88. package/lib/util/splitAtTopLevelOnly.js +12 -4
  89. package/lib/util/tap.js +3 -1
  90. package/lib/util/toColorValue.js +4 -2
  91. package/lib/util/toPath.js +5 -3
  92. package/lib/util/transformThemeValue.js +30 -28
  93. package/lib/util/validateConfig.js +31 -7
  94. package/lib/util/validateFormalSyntax.js +8 -6
  95. package/lib/util/withAlphaVariable.js +11 -7
  96. package/lib/value-parser/LICENSE +22 -0
  97. package/lib/value-parser/README.md +3 -0
  98. package/lib/value-parser/index.d.js +2 -0
  99. package/lib/value-parser/index.js +22 -0
  100. package/lib/value-parser/parse.js +259 -0
  101. package/lib/value-parser/stringify.js +38 -0
  102. package/lib/value-parser/unit.js +86 -0
  103. package/lib/value-parser/walk.js +16 -0
  104. package/loadConfig.d.ts +4 -0
  105. package/loadConfig.js +2 -0
  106. package/package.json +49 -50
  107. package/resolveConfig.d.ts +11 -2
  108. package/scripts/release-notes.js +1 -1
  109. package/src/cli/build/index.js +17 -9
  110. package/src/cli/build/plugin.js +129 -77
  111. package/src/cli/build/watching.js +108 -13
  112. package/src/cli/index.js +217 -3
  113. package/src/cli/init/index.js +37 -8
  114. package/src/cli.js +1 -221
  115. package/src/corePluginList.js +1 -1
  116. package/src/corePlugins.js +259 -46
  117. package/src/css/preflight.css +17 -4
  118. package/src/featureFlags.js +7 -7
  119. package/src/index.js +1 -47
  120. package/src/lib/content.js +44 -10
  121. package/src/lib/defaultExtractor.js +10 -14
  122. package/src/lib/detectNesting.js +9 -1
  123. package/src/lib/evaluateTailwindFunctions.js +4 -1
  124. package/src/lib/expandApplyAtRules.js +10 -3
  125. package/src/lib/expandTailwindAtRules.js +78 -13
  126. package/src/lib/generateRules.js +140 -65
  127. package/src/lib/getModuleDependencies.js +70 -30
  128. package/src/lib/handleImportAtRules.js +34 -0
  129. package/src/lib/load-config.ts +31 -0
  130. package/src/lib/normalizeTailwindDirectives.js +0 -27
  131. package/src/lib/offsets.js +105 -2
  132. package/src/lib/remap-bitfield.js +82 -0
  133. package/src/lib/setupContextUtils.js +145 -80
  134. package/src/lib/setupTrackingContext.js +37 -14
  135. package/src/lib/sharedState.js +11 -4
  136. package/src/plugin.js +133 -0
  137. package/src/processTailwindFeatures.js +3 -2
  138. package/src/public/colors.js +22 -0
  139. package/src/public/default-config.js +1 -1
  140. package/src/public/default-theme.js +2 -2
  141. package/src/public/load-config.js +2 -0
  142. package/src/util/applyImportantSelector.js +27 -0
  143. package/src/util/color.js +19 -4
  144. package/src/util/colorNames.js +150 -0
  145. package/src/util/dataTypes.js +97 -9
  146. package/src/util/formatVariantSelector.js +163 -165
  147. package/src/util/getAllConfigs.js +2 -2
  148. package/src/util/{isValidArbitraryValue.js → isSyntacticallyValidPropertyValue.js} +1 -1
  149. package/src/util/log.js +24 -0
  150. package/src/util/negateValue.js +1 -1
  151. package/src/util/normalizeConfig.js +57 -11
  152. package/src/util/pluginUtils.js +38 -54
  153. package/src/util/prefixSelector.js +29 -10
  154. package/src/util/pseudoElements.js +167 -0
  155. package/src/util/resolveConfig.js +0 -2
  156. package/src/util/resolveConfigPath.js +12 -1
  157. package/src/util/splitAtTopLevelOnly.js +8 -1
  158. package/src/util/validateConfig.js +23 -0
  159. package/src/value-parser/LICENSE +22 -0
  160. package/src/value-parser/README.md +3 -0
  161. package/src/value-parser/index.d.ts +177 -0
  162. package/src/value-parser/index.js +28 -0
  163. package/src/value-parser/parse.js +303 -0
  164. package/src/value-parser/stringify.js +41 -0
  165. package/src/value-parser/unit.js +118 -0
  166. package/src/value-parser/walk.js +18 -0
  167. package/stubs/.gitignore +1 -0
  168. package/stubs/.prettierrc.json +6 -0
  169. package/stubs/{defaultConfig.stub.js → config.full.js} +203 -172
  170. package/stubs/{simpleConfig.stub.js → config.simple.js} +1 -2
  171. package/stubs/{defaultPostCssConfig.stub.js → postcss.config.cjs} +0 -1
  172. package/stubs/postcss.config.js +5 -0
  173. package/stubs/tailwind.config.cjs +2 -0
  174. package/stubs/tailwind.config.js +2 -0
  175. package/stubs/tailwind.config.ts +3 -0
  176. package/types/config.d.ts +20 -13
  177. package/types/generated/colors.d.ts +22 -0
  178. package/types/generated/corePluginList.d.ts +1 -1
  179. package/types/generated/default-theme.d.ts +116 -80
  180. package/CHANGELOG.md +0 -2300
  181. package/lib/cli/build/deps.js +0 -54
  182. package/lib/cli/shared.js +0 -12
  183. package/lib/cli-peer-dependencies.js +0 -28
  184. package/lib/constants.js +0 -44
  185. package/peers/index.js +0 -79459
  186. package/scripts/install-integrations.js +0 -27
  187. package/scripts/rebuildFixtures.js +0 -68
  188. package/src/cli/build/deps.js +0 -56
  189. package/src/cli/shared.js +0 -5
  190. package/src/cli-peer-dependencies.js +0 -15
  191. package/src/constants.js +0 -17
@@ -1,111 +1,12 @@
1
- /** @type {import('tailwindcss').Config} */
2
1
  module.exports = {
3
- content: [],
2
+ content: ['auto'],
4
3
  presets: [],
5
4
  darkMode: 'media', // or 'class'
6
5
  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: {
6
+ accentColor: ({ theme }) => ({
7
+ ...theme('colors'),
45
8
  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
- },
9
+ }),
109
10
  animation: {
110
11
  none: 'none',
111
12
  spin: 'spin 1s linear infinite',
@@ -114,6 +15,7 @@ module.exports = {
114
15
  bounce: 'bounce 1s infinite',
115
16
  },
116
17
  aria: {
18
+ busy: 'busy="true"',
117
19
  checked: 'checked="true"',
118
20
  disabled: 'disabled="true"',
119
21
  expanded: 'expanded="true"',
@@ -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',
@@ -364,13 +303,6 @@ module.exports = {
364
303
  sans: [
365
304
  'ui-sans-serif',
366
305
  'system-ui',
367
- '-apple-system',
368
- 'BlinkMacSystemFont',
369
- '"Segoe UI"',
370
- 'Roboto',
371
- '"Helvetica Neue"',
372
- 'Arial',
373
- '"Noto Sans"',
374
306
  'sans-serif',
375
307
  '"Apple Color Emoji"',
376
308
  '"Segoe UI Emoji"',
@@ -417,6 +349,33 @@ module.exports = {
417
349
  },
418
350
  gap: ({ theme }) => theme('spacing'),
419
351
  gradientColorStops: ({ theme }) => theme('colors'),
352
+ gradientColorStopPositions: {
353
+ '0%': '0%',
354
+ '5%': '5%',
355
+ '10%': '10%',
356
+ '15%': '15%',
357
+ '20%': '20%',
358
+ '25%': '25%',
359
+ '30%': '30%',
360
+ '35%': '35%',
361
+ '40%': '40%',
362
+ '45%': '45%',
363
+ '50%': '50%',
364
+ '55%': '55%',
365
+ '60%': '60%',
366
+ '65%': '65%',
367
+ '70%': '70%',
368
+ '75%': '75%',
369
+ '80%': '80%',
370
+ '85%': '85%',
371
+ '90%': '90%',
372
+ '95%': '95%',
373
+ '100%': '100%',
374
+ },
375
+ grayscale: {
376
+ 0: '0',
377
+ DEFAULT: '100%',
378
+ },
420
379
  gridAutoColumns: {
421
380
  auto: 'auto',
422
381
  min: 'min-content',
@@ -487,7 +446,7 @@ module.exports = {
487
446
  'span-6': 'span 6 / span 6',
488
447
  'span-full': '1 / -1',
489
448
  },
490
- gridRowStart: {
449
+ gridRowEnd: {
491
450
  auto: 'auto',
492
451
  1: '1',
493
452
  2: '2',
@@ -497,7 +456,7 @@ module.exports = {
497
456
  6: '6',
498
457
  7: '7',
499
458
  },
500
- gridRowEnd: {
459
+ gridRowStart: {
501
460
  auto: 'auto',
502
461
  1: '1',
503
462
  2: '2',
@@ -551,10 +510,21 @@ module.exports = {
551
510
  '5/6': '83.333333%',
552
511
  full: '100%',
553
512
  screen: '100vh',
513
+ svh: '100svh',
514
+ lvh: '100lvh',
515
+ dvh: '100dvh',
554
516
  min: 'min-content',
555
517
  max: 'max-content',
556
518
  fit: 'fit-content',
557
519
  }),
520
+ hueRotate: {
521
+ 0: '0deg',
522
+ 15: '15deg',
523
+ 30: '30deg',
524
+ 60: '60deg',
525
+ 90: '90deg',
526
+ 180: '180deg',
527
+ },
558
528
  inset: ({ theme }) => ({
559
529
  auto: 'auto',
560
530
  ...theme('spacing'),
@@ -566,6 +536,10 @@ module.exports = {
566
536
  '3/4': '75%',
567
537
  full: '100%',
568
538
  }),
539
+ invert: {
540
+ 0: '0',
541
+ DEFAULT: '100%',
542
+ },
569
543
  keyframes: {
570
544
  spin: {
571
545
  to: {
@@ -623,14 +597,29 @@ module.exports = {
623
597
  disc: 'disc',
624
598
  decimal: 'decimal',
625
599
  },
600
+ listStyleImage: {
601
+ none: 'none',
602
+ },
626
603
  margin: ({ theme }) => ({
627
604
  auto: 'auto',
628
605
  ...theme('spacing'),
629
606
  }),
607
+ lineClamp: {
608
+ 1: '1',
609
+ 2: '2',
610
+ 3: '3',
611
+ 4: '4',
612
+ 5: '5',
613
+ 6: '6',
614
+ },
630
615
  maxHeight: ({ theme }) => ({
631
616
  ...theme('spacing'),
617
+ none: 'none',
632
618
  full: '100%',
633
619
  screen: '100vh',
620
+ svh: '100svh',
621
+ lvh: '100lvh',
622
+ dvh: '100dvh',
634
623
  min: 'min-content',
635
624
  max: 'max-content',
636
625
  fit: 'fit-content',
@@ -660,6 +649,9 @@ module.exports = {
660
649
  0: '0px',
661
650
  full: '100%',
662
651
  screen: '100vh',
652
+ svh: '100svh',
653
+ lvh: '100lvh',
654
+ dvh: '100dvh',
663
655
  min: 'min-content',
664
656
  max: 'max-content',
665
657
  fit: 'fit-content',
@@ -686,15 +678,21 @@ module.exports = {
686
678
  0: '0',
687
679
  5: '0.05',
688
680
  10: '0.1',
681
+ 15: '0.15',
689
682
  20: '0.2',
690
683
  25: '0.25',
691
684
  30: '0.3',
685
+ 35: '0.35',
692
686
  40: '0.4',
687
+ 45: '0.45',
693
688
  50: '0.5',
689
+ 55: '0.55',
694
690
  60: '0.6',
691
+ 65: '0.65',
695
692
  70: '0.7',
696
693
  75: '0.75',
697
694
  80: '0.8',
695
+ 85: '0.85',
698
696
  90: '0.9',
699
697
  95: '0.95',
700
698
  100: '1',
@@ -716,9 +714,6 @@ module.exports = {
716
714
  11: '11',
717
715
  12: '12',
718
716
  },
719
- padding: ({ theme }) => theme('spacing'),
720
- placeholderColor: ({ theme }) => theme('colors'),
721
- placeholderOpacity: ({ theme }) => theme('opacity'),
722
717
  outlineColor: ({ theme }) => theme('colors'),
723
718
  outlineOffset: {
724
719
  0: '0px',
@@ -734,6 +729,9 @@ module.exports = {
734
729
  4: '4px',
735
730
  8: '8px',
736
731
  },
732
+ padding: ({ theme }) => theme('spacing'),
733
+ placeholderColor: ({ theme }) => theme('colors'),
734
+ placeholderOpacity: ({ theme }) => theme('opacity'),
737
735
  ringColor: ({ theme }) => ({
738
736
  DEFAULT: theme('colors.blue.500', '#3b82f6'),
739
737
  ...theme('colors'),
@@ -788,6 +786,13 @@ module.exports = {
788
786
  125: '1.25',
789
787
  150: '1.5',
790
788
  },
789
+ screens: {
790
+ sm: '640px',
791
+ md: '768px',
792
+ lg: '1024px',
793
+ xl: '1280px',
794
+ '2xl': '1536px',
795
+ },
791
796
  scrollMargin: ({ theme }) => ({
792
797
  ...theme('spacing'),
793
798
  }),
@@ -807,6 +812,43 @@ module.exports = {
807
812
  space: ({ theme }) => ({
808
813
  ...theme('spacing'),
809
814
  }),
815
+ spacing: {
816
+ px: '1px',
817
+ 0: '0px',
818
+ 0.5: '0.125rem',
819
+ 1: '0.25rem',
820
+ 1.5: '0.375rem',
821
+ 2: '0.5rem',
822
+ 2.5: '0.625rem',
823
+ 3: '0.75rem',
824
+ 3.5: '0.875rem',
825
+ 4: '1rem',
826
+ 5: '1.25rem',
827
+ 6: '1.5rem',
828
+ 7: '1.75rem',
829
+ 8: '2rem',
830
+ 9: '2.25rem',
831
+ 10: '2.5rem',
832
+ 11: '2.75rem',
833
+ 12: '3rem',
834
+ 14: '3.5rem',
835
+ 16: '4rem',
836
+ 20: '5rem',
837
+ 24: '6rem',
838
+ 28: '7rem',
839
+ 32: '8rem',
840
+ 36: '9rem',
841
+ 40: '10rem',
842
+ 44: '11rem',
843
+ 48: '12rem',
844
+ 52: '13rem',
845
+ 56: '14rem',
846
+ 60: '15rem',
847
+ 64: '16rem',
848
+ 72: '18rem',
849
+ 80: '20rem',
850
+ 96: '24rem',
851
+ },
810
852
  stroke: ({ theme }) => ({
811
853
  none: 'none',
812
854
  ...theme('colors'),
@@ -816,6 +858,8 @@ module.exports = {
816
858
  1: '1',
817
859
  2: '2',
818
860
  },
861
+ supports: {},
862
+ data: {},
819
863
  textColor: ({ theme }) => theme('colors'),
820
864
  textDecorationColor: ({ theme }) => theme('colors'),
821
865
  textDecorationThickness: {
@@ -827,6 +871,10 @@ module.exports = {
827
871
  4: '4px',
828
872
  8: '8px',
829
873
  },
874
+ textIndent: ({ theme }) => ({
875
+ ...theme('spacing'),
876
+ }),
877
+ textOpacity: ({ theme }) => theme('opacity'),
830
878
  textUnderlineOffset: {
831
879
  auto: 'auto',
832
880
  0: '0px',
@@ -835,10 +883,6 @@ module.exports = {
835
883
  4: '4px',
836
884
  8: '8px',
837
885
  },
838
- textIndent: ({ theme }) => ({
839
- ...theme('spacing'),
840
- }),
841
- textOpacity: ({ theme }) => theme('opacity'),
842
886
  transformOrigin: {
843
887
  center: 'center',
844
888
  top: 'top',
@@ -851,6 +895,7 @@ module.exports = {
851
895
  'top-left': 'top left',
852
896
  },
853
897
  transitionDelay: {
898
+ 0: '0s',
854
899
  75: '75ms',
855
900
  100: '100ms',
856
901
  150: '150ms',
@@ -862,6 +907,7 @@ module.exports = {
862
907
  },
863
908
  transitionDuration: {
864
909
  DEFAULT: '150ms',
910
+ 0: '0s',
865
911
  75: '75ms',
866
912
  100: '100ms',
867
913
  150: '150ms',
@@ -929,6 +975,9 @@ module.exports = {
929
975
  '11/12': '91.666667%',
930
976
  full: '100%',
931
977
  screen: '100vw',
978
+ svw: '100svw',
979
+ lvw: '100lvw',
980
+ dvw: '100dvw',
932
981
  min: 'min-content',
933
982
  max: 'max-content',
934
983
  fit: 'fit-content',
@@ -949,23 +998,5 @@ module.exports = {
949
998
  50: '50',
950
999
  },
951
1000
  },
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
1001
  plugins: [],
971
1002
  }
@@ -1,6 +1,5 @@
1
- /** @type {import('tailwindcss').Config} */
2
1
  module.exports = {
3
- content: [],
2
+ content: ['auto'],
4
3
  theme: {
5
4
  extend: {},
6
5
  },
@@ -1,6 +1,5 @@
1
1
  module.exports = {
2
2
  plugins: {
3
3
  tailwindcss: {},
4
- autoprefixer: {},
5
4
  },
6
5
  }
@@ -0,0 +1,5 @@
1
+ export default {
2
+ plugins: {
3
+ tailwindcss: {},
4
+ },
5
+ }
@@ -0,0 +1,2 @@
1
+ /** @type {import('tailwindcss').Config} */
2
+ module.exports = __CONFIG__
@@ -0,0 +1,2 @@
1
+ /** @type {import('tailwindcss').Config} */
2
+ export default __CONFIG__
@@ -0,0 +1,3 @@
1
+ import type { Config } from 'tailwindcss'
2
+
3
+ export default __CONFIG__ satisfies Config
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 {
@@ -46,15 +46,13 @@ type PrefixConfig = string
46
46
  type SeparatorConfig = string
47
47
 
48
48
  // Safelist related config
49
- type SafelistConfig =
50
- | string[]
51
- | {
52
- pattern: RegExp
53
- variants?: string[]
54
- }[]
49
+ type SafelistConfig = string | { pattern: RegExp; variants?: string[] }
50
+
51
+ // Blocklist related config
52
+ type BlocklistConfig = string
55
53
 
56
54
  // Presets related config
57
- type PresetsConfig = Config[]
55
+ type PresetsConfig = Partial<Config>
58
56
 
59
57
  // Future related config
60
58
  type FutureConfigValues =
@@ -62,10 +60,11 @@ type FutureConfigValues =
62
60
  | 'respectDefaultRingColorOpacity'
63
61
  | 'disableColorOpacityUtilitiesByDefault'
64
62
  | 'relativeContentPathsByDefault'
63
+ | 'logicalSiblingUtilities'
65
64
  type FutureConfig = Expand<'all' | Partial<Record<FutureConfigValues, boolean>>> | []
66
65
 
67
66
  // Experimental related config
68
- type ExperimentalConfigValues = 'optimizeUniversalDefaults' | 'matchVariant'
67
+ type ExperimentalConfigValues = 'optimizeUniversalDefaults' | 'oxideParser'
69
68
  type ExperimentalConfig = Expand<'all' | Partial<Record<ExperimentalConfigValues, boolean>>> | []
70
69
 
71
70
  // DarkMode related config
@@ -85,6 +84,7 @@ interface ThemeConfig {
85
84
  // Responsiveness
86
85
  screens: ResolvableTo<ScreensConfig>
87
86
  supports: ResolvableTo<Record<string, string>>
87
+ data: ResolvableTo<Record<string, string>>
88
88
 
89
89
  // Reusable base configs
90
90
  colors: ResolvableTo<RecursiveKeyValuePair>
@@ -164,7 +164,13 @@ interface ThemeConfig {
164
164
  string,
165
165
  | string
166
166
  | string[]
167
- | [fontFamily: string | string[], configuration: Partial<{ fontFeatureSettings: string }>]
167
+ | [
168
+ fontFamily: string | string[],
169
+ configuration: Partial<{
170
+ fontFeatureSettings: string
171
+ fontVariationSettings: string
172
+ }>
173
+ ]
168
174
  >
169
175
  >
170
176
  fontSize: ResolvableTo<
@@ -208,7 +214,7 @@ interface ThemeConfig {
208
214
  blur: ResolvableTo<KeyValuePair>
209
215
  brightness: ResolvableTo<KeyValuePair>
210
216
  contrast: ResolvableTo<KeyValuePair>
211
- dropShadow: ResolvableTo<KeyValuePair>
217
+ dropShadow: ResolvableTo<KeyValuePair<string, string | string[]>>
212
218
  grayscale: ResolvableTo<KeyValuePair>
213
219
  hueRotate: ResolvableTo<KeyValuePair>
214
220
  invert: ResolvableTo<KeyValuePair>
@@ -347,8 +353,9 @@ interface OptionalConfig {
347
353
  important: Partial<ImportantConfig>
348
354
  prefix: Partial<PrefixConfig>
349
355
  separator: Partial<SeparatorConfig>
350
- safelist: Partial<SafelistConfig>
351
- presets: Partial<PresetsConfig>
356
+ safelist: Array<SafelistConfig>
357
+ blocklist: Array<BlocklistConfig>
358
+ presets: Array<PresetsConfig>
352
359
  future: Partial<FutureConfig>
353
360
  experimental: Partial<ExperimentalConfig>
354
361
  darkMode: Partial<DarkModeConfig>