tailwindcss 0.0.0-insiders.f4635e0 → 0.0.0-insiders.f6eeed3
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.
- package/CHANGELOG.md +360 -1
- package/LICENSE +1 -2
- package/README.md +8 -4
- package/colors.d.ts +3 -0
- package/colors.js +2 -304
- package/defaultConfig.d.ts +3 -0
- package/defaultConfig.js +2 -4
- package/defaultTheme.d.ts +3 -0
- package/defaultTheme.js +2 -4
- package/lib/cli-peer-dependencies.js +5 -10
- package/lib/cli.js +702 -706
- package/lib/constants.js +23 -23
- package/lib/corePluginList.js +175 -4
- package/lib/corePlugins.js +3601 -2950
- package/lib/css/preflight.css +18 -5
- package/lib/featureFlags.js +44 -45
- package/lib/index.js +35 -25
- package/lib/lib/cacheInvalidation.js +69 -0
- package/lib/lib/collapseAdjacentRules.js +47 -36
- package/lib/lib/collapseDuplicateDeclarations.js +80 -0
- package/lib/lib/defaultExtractor.js +44 -0
- package/lib/lib/detectNesting.js +29 -16
- package/lib/lib/evaluateTailwindFunctions.js +134 -155
- package/lib/lib/expandApplyAtRules.js +391 -203
- package/lib/lib/expandTailwindAtRules.js +238 -236
- package/lib/lib/generateRules.js +594 -310
- package/lib/lib/getModuleDependencies.js +38 -43
- package/lib/lib/normalizeTailwindDirectives.js +74 -58
- package/lib/lib/partitionApplyAtRules.js +53 -0
- package/lib/lib/resolveDefaultsAtRules.js +129 -91
- package/lib/lib/setupContextUtils.js +806 -666
- package/lib/lib/setupTrackingContext.js +145 -164
- package/lib/lib/sharedState.js +40 -17
- package/lib/lib/substituteScreenAtRules.js +22 -26
- package/{nesting → lib/postcss-plugins/nesting}/README.md +0 -0
- package/lib/postcss-plugins/nesting/index.js +17 -0
- package/lib/postcss-plugins/nesting/plugin.js +85 -0
- package/lib/processTailwindFeatures.js +45 -46
- package/lib/public/colors.js +329 -0
- package/lib/public/create-plugin.js +13 -0
- package/lib/public/default-config.js +14 -0
- package/lib/public/default-theme.js +14 -0
- package/lib/public/resolve-config.js +19 -0
- package/lib/util/bigSign.js +3 -5
- package/lib/util/buildMediaQuery.js +15 -31
- package/lib/util/cloneDeep.js +14 -13
- package/lib/util/cloneNodes.js +21 -14
- package/lib/util/color.js +89 -63
- package/lib/util/configurePlugins.js +13 -14
- package/lib/util/createPlugin.js +20 -24
- package/lib/util/createUtilityPlugin.js +43 -45
- package/lib/util/dataTypes.js +235 -0
- package/lib/util/defaults.js +16 -14
- package/lib/util/escapeClassName.js +12 -14
- package/lib/util/escapeCommas.js +3 -5
- package/lib/util/flattenColorPalette.js +12 -10
- package/lib/util/formatVariantSelector.js +186 -0
- package/lib/util/getAllConfigs.js +23 -16
- package/lib/util/hashConfig.js +10 -10
- package/lib/util/isKeyframeRule.js +3 -5
- package/lib/util/isPlainObject.js +7 -10
- package/lib/util/isValidArbitraryValue.js +64 -0
- package/lib/util/log.js +45 -32
- package/lib/util/nameClass.js +22 -27
- package/lib/util/negateValue.js +14 -15
- package/lib/util/normalizeConfig.js +240 -0
- package/lib/util/normalizeScreens.js +59 -0
- package/lib/util/parseAnimationValue.js +83 -54
- package/lib/util/parseBoxShadowValue.js +117 -0
- package/lib/util/parseDependency.js +51 -62
- package/lib/util/parseObjectStyles.js +23 -20
- package/lib/util/pluginUtils.js +146 -285
- package/lib/util/prefixSelector.js +15 -18
- package/lib/util/resolveConfig.js +218 -252
- package/lib/util/resolveConfigPath.js +39 -47
- package/lib/util/responsive.js +12 -11
- package/lib/util/tap.js +4 -6
- package/lib/util/toColorValue.js +3 -5
- package/lib/util/toPath.js +9 -6
- package/lib/util/transformThemeValue.js +53 -26
- package/lib/util/withAlphaVariable.js +59 -57
- package/nesting/index.js +2 -12
- package/package.json +48 -60
- package/peers/index.js +72849 -84292
- package/plugin.d.ts +6 -0
- package/plugin.js +1 -2
- package/resolveConfig.js +2 -7
- package/scripts/create-plugin-list.js +2 -2
- package/scripts/generate-types.js +52 -0
- package/src/cli.js +115 -36
- package/src/corePluginList.js +1 -1
- package/src/corePlugins.js +2147 -1968
- package/src/css/preflight.css +18 -5
- package/src/featureFlags.js +14 -8
- package/src/index.js +14 -6
- package/src/lib/cacheInvalidation.js +52 -0
- package/src/lib/collapseAdjacentRules.js +16 -1
- package/src/lib/collapseDuplicateDeclarations.js +93 -0
- package/src/lib/defaultExtractor.js +50 -0
- package/src/lib/detectNesting.js +22 -3
- package/src/lib/evaluateTailwindFunctions.js +6 -3
- package/src/lib/expandApplyAtRules.js +285 -56
- package/src/lib/expandTailwindAtRules.js +87 -57
- package/src/lib/generateRules.js +364 -41
- package/src/lib/normalizeTailwindDirectives.js +10 -3
- package/src/lib/partitionApplyAtRules.js +52 -0
- package/src/lib/resolveDefaultsAtRules.js +81 -40
- package/src/lib/setupContextUtils.js +374 -201
- package/src/lib/setupTrackingContext.js +17 -16
- package/src/lib/sharedState.js +42 -7
- package/src/lib/substituteScreenAtRules.js +6 -3
- package/src/postcss-plugins/nesting/README.md +42 -0
- package/src/postcss-plugins/nesting/index.js +13 -0
- package/src/postcss-plugins/nesting/plugin.js +80 -0
- package/src/processTailwindFeatures.js +18 -3
- package/src/public/colors.js +300 -0
- package/src/public/create-plugin.js +2 -0
- package/src/public/default-config.js +4 -0
- package/src/public/default-theme.js +4 -0
- package/src/public/resolve-config.js +7 -0
- package/src/util/buildMediaQuery.js +14 -18
- package/src/util/cloneNodes.js +14 -1
- package/src/util/color.js +25 -10
- package/src/util/createUtilityPlugin.js +2 -11
- package/src/util/dataTypes.js +250 -0
- package/src/util/defaults.js +6 -0
- package/src/util/formatVariantSelector.js +196 -0
- package/src/util/isValidArbitraryValue.js +61 -0
- package/src/util/log.js +23 -22
- package/src/util/nameClass.js +2 -2
- package/src/util/negateValue.js +4 -2
- package/src/util/normalizeConfig.js +270 -0
- package/src/util/normalizeScreens.js +45 -0
- package/src/util/parseAnimationValue.js +7 -1
- package/src/util/parseBoxShadowValue.js +119 -0
- package/src/util/parseDependency.js +4 -0
- package/src/util/pluginUtils.js +101 -204
- package/src/util/prefixSelector.js +7 -8
- package/src/util/resolveConfig.js +53 -66
- package/src/util/toPath.js +23 -1
- package/src/util/transformThemeValue.js +22 -7
- package/src/util/withAlphaVariable.js +13 -8
- package/stubs/defaultConfig.stub.js +168 -99
- package/stubs/simpleConfig.stub.js +0 -1
- package/types/config.d.ts +323 -0
- package/types/generated/.gitkeep +0 -0
- package/types/generated/colors.d.ts +276 -0
- package/types/generated/corePluginList.d.ts +1 -0
- package/types/index.d.ts +1 -0
- package/types.d.ts +1 -0
- package/lib/lib/setupWatchingContext.js +0 -331
- package/nesting/plugin.js +0 -41
- package/src/lib/setupWatchingContext.js +0 -307
|
@@ -11,8 +11,9 @@ module.exports = {
|
|
|
11
11
|
'2xl': '1536px',
|
|
12
12
|
},
|
|
13
13
|
colors: ({ colors }) => ({
|
|
14
|
-
|
|
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
|
-
|
|
115
|
-
|
|
116
|
-
|
|
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',
|
|
@@ -193,6 +194,9 @@ module.exports = {
|
|
|
193
194
|
'3xl': '1.5rem',
|
|
194
195
|
full: '9999px',
|
|
195
196
|
},
|
|
197
|
+
borderSpacing: ({ theme }) => ({
|
|
198
|
+
...theme('spacing'),
|
|
199
|
+
}),
|
|
196
200
|
borderWidth: {
|
|
197
201
|
DEFAULT: '1px',
|
|
198
202
|
0: '0px',
|
|
@@ -202,16 +206,17 @@ module.exports = {
|
|
|
202
206
|
},
|
|
203
207
|
boxShadow: {
|
|
204
208
|
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
|
|
206
|
-
md: '0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -
|
|
207
|
-
lg: '0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -
|
|
208
|
-
xl: '0 20px 25px -5px rgb(0 0 0 / 0.1), 0
|
|
209
|
+
DEFAULT: '0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)',
|
|
210
|
+
md: '0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)',
|
|
211
|
+
lg: '0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)',
|
|
212
|
+
xl: '0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)',
|
|
209
213
|
'2xl': '0 25px 50px -12px rgb(0 0 0 / 0.25)',
|
|
210
|
-
inner: 'inset 0 2px 4px 0 rgb(0 0 0 / 0.
|
|
214
|
+
inner: 'inset 0 2px 4px 0 rgb(0 0 0 / 0.05)',
|
|
211
215
|
none: 'none',
|
|
212
216
|
},
|
|
213
|
-
|
|
214
|
-
|
|
217
|
+
boxShadowColor: ({ theme }) => theme('colors'),
|
|
218
|
+
caretColor: ({ theme }) => theme('colors'),
|
|
219
|
+
accentColor: ({ theme }) => ({
|
|
215
220
|
...theme('colors'),
|
|
216
221
|
auto: 'auto',
|
|
217
222
|
}),
|
|
@@ -237,10 +242,38 @@ module.exports = {
|
|
|
237
242
|
move: 'move',
|
|
238
243
|
help: 'help',
|
|
239
244
|
'not-allowed': 'not-allowed',
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
245
|
+
none: 'none',
|
|
246
|
+
'context-menu': 'context-menu',
|
|
247
|
+
progress: 'progress',
|
|
248
|
+
cell: 'cell',
|
|
249
|
+
crosshair: 'crosshair',
|
|
250
|
+
'vertical-text': 'vertical-text',
|
|
251
|
+
alias: 'alias',
|
|
252
|
+
copy: 'copy',
|
|
253
|
+
'no-drop': 'no-drop',
|
|
254
|
+
grab: 'grab',
|
|
255
|
+
grabbing: 'grabbing',
|
|
256
|
+
'all-scroll': 'all-scroll',
|
|
257
|
+
'col-resize': 'col-resize',
|
|
258
|
+
'row-resize': 'row-resize',
|
|
259
|
+
'n-resize': 'n-resize',
|
|
260
|
+
'e-resize': 'e-resize',
|
|
261
|
+
's-resize': 's-resize',
|
|
262
|
+
'w-resize': 'w-resize',
|
|
263
|
+
'ne-resize': 'ne-resize',
|
|
264
|
+
'nw-resize': 'nw-resize',
|
|
265
|
+
'se-resize': 'se-resize',
|
|
266
|
+
'sw-resize': 'sw-resize',
|
|
267
|
+
'ew-resize': 'ew-resize',
|
|
268
|
+
'ns-resize': 'ns-resize',
|
|
269
|
+
'nesw-resize': 'nesw-resize',
|
|
270
|
+
'nwse-resize': 'nwse-resize',
|
|
271
|
+
'zoom-in': 'zoom-in',
|
|
272
|
+
'zoom-out': 'zoom-out',
|
|
273
|
+
},
|
|
274
|
+
divideColor: ({ theme }) => theme('borderColor'),
|
|
275
|
+
divideOpacity: ({ theme }) => theme('borderOpacity'),
|
|
276
|
+
divideWidth: ({ theme }) => theme('borderWidth'),
|
|
244
277
|
dropShadow: {
|
|
245
278
|
sm: '0 1px 1px rgb(0 0 0 / 0.05)',
|
|
246
279
|
DEFAULT: ['0 1px 2px rgb(0 0 0 / 0.1)', '0 1px 1px rgb(0 0 0 / 0.06)'],
|
|
@@ -250,17 +283,12 @@ module.exports = {
|
|
|
250
283
|
'2xl': '0 25px 25px rgb(0 0 0 / 0.15)',
|
|
251
284
|
none: '0 0 #0000',
|
|
252
285
|
},
|
|
253
|
-
fill: {
|
|
286
|
+
fill: ({ theme }) => theme('colors'),
|
|
254
287
|
grayscale: {
|
|
255
288
|
0: '0',
|
|
256
289
|
DEFAULT: '100%',
|
|
257
290
|
},
|
|
258
291
|
hueRotate: {
|
|
259
|
-
'-180': '-180deg',
|
|
260
|
-
'-90': '-90deg',
|
|
261
|
-
'-60': '-60deg',
|
|
262
|
-
'-30': '-30deg',
|
|
263
|
-
'-15': '-15deg',
|
|
264
292
|
0: '0deg',
|
|
265
293
|
15: '15deg',
|
|
266
294
|
30: '30deg',
|
|
@@ -278,6 +306,37 @@ module.exports = {
|
|
|
278
306
|
initial: '0 1 auto',
|
|
279
307
|
none: 'none',
|
|
280
308
|
},
|
|
309
|
+
flexBasis: ({ theme }) => ({
|
|
310
|
+
auto: 'auto',
|
|
311
|
+
...theme('spacing'),
|
|
312
|
+
'1/2': '50%',
|
|
313
|
+
'1/3': '33.333333%',
|
|
314
|
+
'2/3': '66.666667%',
|
|
315
|
+
'1/4': '25%',
|
|
316
|
+
'2/4': '50%',
|
|
317
|
+
'3/4': '75%',
|
|
318
|
+
'1/5': '20%',
|
|
319
|
+
'2/5': '40%',
|
|
320
|
+
'3/5': '60%',
|
|
321
|
+
'4/5': '80%',
|
|
322
|
+
'1/6': '16.666667%',
|
|
323
|
+
'2/6': '33.333333%',
|
|
324
|
+
'3/6': '50%',
|
|
325
|
+
'4/6': '66.666667%',
|
|
326
|
+
'5/6': '83.333333%',
|
|
327
|
+
'1/12': '8.333333%',
|
|
328
|
+
'2/12': '16.666667%',
|
|
329
|
+
'3/12': '25%',
|
|
330
|
+
'4/12': '33.333333%',
|
|
331
|
+
'5/12': '41.666667%',
|
|
332
|
+
'6/12': '50%',
|
|
333
|
+
'7/12': '58.333333%',
|
|
334
|
+
'8/12': '66.666667%',
|
|
335
|
+
'9/12': '75%',
|
|
336
|
+
'10/12': '83.333333%',
|
|
337
|
+
'11/12': '91.666667%',
|
|
338
|
+
full: '100%',
|
|
339
|
+
}),
|
|
281
340
|
flexGrow: {
|
|
282
341
|
0: '0',
|
|
283
342
|
DEFAULT: '1',
|
|
@@ -341,8 +400,8 @@ module.exports = {
|
|
|
341
400
|
extrabold: '800',
|
|
342
401
|
black: '900',
|
|
343
402
|
},
|
|
344
|
-
gap: (theme) => theme('spacing'),
|
|
345
|
-
gradientColorStops: (theme) => theme('colors'),
|
|
403
|
+
gap: ({ theme }) => theme('spacing'),
|
|
404
|
+
gradientColorStops: ({ theme }) => theme('colors'),
|
|
346
405
|
gridAutoColumns: {
|
|
347
406
|
auto: 'auto',
|
|
348
407
|
min: 'min-content',
|
|
@@ -457,7 +516,7 @@ module.exports = {
|
|
|
457
516
|
5: 'repeat(5, minmax(0, 1fr))',
|
|
458
517
|
6: 'repeat(6, minmax(0, 1fr))',
|
|
459
518
|
},
|
|
460
|
-
height: (theme) => ({
|
|
519
|
+
height: ({ theme }) => ({
|
|
461
520
|
auto: 'auto',
|
|
462
521
|
...theme('spacing'),
|
|
463
522
|
'1/2': '50%',
|
|
@@ -477,11 +536,13 @@ module.exports = {
|
|
|
477
536
|
'5/6': '83.333333%',
|
|
478
537
|
full: '100%',
|
|
479
538
|
screen: '100vh',
|
|
539
|
+
min: 'min-content',
|
|
540
|
+
max: 'max-content',
|
|
541
|
+
fit: 'fit-content',
|
|
480
542
|
}),
|
|
481
|
-
inset: (
|
|
543
|
+
inset: ({ theme }) => ({
|
|
482
544
|
auto: 'auto',
|
|
483
545
|
...theme('spacing'),
|
|
484
|
-
...negative(theme('spacing')),
|
|
485
546
|
'1/2': '50%',
|
|
486
547
|
'1/3': '33.333333%',
|
|
487
548
|
'2/3': '66.666667%',
|
|
@@ -489,13 +550,6 @@ module.exports = {
|
|
|
489
550
|
'2/4': '50%',
|
|
490
551
|
'3/4': '75%',
|
|
491
552
|
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
553
|
}),
|
|
500
554
|
keyframes: {
|
|
501
555
|
spin: {
|
|
@@ -554,17 +608,19 @@ module.exports = {
|
|
|
554
608
|
disc: 'disc',
|
|
555
609
|
decimal: 'decimal',
|
|
556
610
|
},
|
|
557
|
-
margin: (
|
|
611
|
+
margin: ({ theme }) => ({
|
|
558
612
|
auto: 'auto',
|
|
559
613
|
...theme('spacing'),
|
|
560
|
-
...negative(theme('spacing')),
|
|
561
614
|
}),
|
|
562
|
-
maxHeight: (theme) => ({
|
|
615
|
+
maxHeight: ({ theme }) => ({
|
|
563
616
|
...theme('spacing'),
|
|
564
617
|
full: '100%',
|
|
565
618
|
screen: '100vh',
|
|
619
|
+
min: 'min-content',
|
|
620
|
+
max: 'max-content',
|
|
621
|
+
fit: 'fit-content',
|
|
566
622
|
}),
|
|
567
|
-
maxWidth: (theme,
|
|
623
|
+
maxWidth: ({ theme, breakpoints }) => ({
|
|
568
624
|
none: 'none',
|
|
569
625
|
0: '0rem',
|
|
570
626
|
xs: '20rem',
|
|
@@ -581,6 +637,7 @@ module.exports = {
|
|
|
581
637
|
full: '100%',
|
|
582
638
|
min: 'min-content',
|
|
583
639
|
max: 'max-content',
|
|
640
|
+
fit: 'fit-content',
|
|
584
641
|
prose: '65ch',
|
|
585
642
|
...breakpoints(theme('screens')),
|
|
586
643
|
}),
|
|
@@ -588,12 +645,16 @@ module.exports = {
|
|
|
588
645
|
0: '0px',
|
|
589
646
|
full: '100%',
|
|
590
647
|
screen: '100vh',
|
|
648
|
+
min: 'min-content',
|
|
649
|
+
max: 'max-content',
|
|
650
|
+
fit: 'fit-content',
|
|
591
651
|
},
|
|
592
652
|
minWidth: {
|
|
593
653
|
0: '0px',
|
|
594
654
|
full: '100%',
|
|
595
655
|
min: 'min-content',
|
|
596
656
|
max: 'max-content',
|
|
657
|
+
fit: 'fit-content',
|
|
597
658
|
},
|
|
598
659
|
objectPosition: {
|
|
599
660
|
bottom: 'bottom',
|
|
@@ -640,19 +701,29 @@ module.exports = {
|
|
|
640
701
|
11: '11',
|
|
641
702
|
12: '12',
|
|
642
703
|
},
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
704
|
+
padding: ({ theme }) => theme('spacing'),
|
|
705
|
+
placeholderColor: ({ theme }) => theme('colors'),
|
|
706
|
+
placeholderOpacity: ({ theme }) => theme('opacity'),
|
|
707
|
+
outlineColor: ({ theme }) => theme('colors'),
|
|
708
|
+
outlineOffset: {
|
|
709
|
+
0: '0px',
|
|
710
|
+
1: '1px',
|
|
711
|
+
2: '2px',
|
|
712
|
+
4: '4px',
|
|
713
|
+
8: '8px',
|
|
714
|
+
},
|
|
715
|
+
outlineWidth: {
|
|
716
|
+
0: '0px',
|
|
717
|
+
1: '1px',
|
|
718
|
+
2: '2px',
|
|
719
|
+
4: '4px',
|
|
720
|
+
8: '8px',
|
|
647
721
|
},
|
|
648
|
-
|
|
649
|
-
placeholderColor: (theme) => theme('colors'),
|
|
650
|
-
placeholderOpacity: (theme) => theme('opacity'),
|
|
651
|
-
ringColor: (theme) => ({
|
|
722
|
+
ringColor: ({ theme }) => ({
|
|
652
723
|
DEFAULT: theme('colors.blue.500', '#3b82f6'),
|
|
653
724
|
...theme('colors'),
|
|
654
725
|
}),
|
|
655
|
-
ringOffsetColor: (theme) => theme('colors'),
|
|
726
|
+
ringOffsetColor: ({ theme }) => theme('colors'),
|
|
656
727
|
ringOffsetWidth: {
|
|
657
728
|
0: '0px',
|
|
658
729
|
1: '1px',
|
|
@@ -660,7 +731,7 @@ module.exports = {
|
|
|
660
731
|
4: '4px',
|
|
661
732
|
8: '8px',
|
|
662
733
|
},
|
|
663
|
-
ringOpacity: (theme) => ({
|
|
734
|
+
ringOpacity: ({ theme }) => ({
|
|
664
735
|
DEFAULT: '0.5',
|
|
665
736
|
...theme('opacity'),
|
|
666
737
|
}),
|
|
@@ -673,14 +744,6 @@ module.exports = {
|
|
|
673
744
|
8: '8px',
|
|
674
745
|
},
|
|
675
746
|
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
747
|
0: '0deg',
|
|
685
748
|
1: '1deg',
|
|
686
749
|
2: '2deg',
|
|
@@ -710,16 +773,15 @@ module.exports = {
|
|
|
710
773
|
125: '1.25',
|
|
711
774
|
150: '1.5',
|
|
712
775
|
},
|
|
776
|
+
scrollMargin: ({ theme }) => ({
|
|
777
|
+
...theme('spacing'),
|
|
778
|
+
}),
|
|
779
|
+
scrollPadding: ({ theme }) => theme('spacing'),
|
|
713
780
|
sepia: {
|
|
714
781
|
0: '0',
|
|
715
782
|
DEFAULT: '100%',
|
|
716
783
|
},
|
|
717
784
|
skew: {
|
|
718
|
-
'-12': '-12deg',
|
|
719
|
-
'-6': '-6deg',
|
|
720
|
-
'-3': '-3deg',
|
|
721
|
-
'-2': '-2deg',
|
|
722
|
-
'-1': '-1deg',
|
|
723
785
|
0: '0deg',
|
|
724
786
|
1: '1deg',
|
|
725
787
|
2: '2deg',
|
|
@@ -727,24 +789,38 @@ module.exports = {
|
|
|
727
789
|
6: '6deg',
|
|
728
790
|
12: '12deg',
|
|
729
791
|
},
|
|
730
|
-
space: (
|
|
792
|
+
space: ({ theme }) => ({
|
|
731
793
|
...theme('spacing'),
|
|
732
|
-
...negative(theme('spacing')),
|
|
733
794
|
}),
|
|
734
|
-
stroke: {
|
|
735
|
-
current: 'currentColor',
|
|
736
|
-
},
|
|
795
|
+
stroke: ({ theme }) => theme('colors'),
|
|
737
796
|
strokeWidth: {
|
|
738
797
|
0: '0',
|
|
739
798
|
1: '1',
|
|
740
799
|
2: '2',
|
|
741
800
|
},
|
|
742
|
-
textColor: (theme) => theme('colors'),
|
|
743
|
-
|
|
801
|
+
textColor: ({ theme }) => theme('colors'),
|
|
802
|
+
textDecorationColor: ({ theme }) => theme('colors'),
|
|
803
|
+
textDecorationThickness: {
|
|
804
|
+
auto: 'auto',
|
|
805
|
+
'from-font': 'from-font',
|
|
806
|
+
0: '0px',
|
|
807
|
+
1: '1px',
|
|
808
|
+
2: '2px',
|
|
809
|
+
4: '4px',
|
|
810
|
+
8: '8px',
|
|
811
|
+
},
|
|
812
|
+
textUnderlineOffset: {
|
|
813
|
+
auto: 'auto',
|
|
814
|
+
0: '0px',
|
|
815
|
+
1: '1px',
|
|
816
|
+
2: '2px',
|
|
817
|
+
4: '4px',
|
|
818
|
+
8: '8px',
|
|
819
|
+
},
|
|
820
|
+
textIndent: ({ theme }) => ({
|
|
744
821
|
...theme('spacing'),
|
|
745
|
-
...negative(theme('spacing')),
|
|
746
822
|
}),
|
|
747
|
-
textOpacity: (theme) => theme('opacity'),
|
|
823
|
+
textOpacity: ({ theme }) => theme('opacity'),
|
|
748
824
|
transformOrigin: {
|
|
749
825
|
center: 'center',
|
|
750
826
|
top: 'top',
|
|
@@ -781,8 +857,8 @@ module.exports = {
|
|
|
781
857
|
none: 'none',
|
|
782
858
|
all: 'all',
|
|
783
859
|
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',
|
|
860
|
+
'color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter',
|
|
861
|
+
colors: 'color, background-color, border-color, text-decoration-color, fill, stroke',
|
|
786
862
|
opacity: 'opacity',
|
|
787
863
|
shadow: 'box-shadow',
|
|
788
864
|
transform: 'transform',
|
|
@@ -794,9 +870,8 @@ module.exports = {
|
|
|
794
870
|
out: 'cubic-bezier(0, 0, 0.2, 1)',
|
|
795
871
|
'in-out': 'cubic-bezier(0.4, 0, 0.2, 1)',
|
|
796
872
|
},
|
|
797
|
-
translate: (
|
|
873
|
+
translate: ({ theme }) => ({
|
|
798
874
|
...theme('spacing'),
|
|
799
|
-
...negative(theme('spacing')),
|
|
800
875
|
'1/2': '50%',
|
|
801
876
|
'1/3': '33.333333%',
|
|
802
877
|
'2/3': '66.666667%',
|
|
@@ -804,15 +879,8 @@ module.exports = {
|
|
|
804
879
|
'2/4': '50%',
|
|
805
880
|
'3/4': '75%',
|
|
806
881
|
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
882
|
}),
|
|
815
|
-
width: (theme) => ({
|
|
883
|
+
width: ({ theme }) => ({
|
|
816
884
|
auto: 'auto',
|
|
817
885
|
...theme('spacing'),
|
|
818
886
|
'1/2': '50%',
|
|
@@ -845,12 +913,13 @@ module.exports = {
|
|
|
845
913
|
screen: '100vw',
|
|
846
914
|
min: 'min-content',
|
|
847
915
|
max: 'max-content',
|
|
916
|
+
fit: 'fit-content',
|
|
848
917
|
}),
|
|
849
918
|
willChange: {
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
919
|
+
auto: 'auto',
|
|
920
|
+
scroll: 'scroll-position',
|
|
921
|
+
contents: 'contents',
|
|
922
|
+
transform: 'transform',
|
|
854
923
|
},
|
|
855
924
|
zIndex: {
|
|
856
925
|
auto: 'auto',
|