tailwindcss 0.0.0-insiders.7b94fea → 0.0.0-insiders.7d8eb21

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 (190) hide show
  1. package/CHANGELOG.md +588 -3
  2. package/LICENSE +1 -2
  3. package/README.md +15 -7
  4. package/colors.d.ts +3 -0
  5. package/colors.js +2 -1
  6. package/defaultConfig.d.ts +3 -0
  7. package/defaultConfig.js +2 -1
  8. package/defaultTheme.d.ts +4 -0
  9. package/defaultTheme.js +2 -1
  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 +362 -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 +12 -0
  19. package/lib/cli-peer-dependencies.js +20 -7
  20. package/lib/cli.js +108 -571
  21. package/lib/constants.js +27 -20
  22. package/lib/corePluginList.js +15 -4
  23. package/lib/corePlugins.js +2229 -1868
  24. package/lib/css/preflight.css +22 -9
  25. package/lib/featureFlags.js +39 -25
  26. package/lib/index.js +28 -12
  27. package/lib/lib/cacheInvalidation.js +90 -0
  28. package/lib/lib/collapseAdjacentRules.js +28 -10
  29. package/lib/lib/collapseDuplicateDeclarations.js +83 -0
  30. package/lib/lib/content.js +177 -0
  31. package/lib/lib/defaultExtractor.js +241 -0
  32. package/lib/lib/detectNesting.js +27 -3
  33. package/lib/lib/evaluateTailwindFunctions.js +117 -50
  34. package/lib/lib/expandApplyAtRules.js +457 -159
  35. package/lib/lib/expandTailwindAtRules.js +130 -127
  36. package/lib/lib/findAtConfigPath.js +44 -0
  37. package/lib/lib/generateRules.js +610 -141
  38. package/lib/lib/getModuleDependencies.js +11 -8
  39. package/lib/lib/normalizeTailwindDirectives.js +43 -32
  40. package/lib/lib/offsets.js +285 -0
  41. package/lib/lib/partitionApplyAtRules.js +56 -0
  42. package/lib/lib/regex.js +60 -0
  43. package/lib/lib/remap-bitfield.js +87 -0
  44. package/lib/lib/resolveDefaultsAtRules.js +114 -81
  45. package/lib/lib/setupContextUtils.js +718 -323
  46. package/lib/lib/setupTrackingContext.js +43 -71
  47. package/lib/lib/sharedState.js +50 -9
  48. package/lib/lib/substituteScreenAtRules.js +13 -8
  49. package/{nesting → lib/postcss-plugins/nesting}/README.md +2 -2
  50. package/lib/postcss-plugins/nesting/index.js +19 -0
  51. package/lib/postcss-plugins/nesting/plugin.js +87 -0
  52. package/lib/processTailwindFeatures.js +36 -21
  53. package/lib/public/colors.js +247 -245
  54. package/lib/public/create-plugin.js +6 -4
  55. package/lib/public/default-config.js +7 -5
  56. package/lib/public/default-theme.js +7 -5
  57. package/lib/public/resolve-config.js +8 -5
  58. package/lib/util/bigSign.js +4 -1
  59. package/lib/util/buildMediaQuery.js +18 -24
  60. package/lib/util/cloneDeep.js +7 -6
  61. package/lib/util/cloneNodes.js +21 -3
  62. package/lib/util/color.js +54 -40
  63. package/lib/util/configurePlugins.js +5 -2
  64. package/lib/util/createPlugin.js +6 -6
  65. package/lib/util/createUtilityPlugin.js +12 -14
  66. package/lib/util/dataTypes.js +164 -100
  67. package/lib/util/defaults.js +12 -3
  68. package/lib/util/escapeClassName.js +9 -6
  69. package/lib/util/escapeCommas.js +5 -2
  70. package/lib/util/flattenColorPalette.js +9 -12
  71. package/lib/util/formatVariantSelector.js +353 -0
  72. package/lib/util/getAllConfigs.js +29 -10
  73. package/lib/util/hashConfig.js +6 -3
  74. package/lib/util/isKeyframeRule.js +5 -2
  75. package/lib/util/isPlainObject.js +5 -2
  76. package/lib/util/isSyntacticallyValidPropertyValue.js +72 -0
  77. package/lib/util/log.js +22 -12
  78. package/lib/util/nameClass.js +20 -8
  79. package/lib/util/negateValue.js +23 -6
  80. package/lib/util/normalizeConfig.js +147 -60
  81. package/lib/util/normalizeScreens.js +170 -0
  82. package/lib/util/parseAnimationValue.js +42 -40
  83. package/lib/util/parseBoxShadowValue.js +84 -0
  84. package/lib/util/parseDependency.js +38 -56
  85. package/lib/util/parseGlob.js +34 -0
  86. package/lib/util/parseObjectStyles.js +11 -8
  87. package/lib/util/pluginUtils.js +182 -181
  88. package/lib/util/prefixSelector.js +27 -13
  89. package/lib/util/removeAlphaVariables.js +29 -0
  90. package/lib/util/resolveConfig.js +97 -73
  91. package/lib/util/resolveConfigPath.js +11 -9
  92. package/lib/util/responsive.js +8 -5
  93. package/lib/util/splitAtTopLevelOnly.js +43 -0
  94. package/lib/util/tap.js +4 -1
  95. package/lib/util/toColorValue.js +5 -3
  96. package/lib/util/toPath.js +24 -3
  97. package/lib/util/transformThemeValue.js +49 -31
  98. package/lib/util/validateConfig.js +24 -0
  99. package/lib/util/validateFormalSyntax.js +24 -0
  100. package/lib/util/withAlphaVariable.js +23 -15
  101. package/nesting/index.js +2 -12
  102. package/package.json +51 -50
  103. package/peers/index.js +15019 -12583
  104. package/plugin.d.ts +11 -0
  105. package/plugin.js +2 -1
  106. package/resolveConfig.d.ts +12 -0
  107. package/resolveConfig.js +2 -1
  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 +434 -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 +5 -0
  121. package/src/cli-peer-dependencies.js +7 -1
  122. package/src/cli.js +50 -577
  123. package/src/corePluginList.js +1 -1
  124. package/src/corePlugins.js +886 -598
  125. package/src/css/preflight.css +22 -9
  126. package/src/featureFlags.js +24 -8
  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 +213 -0
  132. package/src/lib/defaultExtractor.js +217 -0
  133. package/src/lib/detectNesting.js +30 -3
  134. package/src/lib/evaluateTailwindFunctions.js +84 -10
  135. package/src/lib/expandApplyAtRules.js +508 -153
  136. package/src/lib/expandTailwindAtRules.js +82 -79
  137. package/src/lib/findAtConfigPath.js +48 -0
  138. package/src/lib/generateRules.js +625 -111
  139. package/src/lib/normalizeTailwindDirectives.js +7 -1
  140. package/src/lib/offsets.js +351 -0
  141. package/src/lib/partitionApplyAtRules.js +52 -0
  142. package/src/lib/regex.js +74 -0
  143. package/src/lib/remap-bitfield.js +82 -0
  144. package/src/lib/resolveDefaultsAtRules.js +98 -60
  145. package/src/lib/setupContextUtils.js +666 -168
  146. package/src/lib/setupTrackingContext.js +16 -52
  147. package/src/lib/sharedState.js +44 -4
  148. package/src/lib/substituteScreenAtRules.js +6 -3
  149. package/src/postcss-plugins/nesting/README.md +42 -0
  150. package/src/postcss-plugins/nesting/index.js +13 -0
  151. package/src/postcss-plugins/nesting/plugin.js +80 -0
  152. package/src/processTailwindFeatures.js +17 -2
  153. package/src/util/buildMediaQuery.js +14 -16
  154. package/src/util/cloneNodes.js +19 -2
  155. package/src/util/color.js +31 -14
  156. package/src/util/createUtilityPlugin.js +2 -2
  157. package/src/util/dataTypes.js +86 -21
  158. package/src/util/defaults.js +6 -0
  159. package/src/util/formatVariantSelector.js +412 -0
  160. package/src/util/getAllConfigs.js +19 -0
  161. package/src/util/isSyntacticallyValidPropertyValue.js +61 -0
  162. package/src/util/log.js +11 -7
  163. package/src/util/nameClass.js +6 -2
  164. package/src/util/negateValue.js +14 -4
  165. package/src/util/normalizeConfig.js +72 -5
  166. package/src/util/normalizeScreens.js +140 -0
  167. package/src/util/parseBoxShadowValue.js +72 -0
  168. package/src/util/parseDependency.js +37 -42
  169. package/src/util/parseGlob.js +24 -0
  170. package/src/util/pluginUtils.js +169 -143
  171. package/src/util/prefixSelector.js +30 -13
  172. package/src/util/removeAlphaVariables.js +24 -0
  173. package/src/util/resolveConfig.js +81 -27
  174. package/src/util/splitAtTopLevelOnly.js +45 -0
  175. package/src/util/toPath.js +23 -1
  176. package/src/util/transformThemeValue.js +33 -8
  177. package/src/util/validateConfig.js +13 -0
  178. package/src/util/validateFormalSyntax.js +34 -0
  179. package/src/util/withAlphaVariable.js +1 -1
  180. package/stubs/defaultConfig.stub.js +246 -213
  181. package/stubs/simpleConfig.stub.js +1 -0
  182. package/types/config.d.ts +363 -0
  183. package/types/generated/.gitkeep +0 -0
  184. package/types/generated/colors.d.ts +276 -0
  185. package/types/generated/corePluginList.d.ts +1 -0
  186. package/types/generated/default-theme.d.ts +342 -0
  187. package/types/index.d.ts +7 -0
  188. package/lib/lib/setupWatchingContext.js +0 -284
  189. package/nesting/plugin.js +0 -41
  190. package/src/lib/setupWatchingContext.js +0 -304
@@ -1,109 +1,13 @@
1
+ /** @type {import('tailwindcss').Config} */
1
2
  module.exports = {
2
3
  content: [],
3
4
  presets: [],
4
5
  darkMode: 'media', // or 'class'
5
6
  theme: {
6
- screens: {
7
- sm: '640px',
8
- md: '768px',
9
- lg: '1024px',
10
- xl: '1280px',
11
- '2xl': '1536px',
12
- },
13
- colors: ({ colors }) => ({
14
- inherit: colors.inherit,
15
- current: colors.current,
16
- transparent: colors.transparent,
17
- black: colors.black,
18
- white: colors.white,
19
- slate: colors.slate,
20
- gray: colors.gray,
21
- zinc: colors.zinc,
22
- neutral: colors.neutral,
23
- stone: colors.stone,
24
- red: colors.red,
25
- orange: colors.orange,
26
- amber: colors.amber,
27
- yellow: colors.yellow,
28
- lime: colors.lime,
29
- green: colors.green,
30
- emerald: colors.emerald,
31
- teal: colors.teal,
32
- cyan: colors.cyan,
33
- sky: colors.sky,
34
- blue: colors.blue,
35
- indigo: colors.indigo,
36
- violet: colors.violet,
37
- purple: colors.purple,
38
- fuchsia: colors.fuchsia,
39
- pink: colors.pink,
40
- rose: colors.rose,
41
- }),
42
- columns: {
7
+ accentColor: ({ theme }) => ({
8
+ ...theme('colors'),
43
9
  auto: 'auto',
44
- 1: '1',
45
- 2: '2',
46
- 3: '3',
47
- 4: '4',
48
- 5: '5',
49
- 6: '6',
50
- 7: '7',
51
- 8: '8',
52
- 9: '9',
53
- 10: '10',
54
- 11: '11',
55
- 12: '12',
56
- '3xs': '16rem',
57
- '2xs': '18rem',
58
- xs: '20rem',
59
- sm: '24rem',
60
- md: '28rem',
61
- lg: '32rem',
62
- xl: '36rem',
63
- '2xl': '42rem',
64
- '3xl': '48rem',
65
- '4xl': '56rem',
66
- '5xl': '64rem',
67
- '6xl': '72rem',
68
- '7xl': '80rem',
69
- },
70
- spacing: {
71
- px: '1px',
72
- 0: '0px',
73
- 0.5: '0.125rem',
74
- 1: '0.25rem',
75
- 1.5: '0.375rem',
76
- 2: '0.5rem',
77
- 2.5: '0.625rem',
78
- 3: '0.75rem',
79
- 3.5: '0.875rem',
80
- 4: '1rem',
81
- 5: '1.25rem',
82
- 6: '1.5rem',
83
- 7: '1.75rem',
84
- 8: '2rem',
85
- 9: '2.25rem',
86
- 10: '2.5rem',
87
- 11: '2.75rem',
88
- 12: '3rem',
89
- 14: '3.5rem',
90
- 16: '4rem',
91
- 20: '5rem',
92
- 24: '6rem',
93
- 28: '7rem',
94
- 32: '8rem',
95
- 36: '9rem',
96
- 40: '10rem',
97
- 44: '11rem',
98
- 48: '12rem',
99
- 52: '13rem',
100
- 56: '14rem',
101
- 60: '15rem',
102
- 64: '16rem',
103
- 72: '18rem',
104
- 80: '20rem',
105
- 96: '24rem',
106
- },
10
+ }),
107
11
  animation: {
108
12
  none: 'none',
109
13
  spin: 'spin 1s linear infinite',
@@ -111,6 +15,16 @@ module.exports = {
111
15
  pulse: 'pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite',
112
16
  bounce: 'bounce 1s infinite',
113
17
  },
18
+ aria: {
19
+ checked: 'checked="true"',
20
+ disabled: 'disabled="true"',
21
+ expanded: 'expanded="true"',
22
+ hidden: 'hidden="true"',
23
+ pressed: 'pressed="true"',
24
+ readonly: 'readonly="true"',
25
+ required: 'required="true"',
26
+ selected: 'selected="true"',
27
+ },
114
28
  aspectRatio: {
115
29
  auto: 'auto',
116
30
  square: '1 / 1',
@@ -165,19 +79,6 @@ module.exports = {
165
79
  '2xl': '40px',
166
80
  '3xl': '64px',
167
81
  },
168
- brightness: {
169
- 0: '0',
170
- 50: '.5',
171
- 75: '.75',
172
- 90: '.9',
173
- 95: '.95',
174
- 100: '1',
175
- 105: '1.05',
176
- 110: '1.1',
177
- 125: '1.25',
178
- 150: '1.5',
179
- 200: '2',
180
- },
181
82
  borderColor: ({ theme }) => ({
182
83
  ...theme('colors'),
183
84
  DEFAULT: theme('colors.gray.200', 'currentColor'),
@@ -194,6 +95,9 @@ module.exports = {
194
95
  '3xl': '1.5rem',
195
96
  full: '9999px',
196
97
  },
98
+ borderSpacing: ({ theme }) => ({
99
+ ...theme('spacing'),
100
+ }),
197
101
  borderWidth: {
198
102
  DEFAULT: '1px',
199
103
  0: '0px',
@@ -203,32 +107,99 @@ module.exports = {
203
107
  },
204
108
  boxShadow: {
205
109
  sm: '0 1px 2px 0 rgb(0 0 0 / 0.05)',
206
- DEFAULT: '0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px 0 rgb(0 0 0 / 0.06)',
207
- md: '0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06)',
208
- lg: '0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05)',
209
- xl: '0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04)',
110
+ DEFAULT: '0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)',
111
+ md: '0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)',
112
+ lg: '0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)',
113
+ xl: '0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)',
210
114
  '2xl': '0 25px 50px -12px rgb(0 0 0 / 0.25)',
211
- inner: 'inset 0 2px 4px 0 rgb(0 0 0 / 0.06)',
115
+ inner: 'inset 0 2px 4px 0 rgb(0 0 0 / 0.05)',
212
116
  none: 'none',
213
117
  },
214
- caretColor: ({ theme }) => theme('colors'),
215
- accentColor: ({ theme }) => ({
216
- ...theme('colors'),
217
- auto: 'auto',
218
- }),
219
- contrast: {
118
+ boxShadowColor: ({ theme }) => theme('colors'),
119
+ brightness: {
220
120
  0: '0',
221
121
  50: '.5',
222
122
  75: '.75',
123
+ 90: '.9',
124
+ 95: '.95',
223
125
  100: '1',
126
+ 105: '1.05',
127
+ 110: '1.1',
224
128
  125: '1.25',
225
129
  150: '1.5',
226
130
  200: '2',
227
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
+ },
228
190
  container: {},
229
191
  content: {
230
192
  none: 'none',
231
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
+ },
232
203
  cursor: {
233
204
  auto: 'auto',
234
205
  default: 'default',
@@ -238,6 +209,34 @@ module.exports = {
238
209
  move: 'move',
239
210
  help: 'help',
240
211
  'not-allowed': 'not-allowed',
212
+ none: 'none',
213
+ 'context-menu': 'context-menu',
214
+ progress: 'progress',
215
+ cell: 'cell',
216
+ crosshair: 'crosshair',
217
+ 'vertical-text': 'vertical-text',
218
+ alias: 'alias',
219
+ copy: 'copy',
220
+ 'no-drop': 'no-drop',
221
+ grab: 'grab',
222
+ grabbing: 'grabbing',
223
+ 'all-scroll': 'all-scroll',
224
+ 'col-resize': 'col-resize',
225
+ 'row-resize': 'row-resize',
226
+ 'n-resize': 'n-resize',
227
+ 'e-resize': 'e-resize',
228
+ 's-resize': 's-resize',
229
+ 'w-resize': 'w-resize',
230
+ 'ne-resize': 'ne-resize',
231
+ 'nw-resize': 'nw-resize',
232
+ 'se-resize': 'se-resize',
233
+ 'sw-resize': 'sw-resize',
234
+ 'ew-resize': 'ew-resize',
235
+ 'ns-resize': 'ns-resize',
236
+ 'nesw-resize': 'nesw-resize',
237
+ 'nwse-resize': 'nwse-resize',
238
+ 'zoom-in': 'zoom-in',
239
+ 'zoom-out': 'zoom-out',
241
240
  },
242
241
  divideColor: ({ theme }) => theme('borderColor'),
243
242
  divideOpacity: ({ theme }) => theme('borderOpacity'),
@@ -251,28 +250,10 @@ module.exports = {
251
250
  '2xl': '0 25px 25px rgb(0 0 0 / 0.15)',
252
251
  none: '0 0 #0000',
253
252
  },
254
- fill: { current: 'currentColor' },
255
- grayscale: {
256
- 0: '0',
257
- DEFAULT: '100%',
258
- },
259
- hueRotate: {
260
- '-180': '-180deg',
261
- '-90': '-90deg',
262
- '-60': '-60deg',
263
- '-30': '-30deg',
264
- '-15': '-15deg',
265
- 0: '0deg',
266
- 15: '15deg',
267
- 30: '30deg',
268
- 60: '60deg',
269
- 90: '90deg',
270
- 180: '180deg',
271
- },
272
- invert: {
273
- 0: '0',
274
- DEFAULT: '100%',
275
- },
253
+ fill: ({ theme }) => ({
254
+ none: 'none',
255
+ ...theme('colors'),
256
+ }),
276
257
  flex: {
277
258
  1: '1 1 0%',
278
259
  auto: '1 1 auto',
@@ -375,6 +356,10 @@ module.exports = {
375
356
  },
376
357
  gap: ({ theme }) => theme('spacing'),
377
358
  gradientColorStops: ({ theme }) => theme('colors'),
359
+ grayscale: {
360
+ 0: '0',
361
+ DEFAULT: '100%',
362
+ },
378
363
  gridAutoColumns: {
379
364
  auto: 'auto',
380
365
  min: 'min-content',
@@ -445,7 +430,7 @@ module.exports = {
445
430
  'span-6': 'span 6 / span 6',
446
431
  'span-full': '1 / -1',
447
432
  },
448
- gridRowStart: {
433
+ gridRowEnd: {
449
434
  auto: 'auto',
450
435
  1: '1',
451
436
  2: '2',
@@ -455,7 +440,7 @@ module.exports = {
455
440
  6: '6',
456
441
  7: '7',
457
442
  },
458
- gridRowEnd: {
443
+ gridRowStart: {
459
444
  auto: 'auto',
460
445
  1: '1',
461
446
  2: '2',
@@ -509,11 +494,21 @@ module.exports = {
509
494
  '5/6': '83.333333%',
510
495
  full: '100%',
511
496
  screen: '100vh',
497
+ min: 'min-content',
498
+ max: 'max-content',
499
+ fit: 'fit-content',
512
500
  }),
513
- inset: ({ theme, negative }) => ({
501
+ hueRotate: {
502
+ 0: '0deg',
503
+ 15: '15deg',
504
+ 30: '30deg',
505
+ 60: '60deg',
506
+ 90: '90deg',
507
+ 180: '180deg',
508
+ },
509
+ inset: ({ theme }) => ({
514
510
  auto: 'auto',
515
511
  ...theme('spacing'),
516
- ...negative(theme('spacing')),
517
512
  '1/2': '50%',
518
513
  '1/3': '33.333333%',
519
514
  '2/3': '66.666667%',
@@ -521,14 +516,11 @@ module.exports = {
521
516
  '2/4': '50%',
522
517
  '3/4': '75%',
523
518
  full: '100%',
524
- '-1/2': '-50%',
525
- '-1/3': '-33.333333%',
526
- '-2/3': '-66.666667%',
527
- '-1/4': '-25%',
528
- '-2/4': '-50%',
529
- '-3/4': '-75%',
530
- '-full': '-100%',
531
519
  }),
520
+ invert: {
521
+ 0: '0',
522
+ DEFAULT: '100%',
523
+ },
532
524
  keyframes: {
533
525
  spin: {
534
526
  to: {
@@ -586,15 +578,17 @@ module.exports = {
586
578
  disc: 'disc',
587
579
  decimal: 'decimal',
588
580
  },
589
- margin: ({ theme, negative }) => ({
581
+ margin: ({ theme }) => ({
590
582
  auto: 'auto',
591
583
  ...theme('spacing'),
592
- ...negative(theme('spacing')),
593
584
  }),
594
585
  maxHeight: ({ theme }) => ({
595
586
  ...theme('spacing'),
596
587
  full: '100%',
597
588
  screen: '100vh',
589
+ min: 'min-content',
590
+ max: 'max-content',
591
+ fit: 'fit-content',
598
592
  }),
599
593
  maxWidth: ({ theme, breakpoints }) => ({
600
594
  none: 'none',
@@ -613,6 +607,7 @@ module.exports = {
613
607
  full: '100%',
614
608
  min: 'min-content',
615
609
  max: 'max-content',
610
+ fit: 'fit-content',
616
611
  prose: '65ch',
617
612
  ...breakpoints(theme('screens')),
618
613
  }),
@@ -620,12 +615,16 @@ module.exports = {
620
615
  0: '0px',
621
616
  full: '100%',
622
617
  screen: '100vh',
618
+ min: 'min-content',
619
+ max: 'max-content',
620
+ fit: 'fit-content',
623
621
  },
624
622
  minWidth: {
625
623
  0: '0px',
626
624
  full: '100%',
627
625
  min: 'min-content',
628
626
  max: 'max-content',
627
+ fit: 'fit-content',
629
628
  },
630
629
  objectPosition: {
631
630
  bottom: 'bottom',
@@ -672,10 +671,20 @@ module.exports = {
672
671
  11: '11',
673
672
  12: '12',
674
673
  },
675
- outline: {
676
- none: ['2px solid transparent', '2px'],
677
- white: ['2px dotted white', '2px'],
678
- black: ['2px dotted black', '2px'],
674
+ outlineColor: ({ theme }) => theme('colors'),
675
+ outlineOffset: {
676
+ 0: '0px',
677
+ 1: '1px',
678
+ 2: '2px',
679
+ 4: '4px',
680
+ 8: '8px',
681
+ },
682
+ outlineWidth: {
683
+ 0: '0px',
684
+ 1: '1px',
685
+ 2: '2px',
686
+ 4: '4px',
687
+ 8: '8px',
679
688
  },
680
689
  padding: ({ theme }) => theme('spacing'),
681
690
  placeholderColor: ({ theme }) => theme('colors'),
@@ -705,14 +714,6 @@ module.exports = {
705
714
  8: '8px',
706
715
  },
707
716
  rotate: {
708
- '-180': '-180deg',
709
- '-90': '-90deg',
710
- '-45': '-45deg',
711
- '-12': '-12deg',
712
- '-6': '-6deg',
713
- '-3': '-3deg',
714
- '-2': '-2deg',
715
- '-1': '-1deg',
716
717
  0: '0deg',
717
718
  1: '1deg',
718
719
  2: '2deg',
@@ -742,9 +743,15 @@ module.exports = {
742
743
  125: '1.25',
743
744
  150: '1.5',
744
745
  },
745
- scrollMargin: ({ theme, negative }) => ({
746
+ screens: {
747
+ sm: '640px',
748
+ md: '768px',
749
+ lg: '1024px',
750
+ xl: '1280px',
751
+ '2xl': '1536px',
752
+ },
753
+ scrollMargin: ({ theme }) => ({
746
754
  ...theme('spacing'),
747
- ...negative(theme('spacing')),
748
755
  }),
749
756
  scrollPadding: ({ theme }) => theme('spacing'),
750
757
  sepia: {
@@ -752,11 +759,6 @@ module.exports = {
752
759
  DEFAULT: '100%',
753
760
  },
754
761
  skew: {
755
- '-12': '-12deg',
756
- '-6': '-6deg',
757
- '-3': '-3deg',
758
- '-2': '-2deg',
759
- '-1': '-1deg',
760
762
  0: '0deg',
761
763
  1: '1deg',
762
764
  2: '2deg',
@@ -764,24 +766,80 @@ module.exports = {
764
766
  6: '6deg',
765
767
  12: '12deg',
766
768
  },
767
- space: ({ theme, negative }) => ({
769
+ space: ({ theme }) => ({
768
770
  ...theme('spacing'),
769
- ...negative(theme('spacing')),
770
771
  }),
771
- stroke: {
772
- current: 'currentColor',
772
+ spacing: {
773
+ px: '1px',
774
+ 0: '0px',
775
+ 0.5: '0.125rem',
776
+ 1: '0.25rem',
777
+ 1.5: '0.375rem',
778
+ 2: '0.5rem',
779
+ 2.5: '0.625rem',
780
+ 3: '0.75rem',
781
+ 3.5: '0.875rem',
782
+ 4: '1rem',
783
+ 5: '1.25rem',
784
+ 6: '1.5rem',
785
+ 7: '1.75rem',
786
+ 8: '2rem',
787
+ 9: '2.25rem',
788
+ 10: '2.5rem',
789
+ 11: '2.75rem',
790
+ 12: '3rem',
791
+ 14: '3.5rem',
792
+ 16: '4rem',
793
+ 20: '5rem',
794
+ 24: '6rem',
795
+ 28: '7rem',
796
+ 32: '8rem',
797
+ 36: '9rem',
798
+ 40: '10rem',
799
+ 44: '11rem',
800
+ 48: '12rem',
801
+ 52: '13rem',
802
+ 56: '14rem',
803
+ 60: '15rem',
804
+ 64: '16rem',
805
+ 72: '18rem',
806
+ 80: '20rem',
807
+ 96: '24rem',
773
808
  },
809
+ stroke: ({ theme }) => ({
810
+ none: 'none',
811
+ ...theme('colors'),
812
+ }),
774
813
  strokeWidth: {
775
814
  0: '0',
776
815
  1: '1',
777
816
  2: '2',
778
817
  },
818
+ supports: {},
819
+ data: {},
779
820
  textColor: ({ theme }) => theme('colors'),
780
- textIndent: ({ theme, negative }) => ({
821
+ textDecorationColor: ({ theme }) => theme('colors'),
822
+ textDecorationThickness: {
823
+ auto: 'auto',
824
+ 'from-font': 'from-font',
825
+ 0: '0px',
826
+ 1: '1px',
827
+ 2: '2px',
828
+ 4: '4px',
829
+ 8: '8px',
830
+ },
831
+ textIndent: ({ theme }) => ({
781
832
  ...theme('spacing'),
782
- ...negative(theme('spacing')),
783
833
  }),
784
834
  textOpacity: ({ theme }) => theme('opacity'),
835
+ textUnderlineOffset: {
836
+ auto: 'auto',
837
+ 0: '0px',
838
+ 1: '1px',
839
+ 2: '2px',
840
+ 4: '4px',
841
+ 8: '8px',
842
+ },
785
843
  transformOrigin: {
786
844
  center: 'center',
787
845
  top: 'top',
@@ -818,8 +876,8 @@ module.exports = {
818
876
  none: 'none',
819
877
  all: 'all',
820
878
  DEFAULT:
821
- 'background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter',
822
- colors: 'background-color, border-color, color, fill, stroke',
879
+ 'color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter',
880
+ colors: 'color, background-color, border-color, text-decoration-color, fill, stroke',
823
881
  opacity: 'opacity',
824
882
  shadow: 'box-shadow',
825
883
  transform: 'transform',
@@ -831,9 +889,8 @@ module.exports = {
831
889
  out: 'cubic-bezier(0, 0, 0.2, 1)',
832
890
  'in-out': 'cubic-bezier(0.4, 0, 0.2, 1)',
833
891
  },
834
- translate: ({ theme, negative }) => ({
892
+ translate: ({ theme }) => ({
835
893
  ...theme('spacing'),
836
- ...negative(theme('spacing')),
837
894
  '1/2': '50%',
838
895
  '1/3': '33.333333%',
839
896
  '2/3': '66.666667%',
@@ -841,13 +898,6 @@ module.exports = {
841
898
  '2/4': '50%',
842
899
  '3/4': '75%',
843
900
  full: '100%',
844
- '-1/2': '-50%',
845
- '-1/3': '-33.333333%',
846
- '-2/3': '-66.666667%',
847
- '-1/4': '-25%',
848
- '-2/4': '-50%',
849
- '-3/4': '-75%',
850
- '-full': '-100%',
851
901
  }),
852
902
  width: ({ theme }) => ({
853
903
  auto: 'auto',
@@ -882,6 +932,7 @@ module.exports = {
882
932
  screen: '100vw',
883
933
  min: 'min-content',
884
934
  max: 'max-content',
935
+ fit: 'fit-content',
885
936
  }),
886
937
  willChange: {
887
938
  auto: 'auto',
@@ -899,23 +950,5 @@ module.exports = {
899
950
  50: '50',
900
951
  },
901
952
  },
902
- variantOrder: [
903
- 'first',
904
- 'last',
905
- 'odd',
906
- 'even',
907
- 'visited',
908
- 'checked',
909
- 'empty',
910
- 'read-only',
911
- 'group-hover',
912
- 'group-focus',
913
- 'focus-within',
914
- 'hover',
915
- 'focus',
916
- 'focus-visible',
917
- 'active',
918
- 'disabled',
919
- ],
920
953
  plugins: [],
921
954
  }
@@ -1,3 +1,4 @@
1
+ /** @type {import('tailwindcss').Config} */
1
2
  module.exports = {
2
3
  content: [],
3
4
  theme: {