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