tailwindcss 0.0.0-insiders.fda68f7 → 0.0.0-oxide.6bf5e56

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 (195) hide show
  1. package/CHANGELOG.md +603 -2
  2. package/LICENSE +1 -2
  3. package/README.md +14 -6
  4. package/colors.d.ts +3 -0
  5. package/colors.js +2 -304
  6. package/defaultConfig.d.ts +3 -0
  7. package/defaultConfig.js +2 -4
  8. package/defaultTheme.d.ts +4 -0
  9. package/defaultTheme.js +2 -4
  10. package/lib/cli/build/deps.js +54 -0
  11. package/lib/cli/build/index.js +48 -0
  12. package/lib/cli/build/plugin.js +367 -0
  13. package/lib/cli/build/utils.js +78 -0
  14. package/lib/cli/build/watching.js +178 -0
  15. package/lib/cli/help/index.js +71 -0
  16. package/lib/cli/index.js +18 -0
  17. package/lib/cli/init/index.js +46 -0
  18. package/lib/cli/shared.js +13 -0
  19. package/lib/cli-peer-dependencies.js +22 -14
  20. package/lib/cli.js +217 -743
  21. package/lib/constants.js +41 -34
  22. package/lib/corePluginList.js +178 -5
  23. package/lib/corePlugins.js +3879 -2941
  24. package/lib/css/preflight.css +22 -9
  25. package/lib/featureFlags.js +61 -50
  26. package/lib/index.js +45 -28
  27. package/lib/lib/cacheInvalidation.js +90 -0
  28. package/lib/lib/collapseAdjacentRules.js +52 -36
  29. package/lib/lib/collapseDuplicateDeclarations.js +83 -0
  30. package/lib/lib/content.js +176 -0
  31. package/lib/lib/defaultExtractor.js +236 -0
  32. package/lib/lib/detectNesting.js +37 -0
  33. package/lib/lib/evaluateTailwindFunctions.js +203 -161
  34. package/lib/lib/expandApplyAtRules.js +502 -221
  35. package/lib/lib/expandTailwindAtRules.js +258 -243
  36. package/lib/lib/findAtConfigPath.js +44 -0
  37. package/lib/lib/generateRules.js +775 -320
  38. package/lib/lib/getModuleDependencies.js +44 -46
  39. package/lib/lib/normalizeTailwindDirectives.js +79 -60
  40. package/lib/lib/offsets.js +217 -0
  41. package/lib/lib/partitionApplyAtRules.js +56 -0
  42. package/lib/lib/regex.js +60 -0
  43. package/lib/lib/resolveDefaultsAtRules.js +150 -94
  44. package/lib/lib/setupContextUtils.js +1146 -599
  45. package/lib/lib/setupTrackingContext.js +129 -177
  46. package/lib/lib/sharedState.js +53 -21
  47. package/lib/lib/substituteScreenAtRules.js +26 -28
  48. package/{nesting → lib/postcss-plugins/nesting}/README.md +2 -2
  49. package/lib/postcss-plugins/nesting/index.js +19 -0
  50. package/lib/postcss-plugins/nesting/plugin.js +87 -0
  51. package/lib/processTailwindFeatures.js +58 -53
  52. package/lib/public/colors.js +331 -0
  53. package/lib/public/create-plugin.js +15 -0
  54. package/lib/public/default-config.js +16 -0
  55. package/lib/public/default-theme.js +16 -0
  56. package/lib/public/resolve-config.js +22 -0
  57. package/lib/util/bigSign.js +7 -6
  58. package/lib/util/buildMediaQuery.js +21 -32
  59. package/lib/util/cloneDeep.js +16 -14
  60. package/lib/util/cloneNodes.js +29 -15
  61. package/lib/util/color.js +90 -66
  62. package/lib/util/configurePlugins.js +17 -15
  63. package/lib/util/createPlugin.js +23 -26
  64. package/lib/util/createUtilityPlugin.js +46 -46
  65. package/lib/util/dataTypes.js +242 -0
  66. package/lib/util/defaults.js +20 -15
  67. package/lib/util/escapeClassName.js +18 -17
  68. package/lib/util/escapeCommas.js +7 -6
  69. package/lib/util/flattenColorPalette.js +13 -12
  70. package/lib/util/formatVariantSelector.js +285 -0
  71. package/lib/util/getAllConfigs.js +44 -18
  72. package/lib/util/hashConfig.js +15 -12
  73. package/lib/util/isKeyframeRule.js +7 -6
  74. package/lib/util/isPlainObject.js +11 -11
  75. package/lib/util/isSyntacticallyValidPropertyValue.js +72 -0
  76. package/lib/util/log.js +52 -33
  77. package/lib/util/nameClass.js +37 -26
  78. package/lib/util/negateValue.js +31 -17
  79. package/lib/util/normalizeConfig.js +281 -0
  80. package/lib/util/normalizeScreens.js +170 -0
  81. package/lib/util/parseAnimationValue.js +85 -54
  82. package/lib/util/parseBoxShadowValue.js +84 -0
  83. package/lib/util/parseDependency.js +41 -70
  84. package/lib/util/parseGlob.js +34 -0
  85. package/lib/util/parseObjectStyles.js +30 -24
  86. package/lib/util/pluginUtils.js +252 -287
  87. package/lib/util/prefixSelector.js +20 -20
  88. package/lib/util/removeAlphaVariables.js +29 -0
  89. package/lib/util/resolveConfig.js +221 -256
  90. package/lib/util/resolveConfigPath.js +43 -48
  91. package/lib/util/responsive.js +18 -14
  92. package/lib/util/splitAtTopLevelOnly.js +43 -0
  93. package/lib/util/tap.js +8 -7
  94. package/lib/util/toColorValue.js +7 -6
  95. package/lib/util/toPath.js +27 -8
  96. package/lib/util/transformThemeValue.js +67 -28
  97. package/lib/util/validateConfig.js +24 -0
  98. package/lib/util/validateFormalSyntax.js +24 -0
  99. package/lib/util/withAlphaVariable.js +67 -57
  100. package/nesting/index.js +2 -12
  101. package/package.json +60 -65
  102. package/peers/index.js +76445 -84221
  103. package/plugin.d.ts +11 -0
  104. package/plugin.js +1 -2
  105. package/resolveConfig.d.ts +12 -0
  106. package/resolveConfig.js +2 -7
  107. package/scripts/create-plugin-list.js +2 -2
  108. package/scripts/generate-types.js +105 -0
  109. package/scripts/release-channel.js +18 -0
  110. package/scripts/release-notes.js +21 -0
  111. package/scripts/type-utils.js +27 -0
  112. package/src/cli/build/deps.js +56 -0
  113. package/src/cli/build/index.js +49 -0
  114. package/src/cli/build/plugin.js +439 -0
  115. package/src/cli/build/utils.js +76 -0
  116. package/src/cli/build/watching.js +227 -0
  117. package/src/cli/help/index.js +70 -0
  118. package/src/cli/index.js +3 -0
  119. package/src/cli/init/index.js +50 -0
  120. package/src/cli/shared.js +6 -0
  121. package/src/cli-peer-dependencies.js +7 -1
  122. package/src/cli.js +50 -575
  123. package/src/corePluginList.js +1 -1
  124. package/src/corePlugins.js +2405 -1948
  125. package/src/css/preflight.css +22 -9
  126. package/src/featureFlags.js +26 -10
  127. package/src/index.js +19 -6
  128. package/src/lib/cacheInvalidation.js +52 -0
  129. package/src/lib/collapseAdjacentRules.js +21 -2
  130. package/src/lib/collapseDuplicateDeclarations.js +93 -0
  131. package/src/lib/content.js +212 -0
  132. package/src/lib/defaultExtractor.js +211 -0
  133. package/src/lib/detectNesting.js +39 -0
  134. package/src/lib/evaluateTailwindFunctions.js +84 -10
  135. package/src/lib/expandApplyAtRules.js +508 -153
  136. package/src/lib/expandTailwindAtRules.js +130 -104
  137. package/src/lib/findAtConfigPath.js +48 -0
  138. package/src/lib/generateRules.js +596 -70
  139. package/src/lib/normalizeTailwindDirectives.js +10 -3
  140. package/src/lib/offsets.js +270 -0
  141. package/src/lib/partitionApplyAtRules.js +52 -0
  142. package/src/lib/regex.js +74 -0
  143. package/src/lib/resolveDefaultsAtRules.js +105 -47
  144. package/src/lib/setupContextUtils.js +828 -196
  145. package/src/lib/setupTrackingContext.js +19 -54
  146. package/src/lib/sharedState.js +45 -7
  147. package/src/lib/substituteScreenAtRules.js +6 -3
  148. package/src/postcss-plugins/nesting/README.md +42 -0
  149. package/src/postcss-plugins/nesting/index.js +13 -0
  150. package/src/postcss-plugins/nesting/plugin.js +80 -0
  151. package/src/processTailwindFeatures.js +19 -2
  152. package/src/public/colors.js +300 -0
  153. package/src/public/create-plugin.js +2 -0
  154. package/src/public/default-config.js +4 -0
  155. package/src/public/default-theme.js +4 -0
  156. package/src/public/resolve-config.js +7 -0
  157. package/src/util/buildMediaQuery.js +14 -16
  158. package/src/util/cloneNodes.js +19 -2
  159. package/src/util/color.js +31 -14
  160. package/src/util/createUtilityPlugin.js +2 -11
  161. package/src/util/dataTypes.js +256 -0
  162. package/src/util/defaults.js +6 -0
  163. package/src/util/formatVariantSelector.js +319 -0
  164. package/src/util/getAllConfigs.js +19 -0
  165. package/src/util/isSyntacticallyValidPropertyValue.js +61 -0
  166. package/src/util/log.js +23 -22
  167. package/src/util/nameClass.js +14 -6
  168. package/src/util/negateValue.js +15 -5
  169. package/src/util/normalizeConfig.js +300 -0
  170. package/src/util/normalizeScreens.js +140 -0
  171. package/src/util/parseAnimationValue.js +7 -1
  172. package/src/util/parseBoxShadowValue.js +72 -0
  173. package/src/util/parseDependency.js +37 -38
  174. package/src/util/parseGlob.js +24 -0
  175. package/src/util/pluginUtils.js +216 -197
  176. package/src/util/prefixSelector.js +7 -8
  177. package/src/util/removeAlphaVariables.js +24 -0
  178. package/src/util/resolveConfig.js +86 -91
  179. package/src/util/splitAtTopLevelOnly.js +45 -0
  180. package/src/util/toPath.js +23 -1
  181. package/src/util/transformThemeValue.js +33 -8
  182. package/src/util/validateConfig.js +13 -0
  183. package/src/util/validateFormalSyntax.js +34 -0
  184. package/src/util/withAlphaVariable.js +14 -9
  185. package/stubs/defaultConfig.stub.js +186 -117
  186. package/stubs/simpleConfig.stub.js +1 -1
  187. package/types/config.d.ts +362 -0
  188. package/types/generated/.gitkeep +0 -0
  189. package/types/generated/colors.d.ts +276 -0
  190. package/types/generated/corePluginList.d.ts +1 -0
  191. package/types/generated/default-theme.d.ts +342 -0
  192. package/types/index.d.ts +7 -0
  193. package/lib/lib/setupWatchingContext.js +0 -331
  194. package/nesting/plugin.js +0 -41
  195. package/src/lib/setupWatchingContext.js +0 -306
@@ -1,3 +1,4 @@
1
+ /** @type {import('tailwindcss').Config} */
1
2
  module.exports = {
2
3
  content: [],
3
4
  presets: [],
@@ -10,9 +11,11 @@ module.exports = {
10
11
  xl: '1280px',
11
12
  '2xl': '1536px',
12
13
  },
14
+ supports: {},
13
15
  colors: ({ colors }) => ({
14
- transparent: colors.transparent,
16
+ inherit: colors.inherit,
15
17
  current: colors.current,
18
+ transparent: colors.transparent,
16
19
  black: colors.black,
17
20
  white: colors.white,
18
21
  slate: colors.slate,
@@ -110,21 +113,31 @@ module.exports = {
110
113
  pulse: 'pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite',
111
114
  bounce: 'bounce 1s infinite',
112
115
  },
116
+ aria: {
117
+ checked: 'checked="true"',
118
+ disabled: 'disabled="true"',
119
+ expanded: 'expanded="true"',
120
+ hidden: 'hidden="true"',
121
+ pressed: 'pressed="true"',
122
+ readonly: 'readonly="true"',
123
+ required: 'required="true"',
124
+ selected: 'selected="true"',
125
+ },
113
126
  aspectRatio: {
114
- 'auto': 'auto',
115
- 'square': '1 / 1',
116
- 'video': '16 / 9',
117
- },
118
- backdropBlur: (theme) => theme('blur'),
119
- backdropBrightness: (theme) => theme('brightness'),
120
- backdropContrast: (theme) => theme('contrast'),
121
- backdropGrayscale: (theme) => theme('grayscale'),
122
- backdropHueRotate: (theme) => theme('hueRotate'),
123
- backdropInvert: (theme) => theme('invert'),
124
- backdropOpacity: (theme) => theme('opacity'),
125
- backdropSaturate: (theme) => theme('saturate'),
126
- backdropSepia: (theme) => theme('sepia'),
127
- backgroundColor: (theme) => theme('colors'),
127
+ auto: 'auto',
128
+ square: '1 / 1',
129
+ video: '16 / 9',
130
+ },
131
+ backdropBlur: ({ theme }) => theme('blur'),
132
+ backdropBrightness: ({ theme }) => theme('brightness'),
133
+ backdropContrast: ({ theme }) => theme('contrast'),
134
+ backdropGrayscale: ({ theme }) => theme('grayscale'),
135
+ backdropHueRotate: ({ theme }) => theme('hueRotate'),
136
+ backdropInvert: ({ theme }) => theme('invert'),
137
+ backdropOpacity: ({ theme }) => theme('opacity'),
138
+ backdropSaturate: ({ theme }) => theme('saturate'),
139
+ backdropSepia: ({ theme }) => theme('sepia'),
140
+ backgroundColor: ({ theme }) => theme('colors'),
128
141
  backgroundImage: {
129
142
  none: 'none',
130
143
  'gradient-to-t': 'linear-gradient(to top, var(--tw-gradient-stops))',
@@ -136,7 +149,7 @@ module.exports = {
136
149
  'gradient-to-l': 'linear-gradient(to left, var(--tw-gradient-stops))',
137
150
  'gradient-to-tl': 'linear-gradient(to top left, var(--tw-gradient-stops))',
138
151
  },
139
- backgroundOpacity: (theme) => theme('opacity'),
152
+ backgroundOpacity: ({ theme }) => theme('opacity'),
140
153
  backgroundPosition: {
141
154
  bottom: 'bottom',
142
155
  center: 'center',
@@ -177,11 +190,11 @@ module.exports = {
177
190
  150: '1.5',
178
191
  200: '2',
179
192
  },
180
- borderColor: (theme) => ({
193
+ borderColor: ({ theme }) => ({
181
194
  ...theme('colors'),
182
195
  DEFAULT: theme('colors.gray.200', 'currentColor'),
183
196
  }),
184
- borderOpacity: (theme) => theme('opacity'),
197
+ borderOpacity: ({ theme }) => theme('opacity'),
185
198
  borderRadius: {
186
199
  none: '0px',
187
200
  sm: '0.125rem',
@@ -193,6 +206,9 @@ module.exports = {
193
206
  '3xl': '1.5rem',
194
207
  full: '9999px',
195
208
  },
209
+ borderSpacing: ({ theme }) => ({
210
+ ...theme('spacing'),
211
+ }),
196
212
  borderWidth: {
197
213
  DEFAULT: '1px',
198
214
  0: '0px',
@@ -202,16 +218,17 @@ module.exports = {
202
218
  },
203
219
  boxShadow: {
204
220
  sm: '0 1px 2px 0 rgb(0 0 0 / 0.05)',
205
- DEFAULT: '0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px 0 rgb(0 0 0 / 0.06)',
206
- md: '0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06)',
207
- lg: '0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05)',
208
- xl: '0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04)',
221
+ DEFAULT: '0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)',
222
+ md: '0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)',
223
+ lg: '0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)',
224
+ xl: '0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)',
209
225
  '2xl': '0 25px 50px -12px rgb(0 0 0 / 0.25)',
210
- inner: 'inset 0 2px 4px 0 rgb(0 0 0 / 0.06)',
226
+ inner: 'inset 0 2px 4px 0 rgb(0 0 0 / 0.05)',
211
227
  none: 'none',
212
228
  },
213
- caretColor: (theme) => theme('colors'),
214
- accentColor: (theme) => ({
229
+ boxShadowColor: ({ theme }) => theme('colors'),
230
+ caretColor: ({ theme }) => theme('colors'),
231
+ accentColor: ({ theme }) => ({
215
232
  ...theme('colors'),
216
233
  auto: 'auto',
217
234
  }),
@@ -237,10 +254,38 @@ module.exports = {
237
254
  move: 'move',
238
255
  help: 'help',
239
256
  'not-allowed': 'not-allowed',
240
- },
241
- divideColor: (theme) => theme('borderColor'),
242
- divideOpacity: (theme) => theme('borderOpacity'),
243
- divideWidth: (theme) => theme('borderWidth'),
257
+ none: 'none',
258
+ 'context-menu': 'context-menu',
259
+ progress: 'progress',
260
+ cell: 'cell',
261
+ crosshair: 'crosshair',
262
+ 'vertical-text': 'vertical-text',
263
+ alias: 'alias',
264
+ copy: 'copy',
265
+ 'no-drop': 'no-drop',
266
+ grab: 'grab',
267
+ grabbing: 'grabbing',
268
+ 'all-scroll': 'all-scroll',
269
+ 'col-resize': 'col-resize',
270
+ 'row-resize': 'row-resize',
271
+ 'n-resize': 'n-resize',
272
+ 'e-resize': 'e-resize',
273
+ 's-resize': 's-resize',
274
+ 'w-resize': 'w-resize',
275
+ 'ne-resize': 'ne-resize',
276
+ 'nw-resize': 'nw-resize',
277
+ 'se-resize': 'se-resize',
278
+ 'sw-resize': 'sw-resize',
279
+ 'ew-resize': 'ew-resize',
280
+ 'ns-resize': 'ns-resize',
281
+ 'nesw-resize': 'nesw-resize',
282
+ 'nwse-resize': 'nwse-resize',
283
+ 'zoom-in': 'zoom-in',
284
+ 'zoom-out': 'zoom-out',
285
+ },
286
+ divideColor: ({ theme }) => theme('borderColor'),
287
+ divideOpacity: ({ theme }) => theme('borderOpacity'),
288
+ divideWidth: ({ theme }) => theme('borderWidth'),
244
289
  dropShadow: {
245
290
  sm: '0 1px 1px rgb(0 0 0 / 0.05)',
246
291
  DEFAULT: ['0 1px 2px rgb(0 0 0 / 0.1)', '0 1px 1px rgb(0 0 0 / 0.06)'],
@@ -250,17 +295,15 @@ module.exports = {
250
295
  '2xl': '0 25px 25px rgb(0 0 0 / 0.15)',
251
296
  none: '0 0 #0000',
252
297
  },
253
- fill: { current: 'currentColor' },
298
+ fill: ({ theme }) => ({
299
+ none: 'none',
300
+ ...theme('colors'),
301
+ }),
254
302
  grayscale: {
255
303
  0: '0',
256
304
  DEFAULT: '100%',
257
305
  },
258
306
  hueRotate: {
259
- '-180': '-180deg',
260
- '-90': '-90deg',
261
- '-60': '-60deg',
262
- '-30': '-30deg',
263
- '-15': '-15deg',
264
307
  0: '0deg',
265
308
  15: '15deg',
266
309
  30: '30deg',
@@ -278,6 +321,37 @@ module.exports = {
278
321
  initial: '0 1 auto',
279
322
  none: 'none',
280
323
  },
324
+ flexBasis: ({ theme }) => ({
325
+ auto: 'auto',
326
+ ...theme('spacing'),
327
+ '1/2': '50%',
328
+ '1/3': '33.333333%',
329
+ '2/3': '66.666667%',
330
+ '1/4': '25%',
331
+ '2/4': '50%',
332
+ '3/4': '75%',
333
+ '1/5': '20%',
334
+ '2/5': '40%',
335
+ '3/5': '60%',
336
+ '4/5': '80%',
337
+ '1/6': '16.666667%',
338
+ '2/6': '33.333333%',
339
+ '3/6': '50%',
340
+ '4/6': '66.666667%',
341
+ '5/6': '83.333333%',
342
+ '1/12': '8.333333%',
343
+ '2/12': '16.666667%',
344
+ '3/12': '25%',
345
+ '4/12': '33.333333%',
346
+ '5/12': '41.666667%',
347
+ '6/12': '50%',
348
+ '7/12': '58.333333%',
349
+ '8/12': '66.666667%',
350
+ '9/12': '75%',
351
+ '10/12': '83.333333%',
352
+ '11/12': '91.666667%',
353
+ full: '100%',
354
+ }),
281
355
  flexGrow: {
282
356
  0: '0',
283
357
  DEFAULT: '1',
@@ -341,8 +415,8 @@ module.exports = {
341
415
  extrabold: '800',
342
416
  black: '900',
343
417
  },
344
- gap: (theme) => theme('spacing'),
345
- gradientColorStops: (theme) => theme('colors'),
418
+ gap: ({ theme }) => theme('spacing'),
419
+ gradientColorStops: ({ theme }) => theme('colors'),
346
420
  gridAutoColumns: {
347
421
  auto: 'auto',
348
422
  min: 'min-content',
@@ -457,7 +531,7 @@ module.exports = {
457
531
  5: 'repeat(5, minmax(0, 1fr))',
458
532
  6: 'repeat(6, minmax(0, 1fr))',
459
533
  },
460
- height: (theme) => ({
534
+ height: ({ theme }) => ({
461
535
  auto: 'auto',
462
536
  ...theme('spacing'),
463
537
  '1/2': '50%',
@@ -477,11 +551,13 @@ module.exports = {
477
551
  '5/6': '83.333333%',
478
552
  full: '100%',
479
553
  screen: '100vh',
554
+ min: 'min-content',
555
+ max: 'max-content',
556
+ fit: 'fit-content',
480
557
  }),
481
- inset: (theme, { negative }) => ({
558
+ inset: ({ theme }) => ({
482
559
  auto: 'auto',
483
560
  ...theme('spacing'),
484
- ...negative(theme('spacing')),
485
561
  '1/2': '50%',
486
562
  '1/3': '33.333333%',
487
563
  '2/3': '66.666667%',
@@ -489,13 +565,6 @@ module.exports = {
489
565
  '2/4': '50%',
490
566
  '3/4': '75%',
491
567
  full: '100%',
492
- '-1/2': '-50%',
493
- '-1/3': '-33.333333%',
494
- '-2/3': '-66.666667%',
495
- '-1/4': '-25%',
496
- '-2/4': '-50%',
497
- '-3/4': '-75%',
498
- '-full': '-100%',
499
568
  }),
500
569
  keyframes: {
501
570
  spin: {
@@ -554,17 +623,19 @@ module.exports = {
554
623
  disc: 'disc',
555
624
  decimal: 'decimal',
556
625
  },
557
- margin: (theme, { negative }) => ({
626
+ margin: ({ theme }) => ({
558
627
  auto: 'auto',
559
628
  ...theme('spacing'),
560
- ...negative(theme('spacing')),
561
629
  }),
562
- maxHeight: (theme) => ({
630
+ maxHeight: ({ theme }) => ({
563
631
  ...theme('spacing'),
564
632
  full: '100%',
565
633
  screen: '100vh',
634
+ min: 'min-content',
635
+ max: 'max-content',
636
+ fit: 'fit-content',
566
637
  }),
567
- maxWidth: (theme, { breakpoints }) => ({
638
+ maxWidth: ({ theme, breakpoints }) => ({
568
639
  none: 'none',
569
640
  0: '0rem',
570
641
  xs: '20rem',
@@ -581,6 +652,7 @@ module.exports = {
581
652
  full: '100%',
582
653
  min: 'min-content',
583
654
  max: 'max-content',
655
+ fit: 'fit-content',
584
656
  prose: '65ch',
585
657
  ...breakpoints(theme('screens')),
586
658
  }),
@@ -588,12 +660,16 @@ module.exports = {
588
660
  0: '0px',
589
661
  full: '100%',
590
662
  screen: '100vh',
663
+ min: 'min-content',
664
+ max: 'max-content',
665
+ fit: 'fit-content',
591
666
  },
592
667
  minWidth: {
593
668
  0: '0px',
594
669
  full: '100%',
595
670
  min: 'min-content',
596
671
  max: 'max-content',
672
+ fit: 'fit-content',
597
673
  },
598
674
  objectPosition: {
599
675
  bottom: 'bottom',
@@ -640,19 +716,29 @@ module.exports = {
640
716
  11: '11',
641
717
  12: '12',
642
718
  },
643
- outline: {
644
- none: ['2px solid transparent', '2px'],
645
- white: ['2px dotted white', '2px'],
646
- black: ['2px dotted black', '2px'],
719
+ padding: ({ theme }) => theme('spacing'),
720
+ placeholderColor: ({ theme }) => theme('colors'),
721
+ placeholderOpacity: ({ theme }) => theme('opacity'),
722
+ outlineColor: ({ theme }) => theme('colors'),
723
+ outlineOffset: {
724
+ 0: '0px',
725
+ 1: '1px',
726
+ 2: '2px',
727
+ 4: '4px',
728
+ 8: '8px',
729
+ },
730
+ outlineWidth: {
731
+ 0: '0px',
732
+ 1: '1px',
733
+ 2: '2px',
734
+ 4: '4px',
735
+ 8: '8px',
647
736
  },
648
- padding: (theme) => theme('spacing'),
649
- placeholderColor: (theme) => theme('colors'),
650
- placeholderOpacity: (theme) => theme('opacity'),
651
- ringColor: (theme) => ({
737
+ ringColor: ({ theme }) => ({
652
738
  DEFAULT: theme('colors.blue.500', '#3b82f6'),
653
739
  ...theme('colors'),
654
740
  }),
655
- ringOffsetColor: (theme) => theme('colors'),
741
+ ringOffsetColor: ({ theme }) => theme('colors'),
656
742
  ringOffsetWidth: {
657
743
  0: '0px',
658
744
  1: '1px',
@@ -660,7 +746,7 @@ module.exports = {
660
746
  4: '4px',
661
747
  8: '8px',
662
748
  },
663
- ringOpacity: (theme) => ({
749
+ ringOpacity: ({ theme }) => ({
664
750
  DEFAULT: '0.5',
665
751
  ...theme('opacity'),
666
752
  }),
@@ -673,14 +759,6 @@ module.exports = {
673
759
  8: '8px',
674
760
  },
675
761
  rotate: {
676
- '-180': '-180deg',
677
- '-90': '-90deg',
678
- '-45': '-45deg',
679
- '-12': '-12deg',
680
- '-6': '-6deg',
681
- '-3': '-3deg',
682
- '-2': '-2deg',
683
- '-1': '-1deg',
684
762
  0: '0deg',
685
763
  1: '1deg',
686
764
  2: '2deg',
@@ -710,16 +788,15 @@ module.exports = {
710
788
  125: '1.25',
711
789
  150: '1.5',
712
790
  },
791
+ scrollMargin: ({ theme }) => ({
792
+ ...theme('spacing'),
793
+ }),
794
+ scrollPadding: ({ theme }) => theme('spacing'),
713
795
  sepia: {
714
796
  0: '0',
715
797
  DEFAULT: '100%',
716
798
  },
717
799
  skew: {
718
- '-12': '-12deg',
719
- '-6': '-6deg',
720
- '-3': '-3deg',
721
- '-2': '-2deg',
722
- '-1': '-1deg',
723
800
  0: '0deg',
724
801
  1: '1deg',
725
802
  2: '2deg',
@@ -727,24 +804,41 @@ module.exports = {
727
804
  6: '6deg',
728
805
  12: '12deg',
729
806
  },
730
- space: (theme, { negative }) => ({
807
+ space: ({ theme }) => ({
731
808
  ...theme('spacing'),
732
- ...negative(theme('spacing')),
733
809
  }),
734
- stroke: {
735
- current: 'currentColor',
736
- },
810
+ stroke: ({ theme }) => ({
811
+ none: 'none',
812
+ ...theme('colors'),
813
+ }),
737
814
  strokeWidth: {
738
815
  0: '0',
739
816
  1: '1',
740
817
  2: '2',
741
818
  },
742
- textColor: (theme) => theme('colors'),
743
- textIndent: (theme, { negative }) => ({
819
+ textColor: ({ theme }) => theme('colors'),
820
+ textDecorationColor: ({ theme }) => theme('colors'),
821
+ textDecorationThickness: {
822
+ auto: 'auto',
823
+ 'from-font': 'from-font',
824
+ 0: '0px',
825
+ 1: '1px',
826
+ 2: '2px',
827
+ 4: '4px',
828
+ 8: '8px',
829
+ },
830
+ textUnderlineOffset: {
831
+ auto: 'auto',
832
+ 0: '0px',
833
+ 1: '1px',
834
+ 2: '2px',
835
+ 4: '4px',
836
+ 8: '8px',
837
+ },
838
+ textIndent: ({ theme }) => ({
744
839
  ...theme('spacing'),
745
- ...negative(theme('spacing')),
746
840
  }),
747
- textOpacity: (theme) => theme('opacity'),
841
+ textOpacity: ({ theme }) => theme('opacity'),
748
842
  transformOrigin: {
749
843
  center: 'center',
750
844
  top: 'top',
@@ -781,8 +875,8 @@ module.exports = {
781
875
  none: 'none',
782
876
  all: 'all',
783
877
  DEFAULT:
784
- 'background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter',
785
- colors: 'background-color, border-color, color, fill, stroke',
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',
786
880
  opacity: 'opacity',
787
881
  shadow: 'box-shadow',
788
882
  transform: 'transform',
@@ -794,9 +888,8 @@ module.exports = {
794
888
  out: 'cubic-bezier(0, 0, 0.2, 1)',
795
889
  'in-out': 'cubic-bezier(0.4, 0, 0.2, 1)',
796
890
  },
797
- translate: (theme, { negative }) => ({
891
+ translate: ({ theme }) => ({
798
892
  ...theme('spacing'),
799
- ...negative(theme('spacing')),
800
893
  '1/2': '50%',
801
894
  '1/3': '33.333333%',
802
895
  '2/3': '66.666667%',
@@ -804,15 +897,8 @@ module.exports = {
804
897
  '2/4': '50%',
805
898
  '3/4': '75%',
806
899
  full: '100%',
807
- '-1/2': '-50%',
808
- '-1/3': '-33.333333%',
809
- '-2/3': '-66.666667%',
810
- '-1/4': '-25%',
811
- '-2/4': '-50%',
812
- '-3/4': '-75%',
813
- '-full': '-100%',
814
900
  }),
815
- width: (theme) => ({
901
+ width: ({ theme }) => ({
816
902
  auto: 'auto',
817
903
  ...theme('spacing'),
818
904
  '1/2': '50%',
@@ -845,12 +931,13 @@ module.exports = {
845
931
  screen: '100vw',
846
932
  min: 'min-content',
847
933
  max: 'max-content',
934
+ fit: 'fit-content',
848
935
  }),
849
936
  willChange: {
850
- 'auto': 'auto',
851
- 'scroll': 'scroll-position',
852
- 'contents': 'contents',
853
- 'transform': 'transform',
937
+ auto: 'auto',
938
+ scroll: 'scroll-position',
939
+ contents: 'contents',
940
+ transform: 'transform',
854
941
  },
855
942
  zIndex: {
856
943
  auto: 'auto',
@@ -862,23 +949,5 @@ module.exports = {
862
949
  50: '50',
863
950
  },
864
951
  },
865
- variantOrder: [
866
- 'first',
867
- 'last',
868
- 'odd',
869
- 'even',
870
- 'visited',
871
- 'checked',
872
- 'empty',
873
- 'read-only',
874
- 'group-hover',
875
- 'group-focus',
876
- 'focus-within',
877
- 'hover',
878
- 'focus',
879
- 'focus-visible',
880
- 'active',
881
- 'disabled',
882
- ],
883
952
  plugins: [],
884
953
  }
@@ -1,6 +1,6 @@
1
+ /** @type {import('tailwindcss').Config} */
1
2
  module.exports = {
2
3
  content: [],
3
- darkMode: 'media', // or 'class'
4
4
  theme: {
5
5
  extend: {},
6
6
  },