tailwindcss 0.0.0-insiders.df011dc → 0.0.0-insiders.e2d5f21

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 (120) hide show
  1. package/CHANGELOG.md +106 -1
  2. package/README.md +1 -1
  3. package/colors.js +1 -304
  4. package/defaultConfig.js +1 -4
  5. package/defaultTheme.js +1 -4
  6. package/lib/cli-peer-dependencies.js +4 -9
  7. package/lib/cli.js +646 -705
  8. package/lib/constants.js +15 -15
  9. package/lib/corePluginList.js +174 -4
  10. package/lib/corePlugins.js +3637 -2934
  11. package/lib/css/preflight.css +14 -1
  12. package/lib/featureFlags.js +44 -44
  13. package/lib/index.js +25 -24
  14. package/lib/lib/collapseAdjacentRules.js +33 -35
  15. package/lib/lib/collapseDuplicateDeclarations.js +29 -0
  16. package/lib/lib/detectNesting.js +34 -0
  17. package/lib/lib/evaluateTailwindFunctions.js +134 -155
  18. package/lib/lib/expandApplyAtRules.js +183 -200
  19. package/lib/lib/expandTailwindAtRules.js +219 -232
  20. package/lib/lib/generateRules.js +478 -311
  21. package/lib/lib/getModuleDependencies.js +36 -41
  22. package/lib/lib/normalizeTailwindDirectives.js +66 -58
  23. package/lib/lib/resolveDefaultsAtRules.js +110 -90
  24. package/lib/lib/setupContextUtils.js +740 -580
  25. package/lib/lib/setupTrackingContext.js +142 -162
  26. package/lib/lib/setupWatchingContext.js +235 -278
  27. package/lib/lib/sharedState.js +7 -17
  28. package/lib/lib/substituteScreenAtRules.js +22 -26
  29. package/lib/processTailwindFeatures.js +38 -44
  30. package/lib/public/colors.js +329 -0
  31. package/lib/public/create-plugin.js +13 -0
  32. package/lib/public/default-config.js +14 -0
  33. package/lib/public/default-theme.js +14 -0
  34. package/lib/public/resolve-config.js +19 -0
  35. package/lib/util/bigSign.js +3 -5
  36. package/lib/util/buildMediaQuery.js +15 -31
  37. package/lib/util/cloneDeep.js +14 -13
  38. package/lib/util/cloneNodes.js +9 -13
  39. package/lib/util/color.js +69 -59
  40. package/lib/util/configurePlugins.js +13 -14
  41. package/lib/util/createPlugin.js +21 -24
  42. package/lib/util/createUtilityPlugin.js +47 -45
  43. package/lib/util/dataTypes.js +231 -0
  44. package/lib/util/defaults.js +10 -14
  45. package/lib/util/escapeClassName.js +12 -14
  46. package/lib/util/escapeCommas.js +3 -5
  47. package/lib/util/flattenColorPalette.js +14 -10
  48. package/lib/util/formatVariantSelector.js +186 -0
  49. package/lib/util/getAllConfigs.js +23 -16
  50. package/lib/util/hashConfig.js +10 -10
  51. package/lib/util/isKeyframeRule.js +3 -5
  52. package/lib/util/isPlainObject.js +7 -10
  53. package/lib/util/isValidArbitraryValue.js +64 -0
  54. package/lib/util/log.js +39 -30
  55. package/lib/util/nameClass.js +23 -23
  56. package/lib/util/negateValue.js +14 -15
  57. package/lib/util/normalizeConfig.js +208 -0
  58. package/lib/util/normalizeScreens.js +58 -0
  59. package/lib/util/parseAnimationValue.js +82 -53
  60. package/lib/util/parseBoxShadowValue.js +77 -0
  61. package/lib/util/parseDependency.js +49 -60
  62. package/lib/util/parseObjectStyles.js +23 -20
  63. package/lib/util/pluginUtils.js +153 -285
  64. package/lib/util/prefixSelector.js +14 -16
  65. package/lib/util/resolveConfig.js +194 -249
  66. package/lib/util/resolveConfigPath.js +38 -45
  67. package/lib/util/responsive.js +12 -11
  68. package/lib/util/tap.js +4 -6
  69. package/lib/util/toColorValue.js +4 -5
  70. package/lib/util/toPath.js +4 -6
  71. package/lib/util/transformThemeValue.js +57 -26
  72. package/lib/util/withAlphaVariable.js +56 -54
  73. package/package.json +27 -37
  74. package/peers/index.js +73099 -84294
  75. package/plugin.js +1 -3
  76. package/resolveConfig.js +1 -7
  77. package/scripts/create-plugin-list.js +2 -2
  78. package/src/cli.js +27 -18
  79. package/src/corePluginList.js +1 -1
  80. package/src/corePlugins.js +2124 -1968
  81. package/src/css/preflight.css +14 -1
  82. package/src/featureFlags.js +12 -6
  83. package/src/lib/collapseDuplicateDeclarations.js +28 -0
  84. package/src/lib/detectNesting.js +39 -0
  85. package/src/lib/evaluateTailwindFunctions.js +5 -2
  86. package/src/lib/expandTailwindAtRules.js +24 -32
  87. package/src/lib/generateRules.js +230 -20
  88. package/src/lib/normalizeTailwindDirectives.js +3 -2
  89. package/src/lib/resolveDefaultsAtRules.js +46 -30
  90. package/src/lib/setupContextUtils.js +275 -113
  91. package/src/lib/setupTrackingContext.js +9 -8
  92. package/src/lib/setupWatchingContext.js +12 -7
  93. package/src/lib/sharedState.js +1 -4
  94. package/src/lib/substituteScreenAtRules.js +6 -3
  95. package/src/processTailwindFeatures.js +8 -1
  96. package/src/public/colors.js +300 -0
  97. package/src/public/create-plugin.js +2 -0
  98. package/src/public/default-config.js +4 -0
  99. package/src/public/default-theme.js +4 -0
  100. package/src/public/resolve-config.js +7 -0
  101. package/src/util/buildMediaQuery.js +14 -18
  102. package/src/util/createUtilityPlugin.js +2 -11
  103. package/src/util/dataTypes.js +246 -0
  104. package/src/util/formatVariantSelector.js +196 -0
  105. package/src/util/isValidArbitraryValue.js +61 -0
  106. package/src/util/log.js +18 -21
  107. package/src/util/nameClass.js +10 -6
  108. package/src/util/negateValue.js +4 -2
  109. package/src/util/normalizeConfig.js +249 -0
  110. package/src/util/normalizeScreens.js +42 -0
  111. package/src/util/parseAnimationValue.js +7 -1
  112. package/src/util/parseBoxShadowValue.js +71 -0
  113. package/src/util/parseDependency.js +4 -0
  114. package/src/util/pluginUtils.js +101 -204
  115. package/src/util/prefixSelector.js +1 -4
  116. package/src/util/resolveConfig.js +12 -65
  117. package/src/util/transformThemeValue.js +22 -7
  118. package/src/util/withAlphaVariable.js +13 -8
  119. package/stubs/defaultConfig.stub.js +163 -97
  120. package/stubs/simpleConfig.stub.js +0 -1
@@ -11,8 +11,9 @@ module.exports = {
11
11
  '2xl': '1536px',
12
12
  },
13
13
  colors: ({ colors }) => ({
14
- transparent: colors.transparent,
14
+ inherit: colors.inherit,
15
15
  current: colors.current,
16
+ transparent: colors.transparent,
16
17
  black: colors.black,
17
18
  white: colors.white,
18
19
  slate: colors.slate,
@@ -111,20 +112,20 @@ module.exports = {
111
112
  bounce: 'bounce 1s infinite',
112
113
  },
113
114
  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'),
115
+ auto: 'auto',
116
+ square: '1 / 1',
117
+ video: '16 / 9',
118
+ },
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'),
128
129
  backgroundImage: {
129
130
  none: 'none',
130
131
  'gradient-to-t': 'linear-gradient(to top, var(--tw-gradient-stops))',
@@ -136,7 +137,7 @@ module.exports = {
136
137
  'gradient-to-l': 'linear-gradient(to left, var(--tw-gradient-stops))',
137
138
  'gradient-to-tl': 'linear-gradient(to top left, var(--tw-gradient-stops))',
138
139
  },
139
- backgroundOpacity: (theme) => theme('opacity'),
140
+ backgroundOpacity: ({ theme }) => theme('opacity'),
140
141
  backgroundPosition: {
141
142
  bottom: 'bottom',
142
143
  center: 'center',
@@ -177,11 +178,11 @@ module.exports = {
177
178
  150: '1.5',
178
179
  200: '2',
179
180
  },
180
- borderColor: (theme) => ({
181
+ borderColor: ({ theme }) => ({
181
182
  ...theme('colors'),
182
183
  DEFAULT: theme('colors.gray.200', 'currentColor'),
183
184
  }),
184
- borderOpacity: (theme) => theme('opacity'),
185
+ borderOpacity: ({ theme }) => theme('opacity'),
185
186
  borderRadius: {
186
187
  none: '0px',
187
188
  sm: '0.125rem',
@@ -202,16 +203,17 @@ module.exports = {
202
203
  },
203
204
  boxShadow: {
204
205
  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)',
206
+ DEFAULT: '0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)',
207
+ md: '0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)',
208
+ lg: '0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)',
209
+ xl: '0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)',
209
210
  '2xl': '0 25px 50px -12px rgb(0 0 0 / 0.25)',
210
- inner: 'inset 0 2px 4px 0 rgb(0 0 0 / 0.06)',
211
+ inner: 'inset 0 2px 4px 0 rgb(0 0 0 / 0.05)',
211
212
  none: 'none',
212
213
  },
213
- caretColor: (theme) => theme('colors'),
214
- accentColor: (theme) => ({
214
+ boxShadowColor: ({ theme }) => theme('colors'),
215
+ caretColor: ({ theme }) => theme('colors'),
216
+ accentColor: ({ theme }) => ({
215
217
  ...theme('colors'),
216
218
  auto: 'auto',
217
219
  }),
@@ -237,10 +239,38 @@ module.exports = {
237
239
  move: 'move',
238
240
  help: 'help',
239
241
  'not-allowed': 'not-allowed',
240
- },
241
- divideColor: (theme) => theme('borderColor'),
242
- divideOpacity: (theme) => theme('borderOpacity'),
243
- divideWidth: (theme) => theme('borderWidth'),
242
+ none: 'none',
243
+ 'context-menu': 'context-menu',
244
+ progress: 'progress',
245
+ cell: 'cell',
246
+ crosshair: 'crosshair',
247
+ 'vertical-text': 'vertical-text',
248
+ alias: 'alias',
249
+ copy: 'copy',
250
+ 'no-drop': 'no-drop',
251
+ grab: 'grab',
252
+ grabbing: 'grabbing',
253
+ 'all-scroll': 'all-scroll',
254
+ 'col-resize': 'col-resize',
255
+ 'row-resize': 'row-resize',
256
+ 'n-resize': 'n-resize',
257
+ 'e-resize': 'e-resize',
258
+ 's-resize': 's-resize',
259
+ 'w-resize': 'w-resize',
260
+ 'ne-resize': 'ne-resize',
261
+ 'nw-resize': 'nw-resize',
262
+ 'se-resize': 'se-resize',
263
+ 'sw-resize': 'sw-resize',
264
+ 'ew-resize': 'ew-resize',
265
+ 'ns-resize': 'ns-resize',
266
+ 'nesw-resize': 'nesw-resize',
267
+ 'nwse-resize': 'nwse-resize',
268
+ 'zoom-in': 'zoom-in',
269
+ 'zoom-out': 'zoom-out',
270
+ },
271
+ divideColor: ({ theme }) => theme('borderColor'),
272
+ divideOpacity: ({ theme }) => theme('borderOpacity'),
273
+ divideWidth: ({ theme }) => theme('borderWidth'),
244
274
  dropShadow: {
245
275
  sm: '0 1px 1px rgb(0 0 0 / 0.05)',
246
276
  DEFAULT: ['0 1px 2px rgb(0 0 0 / 0.1)', '0 1px 1px rgb(0 0 0 / 0.06)'],
@@ -250,17 +280,12 @@ module.exports = {
250
280
  '2xl': '0 25px 25px rgb(0 0 0 / 0.15)',
251
281
  none: '0 0 #0000',
252
282
  },
253
- fill: { current: 'currentColor' },
283
+ fill: ({ theme }) => theme('colors'),
254
284
  grayscale: {
255
285
  0: '0',
256
286
  DEFAULT: '100%',
257
287
  },
258
288
  hueRotate: {
259
- '-180': '-180deg',
260
- '-90': '-90deg',
261
- '-60': '-60deg',
262
- '-30': '-30deg',
263
- '-15': '-15deg',
264
289
  0: '0deg',
265
290
  15: '15deg',
266
291
  30: '30deg',
@@ -278,6 +303,37 @@ module.exports = {
278
303
  initial: '0 1 auto',
279
304
  none: 'none',
280
305
  },
306
+ flexBasis: ({ theme }) => ({
307
+ auto: 'auto',
308
+ ...theme('spacing'),
309
+ '1/2': '50%',
310
+ '1/3': '33.333333%',
311
+ '2/3': '66.666667%',
312
+ '1/4': '25%',
313
+ '2/4': '50%',
314
+ '3/4': '75%',
315
+ '1/5': '20%',
316
+ '2/5': '40%',
317
+ '3/5': '60%',
318
+ '4/5': '80%',
319
+ '1/6': '16.666667%',
320
+ '2/6': '33.333333%',
321
+ '3/6': '50%',
322
+ '4/6': '66.666667%',
323
+ '5/6': '83.333333%',
324
+ '1/12': '8.333333%',
325
+ '2/12': '16.666667%',
326
+ '3/12': '25%',
327
+ '4/12': '33.333333%',
328
+ '5/12': '41.666667%',
329
+ '6/12': '50%',
330
+ '7/12': '58.333333%',
331
+ '8/12': '66.666667%',
332
+ '9/12': '75%',
333
+ '10/12': '83.333333%',
334
+ '11/12': '91.666667%',
335
+ full: '100%',
336
+ }),
281
337
  flexGrow: {
282
338
  0: '0',
283
339
  DEFAULT: '1',
@@ -341,8 +397,8 @@ module.exports = {
341
397
  extrabold: '800',
342
398
  black: '900',
343
399
  },
344
- gap: (theme) => theme('spacing'),
345
- gradientColorStops: (theme) => theme('colors'),
400
+ gap: ({ theme }) => theme('spacing'),
401
+ gradientColorStops: ({ theme }) => theme('colors'),
346
402
  gridAutoColumns: {
347
403
  auto: 'auto',
348
404
  min: 'min-content',
@@ -457,7 +513,7 @@ module.exports = {
457
513
  5: 'repeat(5, minmax(0, 1fr))',
458
514
  6: 'repeat(6, minmax(0, 1fr))',
459
515
  },
460
- height: (theme) => ({
516
+ height: ({ theme }) => ({
461
517
  auto: 'auto',
462
518
  ...theme('spacing'),
463
519
  '1/2': '50%',
@@ -477,11 +533,13 @@ module.exports = {
477
533
  '5/6': '83.333333%',
478
534
  full: '100%',
479
535
  screen: '100vh',
536
+ min: 'min-content',
537
+ max: 'max-content',
538
+ fit: 'fit-content',
480
539
  }),
481
- inset: (theme, { negative }) => ({
540
+ inset: ({ theme }) => ({
482
541
  auto: 'auto',
483
542
  ...theme('spacing'),
484
- ...negative(theme('spacing')),
485
543
  '1/2': '50%',
486
544
  '1/3': '33.333333%',
487
545
  '2/3': '66.666667%',
@@ -489,13 +547,6 @@ module.exports = {
489
547
  '2/4': '50%',
490
548
  '3/4': '75%',
491
549
  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
550
  }),
500
551
  keyframes: {
501
552
  spin: {
@@ -554,17 +605,19 @@ module.exports = {
554
605
  disc: 'disc',
555
606
  decimal: 'decimal',
556
607
  },
557
- margin: (theme, { negative }) => ({
608
+ margin: ({ theme }) => ({
558
609
  auto: 'auto',
559
610
  ...theme('spacing'),
560
- ...negative(theme('spacing')),
561
611
  }),
562
- maxHeight: (theme) => ({
612
+ maxHeight: ({ theme }) => ({
563
613
  ...theme('spacing'),
564
614
  full: '100%',
565
615
  screen: '100vh',
616
+ min: 'min-content',
617
+ max: 'max-content',
618
+ fit: 'fit-content',
566
619
  }),
567
- maxWidth: (theme, { breakpoints }) => ({
620
+ maxWidth: ({ theme, breakpoints }) => ({
568
621
  none: 'none',
569
622
  0: '0rem',
570
623
  xs: '20rem',
@@ -581,6 +634,7 @@ module.exports = {
581
634
  full: '100%',
582
635
  min: 'min-content',
583
636
  max: 'max-content',
637
+ fit: 'fit-content',
584
638
  prose: '65ch',
585
639
  ...breakpoints(theme('screens')),
586
640
  }),
@@ -588,12 +642,16 @@ module.exports = {
588
642
  0: '0px',
589
643
  full: '100%',
590
644
  screen: '100vh',
645
+ min: 'min-content',
646
+ max: 'max-content',
647
+ fit: 'fit-content',
591
648
  },
592
649
  minWidth: {
593
650
  0: '0px',
594
651
  full: '100%',
595
652
  min: 'min-content',
596
653
  max: 'max-content',
654
+ fit: 'fit-content',
597
655
  },
598
656
  objectPosition: {
599
657
  bottom: 'bottom',
@@ -640,19 +698,29 @@ module.exports = {
640
698
  11: '11',
641
699
  12: '12',
642
700
  },
643
- outline: {
644
- none: ['2px solid transparent', '2px'],
645
- white: ['2px dotted white', '2px'],
646
- black: ['2px dotted black', '2px'],
701
+ padding: ({ theme }) => theme('spacing'),
702
+ placeholderColor: ({ theme }) => theme('colors'),
703
+ placeholderOpacity: ({ theme }) => theme('opacity'),
704
+ outlineColor: ({ theme }) => theme('colors'),
705
+ outlineOffset: {
706
+ 0: '0px',
707
+ 1: '1px',
708
+ 2: '2px',
709
+ 4: '4px',
710
+ 8: '8px',
711
+ },
712
+ outlineWidth: {
713
+ 0: '0px',
714
+ 1: '1px',
715
+ 2: '2px',
716
+ 4: '4px',
717
+ 8: '8px',
647
718
  },
648
- padding: (theme) => theme('spacing'),
649
- placeholderColor: (theme) => theme('colors'),
650
- placeholderOpacity: (theme) => theme('opacity'),
651
- ringColor: (theme) => ({
719
+ ringColor: ({ theme }) => ({
652
720
  DEFAULT: theme('colors.blue.500', '#3b82f6'),
653
721
  ...theme('colors'),
654
722
  }),
655
- ringOffsetColor: (theme) => theme('colors'),
723
+ ringOffsetColor: ({ theme }) => theme('colors'),
656
724
  ringOffsetWidth: {
657
725
  0: '0px',
658
726
  1: '1px',
@@ -660,7 +728,7 @@ module.exports = {
660
728
  4: '4px',
661
729
  8: '8px',
662
730
  },
663
- ringOpacity: (theme) => ({
731
+ ringOpacity: ({ theme }) => ({
664
732
  DEFAULT: '0.5',
665
733
  ...theme('opacity'),
666
734
  }),
@@ -673,14 +741,6 @@ module.exports = {
673
741
  8: '8px',
674
742
  },
675
743
  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
744
  0: '0deg',
685
745
  1: '1deg',
686
746
  2: '2deg',
@@ -710,16 +770,15 @@ module.exports = {
710
770
  125: '1.25',
711
771
  150: '1.5',
712
772
  },
773
+ scrollMargin: ({ theme }) => ({
774
+ ...theme('spacing'),
775
+ }),
776
+ scrollPadding: ({ theme }) => theme('spacing'),
713
777
  sepia: {
714
778
  0: '0',
715
779
  DEFAULT: '100%',
716
780
  },
717
781
  skew: {
718
- '-12': '-12deg',
719
- '-6': '-6deg',
720
- '-3': '-3deg',
721
- '-2': '-2deg',
722
- '-1': '-1deg',
723
782
  0: '0deg',
724
783
  1: '1deg',
725
784
  2: '2deg',
@@ -727,24 +786,38 @@ module.exports = {
727
786
  6: '6deg',
728
787
  12: '12deg',
729
788
  },
730
- space: (theme, { negative }) => ({
789
+ space: ({ theme }) => ({
731
790
  ...theme('spacing'),
732
- ...negative(theme('spacing')),
733
791
  }),
734
- stroke: {
735
- current: 'currentColor',
736
- },
792
+ stroke: ({ theme }) => theme('colors'),
737
793
  strokeWidth: {
738
794
  0: '0',
739
795
  1: '1',
740
796
  2: '2',
741
797
  },
742
- textColor: (theme) => theme('colors'),
743
- textIndent: (theme, { negative }) => ({
798
+ textColor: ({ theme }) => theme('colors'),
799
+ textDecorationColor: ({ theme }) => theme('colors'),
800
+ textDecorationThickness: {
801
+ auto: 'auto',
802
+ 'from-font': 'from-font',
803
+ 0: '0px',
804
+ 1: '1px',
805
+ 2: '2px',
806
+ 4: '4px',
807
+ 8: '8px',
808
+ },
809
+ textUnderlineOffset: {
810
+ auto: 'auto',
811
+ 0: '0px',
812
+ 1: '1px',
813
+ 2: '2px',
814
+ 4: '4px',
815
+ 8: '8px',
816
+ },
817
+ textIndent: ({ theme }) => ({
744
818
  ...theme('spacing'),
745
- ...negative(theme('spacing')),
746
819
  }),
747
- textOpacity: (theme) => theme('opacity'),
820
+ textOpacity: ({ theme }) => theme('opacity'),
748
821
  transformOrigin: {
749
822
  center: 'center',
750
823
  top: 'top',
@@ -794,9 +867,8 @@ module.exports = {
794
867
  out: 'cubic-bezier(0, 0, 0.2, 1)',
795
868
  'in-out': 'cubic-bezier(0.4, 0, 0.2, 1)',
796
869
  },
797
- translate: (theme, { negative }) => ({
870
+ translate: ({ theme }) => ({
798
871
  ...theme('spacing'),
799
- ...negative(theme('spacing')),
800
872
  '1/2': '50%',
801
873
  '1/3': '33.333333%',
802
874
  '2/3': '66.666667%',
@@ -804,15 +876,8 @@ module.exports = {
804
876
  '2/4': '50%',
805
877
  '3/4': '75%',
806
878
  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
879
  }),
815
- width: (theme) => ({
880
+ width: ({ theme }) => ({
816
881
  auto: 'auto',
817
882
  ...theme('spacing'),
818
883
  '1/2': '50%',
@@ -845,12 +910,13 @@ module.exports = {
845
910
  screen: '100vw',
846
911
  min: 'min-content',
847
912
  max: 'max-content',
913
+ fit: 'fit-content',
848
914
  }),
849
915
  willChange: {
850
- 'auto': 'auto',
851
- 'scroll': 'scroll-position',
852
- 'contents': 'contents',
853
- 'transform': 'transform',
916
+ auto: 'auto',
917
+ scroll: 'scroll-position',
918
+ contents: 'contents',
919
+ transform: 'transform',
854
920
  },
855
921
  zIndex: {
856
922
  auto: 'auto',
@@ -1,6 +1,5 @@
1
1
  module.exports = {
2
2
  content: [],
3
- darkMode: 'media', // or 'class'
4
3
  theme: {
5
4
  extend: {},
6
5
  },