tailwindcss 0.0.0-insiders.ea10bb9 → 0.0.0-insiders.ea4e1cd

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 (184) hide show
  1. package/README.md +1 -1
  2. package/lib/cli/build/deps.js +17 -9
  3. package/lib/cli/build/index.js +20 -10
  4. package/lib/cli/build/plugin.js +86 -70
  5. package/lib/cli/build/utils.js +18 -8
  6. package/lib/cli/build/watching.js +16 -12
  7. package/lib/cli/help/index.js +6 -4
  8. package/lib/cli/index.js +222 -10
  9. package/lib/cli/init/index.js +29 -12
  10. package/lib/cli-peer-dependencies.js +12 -4
  11. package/lib/cli.js +4 -226
  12. package/lib/corePluginList.js +7 -1
  13. package/lib/corePlugins.js +348 -75
  14. package/lib/css/preflight.css +2 -0
  15. package/lib/featureFlags.js +27 -15
  16. package/lib/index.js +1 -47
  17. package/lib/lib/cacheInvalidation.js +7 -5
  18. package/lib/lib/collapseAdjacentRules.js +5 -3
  19. package/lib/lib/collapseDuplicateDeclarations.js +12 -10
  20. package/lib/lib/content.js +34 -30
  21. package/lib/lib/defaultExtractor.js +15 -8
  22. package/lib/lib/detectNesting.js +10 -2
  23. package/lib/lib/evaluateTailwindFunctions.js +22 -20
  24. package/lib/lib/expandApplyAtRules.js +43 -35
  25. package/lib/lib/expandTailwindAtRules.js +46 -19
  26. package/lib/lib/findAtConfigPath.js +9 -7
  27. package/lib/lib/generateRules.js +157 -92
  28. package/lib/lib/getModuleDependencies.js +85 -37
  29. package/lib/lib/load-config.js +42 -0
  30. package/lib/lib/normalizeTailwindDirectives.js +5 -3
  31. package/lib/lib/offsets.js +93 -4
  32. package/lib/lib/partitionApplyAtRules.js +3 -1
  33. package/lib/lib/regex.js +21 -7
  34. package/lib/lib/remap-bitfield.js +89 -0
  35. package/lib/lib/resolveDefaultsAtRules.js +28 -24
  36. package/lib/lib/setupContextUtils.js +190 -131
  37. package/lib/lib/setupTrackingContext.js +49 -26
  38. package/lib/lib/sharedState.js +37 -10
  39. package/lib/lib/substituteScreenAtRules.js +5 -3
  40. package/lib/oxide/cli/build/deps.js +89 -0
  41. package/lib/oxide/cli/build/index.js +53 -0
  42. package/lib/oxide/cli/build/plugin.js +375 -0
  43. package/lib/oxide/cli/build/utils.js +87 -0
  44. package/lib/oxide/cli/build/watching.js +179 -0
  45. package/lib/oxide/cli/help/index.js +72 -0
  46. package/lib/oxide/cli/index.js +214 -0
  47. package/lib/oxide/cli/init/index.js +52 -0
  48. package/lib/oxide/cli.js +5 -0
  49. package/lib/oxide/postcss-plugin.js +2 -0
  50. package/lib/plugin.js +98 -0
  51. package/lib/postcss-plugins/nesting/index.js +3 -1
  52. package/lib/postcss-plugins/nesting/plugin.js +10 -8
  53. package/lib/processTailwindFeatures.js +14 -12
  54. package/lib/public/colors.js +49 -25
  55. package/lib/public/create-plugin.js +5 -3
  56. package/lib/public/default-config.js +6 -4
  57. package/lib/public/default-theme.js +6 -4
  58. package/lib/public/load-config.js +12 -0
  59. package/lib/public/resolve-config.js +6 -4
  60. package/lib/util/applyImportantSelector.js +36 -0
  61. package/lib/util/bigSign.js +3 -1
  62. package/lib/util/buildMediaQuery.js +3 -1
  63. package/lib/util/cloneDeep.js +3 -1
  64. package/lib/util/cloneNodes.js +5 -3
  65. package/lib/util/color.js +30 -12
  66. package/lib/util/colorNames.js +752 -0
  67. package/lib/util/configurePlugins.js +3 -1
  68. package/lib/util/createPlugin.js +3 -1
  69. package/lib/util/createUtilityPlugin.js +7 -5
  70. package/lib/util/dataTypes.js +74 -17
  71. package/lib/util/defaults.js +9 -7
  72. package/lib/util/escapeClassName.js +10 -8
  73. package/lib/util/escapeCommas.js +3 -1
  74. package/lib/util/flattenColorPalette.js +3 -1
  75. package/lib/util/formatVariantSelector.js +138 -160
  76. package/lib/util/getAllConfigs.js +8 -6
  77. package/lib/util/hashConfig.js +6 -4
  78. package/lib/util/isKeyframeRule.js +3 -1
  79. package/lib/util/isPlainObject.js +3 -1
  80. package/lib/util/isSyntacticallyValidPropertyValue.js +3 -1
  81. package/lib/util/log.js +8 -4
  82. package/lib/util/nameClass.js +12 -6
  83. package/lib/util/negateValue.js +4 -2
  84. package/lib/util/normalizeConfig.js +28 -27
  85. package/lib/util/normalizeScreens.js +12 -4
  86. package/lib/util/parseAnimationValue.js +3 -1
  87. package/lib/util/parseBoxShadowValue.js +6 -2
  88. package/lib/util/parseDependency.js +3 -1
  89. package/lib/util/parseGlob.js +6 -4
  90. package/lib/util/parseObjectStyles.js +9 -7
  91. package/lib/util/pluginUtils.js +54 -54
  92. package/lib/util/prefixSelector.js +27 -11
  93. package/lib/util/pseudoElements.js +229 -0
  94. package/lib/util/removeAlphaVariables.js +3 -1
  95. package/lib/util/resolveConfig.js +17 -15
  96. package/lib/util/resolveConfigPath.js +26 -10
  97. package/lib/util/responsive.js +6 -4
  98. package/lib/util/splitAtTopLevelOnly.js +10 -2
  99. package/lib/util/tap.js +3 -1
  100. package/lib/util/toColorValue.js +3 -1
  101. package/lib/util/toPath.js +3 -1
  102. package/lib/util/transformThemeValue.js +6 -4
  103. package/lib/util/validateConfig.js +16 -3
  104. package/lib/util/validateFormalSyntax.js +3 -1
  105. package/lib/util/withAlphaVariable.js +6 -2
  106. package/loadConfig.d.ts +4 -0
  107. package/loadConfig.js +2 -0
  108. package/package.json +45 -37
  109. package/peers/index.js +63324 -46417
  110. package/resolveConfig.d.ts +11 -2
  111. package/scripts/swap-engines.js +40 -0
  112. package/src/cli/build/index.js +13 -9
  113. package/src/cli/build/plugin.js +42 -32
  114. package/src/cli/build/watching.js +4 -2
  115. package/src/cli/index.js +216 -3
  116. package/src/cli/init/index.js +37 -8
  117. package/src/cli.js +4 -220
  118. package/src/corePluginList.js +1 -1
  119. package/src/corePlugins.js +207 -32
  120. package/src/css/preflight.css +2 -0
  121. package/src/featureFlags.js +6 -0
  122. package/src/index.js +1 -47
  123. package/src/lib/content.js +12 -17
  124. package/src/lib/defaultExtractor.js +9 -3
  125. package/src/lib/detectNesting.js +9 -1
  126. package/src/lib/expandApplyAtRules.js +8 -1
  127. package/src/lib/expandTailwindAtRules.js +36 -7
  128. package/src/lib/generateRules.js +124 -42
  129. package/src/lib/getModuleDependencies.js +70 -30
  130. package/src/lib/load-config.ts +31 -0
  131. package/src/lib/offsets.js +104 -1
  132. package/src/lib/remap-bitfield.js +82 -0
  133. package/src/lib/setupContextUtils.js +103 -54
  134. package/src/lib/setupTrackingContext.js +36 -11
  135. package/src/lib/sharedState.js +15 -4
  136. package/src/oxide/cli/build/deps.ts +91 -0
  137. package/src/oxide/cli/build/index.ts +47 -0
  138. package/src/oxide/cli/build/plugin.ts +442 -0
  139. package/src/oxide/cli/build/utils.ts +74 -0
  140. package/src/oxide/cli/build/watching.ts +225 -0
  141. package/src/oxide/cli/help/index.ts +69 -0
  142. package/src/oxide/cli/index.ts +204 -0
  143. package/src/oxide/cli/init/index.ts +59 -0
  144. package/src/oxide/cli.ts +1 -0
  145. package/src/oxide/postcss-plugin.ts +1 -0
  146. package/src/plugin.js +107 -0
  147. package/src/public/colors.js +22 -0
  148. package/src/public/default-config.js +1 -1
  149. package/src/public/default-theme.js +2 -2
  150. package/src/public/load-config.js +2 -0
  151. package/src/util/applyImportantSelector.js +27 -0
  152. package/src/util/color.js +18 -3
  153. package/src/util/colorNames.js +150 -0
  154. package/src/util/dataTypes.js +33 -4
  155. package/src/util/formatVariantSelector.js +160 -163
  156. package/src/util/getAllConfigs.js +2 -2
  157. package/src/util/negateValue.js +1 -1
  158. package/src/util/normalizeConfig.js +2 -1
  159. package/src/util/pluginUtils.js +16 -31
  160. package/src/util/prefixSelector.js +28 -10
  161. package/src/util/pseudoElements.js +170 -0
  162. package/src/util/resolveConfigPath.js +12 -1
  163. package/src/util/splitAtTopLevelOnly.js +8 -1
  164. package/src/util/validateConfig.js +13 -0
  165. package/stubs/.gitignore +1 -0
  166. package/stubs/.prettierrc.json +6 -0
  167. package/stubs/{defaultConfig.stub.js → config.full.js} +183 -146
  168. package/stubs/{simpleConfig.stub.js → config.simple.js} +0 -1
  169. package/stubs/postcss.config.js +6 -0
  170. package/stubs/tailwind.config.cjs +2 -0
  171. package/stubs/tailwind.config.js +2 -0
  172. package/stubs/tailwind.config.ts +3 -0
  173. package/types/config.d.ts +15 -9
  174. package/types/generated/colors.d.ts +22 -0
  175. package/types/generated/corePluginList.d.ts +1 -1
  176. package/types/generated/default-theme.d.ts +108 -79
  177. package/CHANGELOG.md +0 -2336
  178. package/lib/cli/shared.js +0 -12
  179. package/lib/constants.js +0 -44
  180. package/scripts/install-integrations.js +0 -27
  181. package/scripts/rebuildFixtures.js +0 -68
  182. package/src/cli/shared.js +0 -5
  183. package/src/constants.js +0 -17
  184. /package/stubs/{defaultPostCssConfig.stub.js → postcss.config.cjs} +0 -0
@@ -1,111 +1,12 @@
1
- /** @type {import('tailwindcss').Config} */
2
1
  module.exports = {
3
2
  content: [],
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',
@@ -177,19 +78,6 @@ module.exports = {
177
78
  '2xl': '40px',
178
79
  '3xl': '64px',
179
80
  },
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
81
  borderColor: ({ theme }) => ({
194
82
  ...theme('colors'),
195
83
  DEFAULT: theme('colors.gray.200', 'currentColor'),
@@ -227,24 +115,90 @@ module.exports = {
227
115
  none: 'none',
228
116
  },
229
117
  boxShadowColor: ({ theme }) => theme('colors'),
230
- caretColor: ({ theme }) => theme('colors'),
231
- accentColor: ({ theme }) => ({
232
- ...theme('colors'),
233
- auto: 'auto',
234
- }),
235
- contrast: {
118
+ brightness: {
236
119
  0: '0',
237
120
  50: '.5',
238
121
  75: '.75',
122
+ 90: '.9',
123
+ 95: '.95',
239
124
  100: '1',
125
+ 105: '1.05',
126
+ 110: '1.1',
240
127
  125: '1.25',
241
128
  150: '1.5',
242
129
  200: '2',
243
130
  },
131
+ caretColor: ({ theme }) => theme('colors'),
132
+ colors: ({ colors }) => ({
133
+ inherit: colors.inherit,
134
+ current: colors.current,
135
+ transparent: colors.transparent,
136
+ black: colors.black,
137
+ white: colors.white,
138
+ slate: colors.slate,
139
+ gray: colors.gray,
140
+ zinc: colors.zinc,
141
+ neutral: colors.neutral,
142
+ stone: colors.stone,
143
+ red: colors.red,
144
+ orange: colors.orange,
145
+ amber: colors.amber,
146
+ yellow: colors.yellow,
147
+ lime: colors.lime,
148
+ green: colors.green,
149
+ emerald: colors.emerald,
150
+ teal: colors.teal,
151
+ cyan: colors.cyan,
152
+ sky: colors.sky,
153
+ blue: colors.blue,
154
+ indigo: colors.indigo,
155
+ violet: colors.violet,
156
+ purple: colors.purple,
157
+ fuchsia: colors.fuchsia,
158
+ pink: colors.pink,
159
+ rose: colors.rose,
160
+ }),
161
+ columns: {
162
+ auto: 'auto',
163
+ 1: '1',
164
+ 2: '2',
165
+ 3: '3',
166
+ 4: '4',
167
+ 5: '5',
168
+ 6: '6',
169
+ 7: '7',
170
+ 8: '8',
171
+ 9: '9',
172
+ 10: '10',
173
+ 11: '11',
174
+ 12: '12',
175
+ '3xs': '16rem',
176
+ '2xs': '18rem',
177
+ xs: '20rem',
178
+ sm: '24rem',
179
+ md: '28rem',
180
+ lg: '32rem',
181
+ xl: '36rem',
182
+ '2xl': '42rem',
183
+ '3xl': '48rem',
184
+ '4xl': '56rem',
185
+ '5xl': '64rem',
186
+ '6xl': '72rem',
187
+ '7xl': '80rem',
188
+ },
244
189
  container: {},
245
190
  content: {
246
191
  none: 'none',
247
192
  },
193
+ contrast: {
194
+ 0: '0',
195
+ 50: '.5',
196
+ 75: '.75',
197
+ 100: '1',
198
+ 125: '1.25',
199
+ 150: '1.5',
200
+ 200: '2',
201
+ },
248
202
  cursor: {
249
203
  auto: 'auto',
250
204
  default: 'default',
@@ -299,22 +253,6 @@ module.exports = {
299
253
  none: 'none',
300
254
  ...theme('colors'),
301
255
  }),
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
256
  flex: {
319
257
  1: '1 1 0%',
320
258
  auto: '1 1 auto',
@@ -417,6 +355,33 @@ module.exports = {
417
355
  },
418
356
  gap: ({ theme }) => theme('spacing'),
419
357
  gradientColorStops: ({ theme }) => theme('colors'),
358
+ gradientColorStopPositions: {
359
+ '0%': '0%',
360
+ '5%': '5%',
361
+ '10%': '10%',
362
+ '15%': '15%',
363
+ '20%': '20%',
364
+ '25%': '25%',
365
+ '30%': '30%',
366
+ '35%': '35%',
367
+ '40%': '40%',
368
+ '45%': '45%',
369
+ '50%': '50%',
370
+ '55%': '55%',
371
+ '60%': '60%',
372
+ '65%': '65%',
373
+ '70%': '70%',
374
+ '75%': '75%',
375
+ '80%': '80%',
376
+ '85%': '85%',
377
+ '90%': '90%',
378
+ '95%': '95%',
379
+ '100%': '100%',
380
+ },
381
+ grayscale: {
382
+ 0: '0',
383
+ DEFAULT: '100%',
384
+ },
420
385
  gridAutoColumns: {
421
386
  auto: 'auto',
422
387
  min: 'min-content',
@@ -487,7 +452,7 @@ module.exports = {
487
452
  'span-6': 'span 6 / span 6',
488
453
  'span-full': '1 / -1',
489
454
  },
490
- gridRowStart: {
455
+ gridRowEnd: {
491
456
  auto: 'auto',
492
457
  1: '1',
493
458
  2: '2',
@@ -497,7 +462,7 @@ module.exports = {
497
462
  6: '6',
498
463
  7: '7',
499
464
  },
500
- gridRowEnd: {
465
+ gridRowStart: {
501
466
  auto: 'auto',
502
467
  1: '1',
503
468
  2: '2',
@@ -555,6 +520,14 @@ module.exports = {
555
520
  max: 'max-content',
556
521
  fit: 'fit-content',
557
522
  }),
523
+ hueRotate: {
524
+ 0: '0deg',
525
+ 15: '15deg',
526
+ 30: '30deg',
527
+ 60: '60deg',
528
+ 90: '90deg',
529
+ 180: '180deg',
530
+ },
558
531
  inset: ({ theme }) => ({
559
532
  auto: 'auto',
560
533
  ...theme('spacing'),
@@ -566,6 +539,10 @@ module.exports = {
566
539
  '3/4': '75%',
567
540
  full: '100%',
568
541
  }),
542
+ invert: {
543
+ 0: '0',
544
+ DEFAULT: '100%',
545
+ },
569
546
  keyframes: {
570
547
  spin: {
571
548
  to: {
@@ -623,12 +600,24 @@ module.exports = {
623
600
  disc: 'disc',
624
601
  decimal: 'decimal',
625
602
  },
603
+ listStyleImage: {
604
+ none: 'none',
605
+ },
626
606
  margin: ({ theme }) => ({
627
607
  auto: 'auto',
628
608
  ...theme('spacing'),
629
609
  }),
610
+ lineClamp: {
611
+ 1: '1',
612
+ 2: '2',
613
+ 3: '3',
614
+ 4: '4',
615
+ 5: '5',
616
+ 6: '6',
617
+ },
630
618
  maxHeight: ({ theme }) => ({
631
619
  ...theme('spacing'),
620
+ none: 'none',
632
621
  full: '100%',
633
622
  screen: '100vh',
634
623
  min: 'min-content',
@@ -716,9 +705,6 @@ module.exports = {
716
705
  11: '11',
717
706
  12: '12',
718
707
  },
719
- padding: ({ theme }) => theme('spacing'),
720
- placeholderColor: ({ theme }) => theme('colors'),
721
- placeholderOpacity: ({ theme }) => theme('opacity'),
722
708
  outlineColor: ({ theme }) => theme('colors'),
723
709
  outlineOffset: {
724
710
  0: '0px',
@@ -734,6 +720,9 @@ module.exports = {
734
720
  4: '4px',
735
721
  8: '8px',
736
722
  },
723
+ padding: ({ theme }) => theme('spacing'),
724
+ placeholderColor: ({ theme }) => theme('colors'),
725
+ placeholderOpacity: ({ theme }) => theme('opacity'),
737
726
  ringColor: ({ theme }) => ({
738
727
  DEFAULT: theme('colors.blue.500', '#3b82f6'),
739
728
  ...theme('colors'),
@@ -788,6 +777,13 @@ module.exports = {
788
777
  125: '1.25',
789
778
  150: '1.5',
790
779
  },
780
+ screens: {
781
+ sm: '640px',
782
+ md: '768px',
783
+ lg: '1024px',
784
+ xl: '1280px',
785
+ '2xl': '1536px',
786
+ },
791
787
  scrollMargin: ({ theme }) => ({
792
788
  ...theme('spacing'),
793
789
  }),
@@ -807,6 +803,43 @@ module.exports = {
807
803
  space: ({ theme }) => ({
808
804
  ...theme('spacing'),
809
805
  }),
806
+ spacing: {
807
+ px: '1px',
808
+ 0: '0px',
809
+ 0.5: '0.125rem',
810
+ 1: '0.25rem',
811
+ 1.5: '0.375rem',
812
+ 2: '0.5rem',
813
+ 2.5: '0.625rem',
814
+ 3: '0.75rem',
815
+ 3.5: '0.875rem',
816
+ 4: '1rem',
817
+ 5: '1.25rem',
818
+ 6: '1.5rem',
819
+ 7: '1.75rem',
820
+ 8: '2rem',
821
+ 9: '2.25rem',
822
+ 10: '2.5rem',
823
+ 11: '2.75rem',
824
+ 12: '3rem',
825
+ 14: '3.5rem',
826
+ 16: '4rem',
827
+ 20: '5rem',
828
+ 24: '6rem',
829
+ 28: '7rem',
830
+ 32: '8rem',
831
+ 36: '9rem',
832
+ 40: '10rem',
833
+ 44: '11rem',
834
+ 48: '12rem',
835
+ 52: '13rem',
836
+ 56: '14rem',
837
+ 60: '15rem',
838
+ 64: '16rem',
839
+ 72: '18rem',
840
+ 80: '20rem',
841
+ 96: '24rem',
842
+ },
810
843
  stroke: ({ theme }) => ({
811
844
  none: 'none',
812
845
  ...theme('colors'),
@@ -816,6 +849,8 @@ module.exports = {
816
849
  1: '1',
817
850
  2: '2',
818
851
  },
852
+ supports: {},
853
+ data: {},
819
854
  textColor: ({ theme }) => theme('colors'),
820
855
  textDecorationColor: ({ theme }) => theme('colors'),
821
856
  textDecorationThickness: {
@@ -827,6 +862,10 @@ module.exports = {
827
862
  4: '4px',
828
863
  8: '8px',
829
864
  },
865
+ textIndent: ({ theme }) => ({
866
+ ...theme('spacing'),
867
+ }),
868
+ textOpacity: ({ theme }) => theme('opacity'),
830
869
  textUnderlineOffset: {
831
870
  auto: 'auto',
832
871
  0: '0px',
@@ -835,10 +874,6 @@ module.exports = {
835
874
  4: '4px',
836
875
  8: '8px',
837
876
  },
838
- textIndent: ({ theme }) => ({
839
- ...theme('spacing'),
840
- }),
841
- textOpacity: ({ theme }) => theme('opacity'),
842
877
  transformOrigin: {
843
878
  center: 'center',
844
879
  top: 'top',
@@ -851,6 +886,7 @@ module.exports = {
851
886
  'top-left': 'top left',
852
887
  },
853
888
  transitionDelay: {
889
+ 0: '0s',
854
890
  75: '75ms',
855
891
  100: '100ms',
856
892
  150: '150ms',
@@ -862,6 +898,7 @@ module.exports = {
862
898
  },
863
899
  transitionDuration: {
864
900
  DEFAULT: '150ms',
901
+ 0: '0s',
865
902
  75: '75ms',
866
903
  100: '100ms',
867
904
  150: '150ms',
@@ -1,4 +1,3 @@
1
- /** @type {import('tailwindcss').Config} */
2
1
  module.exports = {
3
2
  content: [],
4
3
  theme: {
@@ -0,0 +1,6 @@
1
+ export default {
2
+ plugins: {
3
+ tailwindcss: {},
4
+ autoprefixer: {},
5
+ },
6
+ }
@@ -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,12 +46,10 @@ 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
55
  type PresetsConfig = Config[]
@@ -85,6 +83,7 @@ interface ThemeConfig {
85
83
  // Responsiveness
86
84
  screens: ResolvableTo<ScreensConfig>
87
85
  supports: ResolvableTo<Record<string, string>>
86
+ data: ResolvableTo<Record<string, string>>
88
87
 
89
88
  // Reusable base configs
90
89
  colors: ResolvableTo<RecursiveKeyValuePair>
@@ -164,7 +163,13 @@ interface ThemeConfig {
164
163
  string,
165
164
  | string
166
165
  | string[]
167
- | [fontFamily: string | string[], configuration: Partial<{ fontFeatureSettings: string }>]
166
+ | [
167
+ fontFamily: string | string[],
168
+ configuration: Partial<{
169
+ fontFeatureSettings: string
170
+ fontVariationSettings: string
171
+ }>
172
+ ]
168
173
  >
169
174
  >
170
175
  fontSize: ResolvableTo<
@@ -208,7 +213,7 @@ interface ThemeConfig {
208
213
  blur: ResolvableTo<KeyValuePair>
209
214
  brightness: ResolvableTo<KeyValuePair>
210
215
  contrast: ResolvableTo<KeyValuePair>
211
- dropShadow: ResolvableTo<KeyValuePair>
216
+ dropShadow: ResolvableTo<KeyValuePair<string, string | string[]>>
212
217
  grayscale: ResolvableTo<KeyValuePair>
213
218
  hueRotate: ResolvableTo<KeyValuePair>
214
219
  invert: ResolvableTo<KeyValuePair>
@@ -348,6 +353,7 @@ interface OptionalConfig {
348
353
  prefix: Partial<PrefixConfig>
349
354
  separator: Partial<SeparatorConfig>
350
355
  safelist: Partial<SafelistConfig>
356
+ blocklist: Partial<BlocklistConfig>
351
357
  presets: Partial<PresetsConfig>
352
358
  future: Partial<FutureConfig>
353
359
  experimental: Partial<ExperimentalConfig>