tailwindcss 0.0.0-insiders.f9fb2ce → 0.0.0-insiders.fa3f45f

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 (185) hide show
  1. package/LICENSE +1 -2
  2. package/README.md +18 -15
  3. package/dist/chunk-4V6TN65S.mjs +35 -0
  4. package/dist/chunk-G32FJCSR.mjs +1 -0
  5. package/dist/chunk-HTB5LLOP.mjs +1 -0
  6. package/dist/colors-b_6i0Oi7.d.ts +295 -0
  7. package/dist/colors.d.mts +295 -0
  8. package/dist/colors.d.ts +5 -0
  9. package/dist/colors.js +1 -0
  10. package/dist/colors.mjs +1 -0
  11. package/dist/default-theme.d.mts +1147 -0
  12. package/dist/default-theme.d.ts +1147 -0
  13. package/dist/default-theme.js +1 -0
  14. package/dist/default-theme.mjs +1 -0
  15. package/dist/flatten-color-palette.d.mts +6 -0
  16. package/dist/flatten-color-palette.d.ts +6 -0
  17. package/dist/flatten-color-palette.js +3 -0
  18. package/dist/flatten-color-palette.mjs +1 -0
  19. package/dist/lib.d.mts +351 -0
  20. package/dist/lib.d.ts +3 -0
  21. package/dist/lib.js +35 -0
  22. package/dist/lib.mjs +1 -0
  23. package/dist/plugin.d.mts +11 -0
  24. package/dist/plugin.d.ts +131 -0
  25. package/dist/plugin.js +1 -0
  26. package/dist/plugin.mjs +1 -0
  27. package/dist/resolve-config-BIFUA2FY.d.ts +29 -0
  28. package/dist/resolve-config-QUZ9b-Gn.d.mts +190 -0
  29. package/dist/types-WlZgYgM8.d.mts +125 -0
  30. package/index.css +896 -0
  31. package/package.json +76 -100
  32. package/preflight.css +393 -0
  33. package/theme.css +462 -0
  34. package/CHANGELOG.md +0 -1816
  35. package/base.css +0 -1
  36. package/colors.js +0 -1
  37. package/components.css +0 -1
  38. package/defaultConfig.js +0 -1
  39. package/defaultTheme.js +0 -1
  40. package/lib/cli-peer-dependencies.js +0 -15
  41. package/lib/cli.js +0 -706
  42. package/lib/constants.js +0 -37
  43. package/lib/corePluginList.js +0 -174
  44. package/lib/corePlugins.js +0 -3562
  45. package/lib/css/LICENSE +0 -25
  46. package/lib/css/preflight.css +0 -366
  47. package/lib/featureFlags.js +0 -60
  48. package/lib/index.js +0 -32
  49. package/lib/lib/collapseAdjacentRules.js +0 -41
  50. package/lib/lib/collapseDuplicateDeclarations.js +0 -29
  51. package/lib/lib/detectNesting.js +0 -19
  52. package/lib/lib/evaluateTailwindFunctions.js +0 -167
  53. package/lib/lib/expandApplyAtRules.js +0 -228
  54. package/lib/lib/expandTailwindAtRules.js +0 -245
  55. package/lib/lib/generateRules.js +0 -493
  56. package/lib/lib/getModuleDependencies.js +0 -48
  57. package/lib/lib/normalizeTailwindDirectives.js +0 -76
  58. package/lib/lib/resolveDefaultsAtRules.js +0 -125
  59. package/lib/lib/setupContextUtils.js +0 -860
  60. package/lib/lib/setupTrackingContext.js +0 -170
  61. package/lib/lib/setupWatchingContext.js +0 -288
  62. package/lib/lib/sharedState.js +0 -19
  63. package/lib/lib/substituteScreenAtRules.js +0 -24
  64. package/lib/processTailwindFeatures.js +0 -51
  65. package/lib/public/colors.js +0 -329
  66. package/lib/public/create-plugin.js +0 -13
  67. package/lib/public/default-config.js +0 -14
  68. package/lib/public/default-theme.js +0 -14
  69. package/lib/public/resolve-config.js +0 -19
  70. package/lib/util/bigSign.js +0 -8
  71. package/lib/util/buildMediaQuery.js +0 -31
  72. package/lib/util/cloneDeep.js +0 -19
  73. package/lib/util/cloneNodes.js +0 -14
  74. package/lib/util/color.js +0 -84
  75. package/lib/util/configurePlugins.js +0 -18
  76. package/lib/util/createPlugin.js +0 -30
  77. package/lib/util/createUtilityPlugin.js +0 -53
  78. package/lib/util/dataTypes.js +0 -211
  79. package/lib/util/defaults.js +0 -16
  80. package/lib/util/escapeClassName.js +0 -19
  81. package/lib/util/escapeCommas.js +0 -8
  82. package/lib/util/flattenColorPalette.js +0 -19
  83. package/lib/util/formatVariantSelector.js +0 -102
  84. package/lib/util/getAllConfigs.js +0 -29
  85. package/lib/util/hashConfig.js +0 -16
  86. package/lib/util/isKeyframeRule.js +0 -8
  87. package/lib/util/isPlainObject.js +0 -12
  88. package/lib/util/log.js +0 -47
  89. package/lib/util/nameClass.js +0 -31
  90. package/lib/util/negateValue.js +0 -19
  91. package/lib/util/normalizeConfig.js +0 -208
  92. package/lib/util/parseAnimationValue.js +0 -89
  93. package/lib/util/parseDependency.js +0 -63
  94. package/lib/util/parseObjectStyles.js +0 -31
  95. package/lib/util/pluginUtils.js +0 -185
  96. package/lib/util/prefixSelector.js +0 -21
  97. package/lib/util/resolveConfig.js +0 -234
  98. package/lib/util/resolveConfigPath.js +0 -52
  99. package/lib/util/responsive.js +0 -19
  100. package/lib/util/tap.js +0 -9
  101. package/lib/util/toColorValue.js +0 -9
  102. package/lib/util/toPath.js +0 -9
  103. package/lib/util/transformThemeValue.js +0 -63
  104. package/lib/util/withAlphaVariable.js +0 -67
  105. package/nesting/README.md +0 -42
  106. package/nesting/index.js +0 -12
  107. package/nesting/plugin.js +0 -41
  108. package/peers/index.js +0 -75407
  109. package/plugin.js +0 -1
  110. package/prettier.config.js +0 -19
  111. package/resolveConfig.js +0 -1
  112. package/screens.css +0 -1
  113. package/scripts/create-plugin-list.js +0 -10
  114. package/scripts/install-integrations.js +0 -27
  115. package/scripts/rebuildFixtures.js +0 -68
  116. package/src/cli-peer-dependencies.js +0 -9
  117. package/src/cli.js +0 -768
  118. package/src/constants.js +0 -17
  119. package/src/corePluginList.js +0 -1
  120. package/src/corePlugins.js +0 -2291
  121. package/src/css/LICENSE +0 -25
  122. package/src/css/preflight.css +0 -366
  123. package/src/featureFlags.js +0 -54
  124. package/src/index.js +0 -34
  125. package/src/lib/collapseAdjacentRules.js +0 -39
  126. package/src/lib/collapseDuplicateDeclarations.js +0 -28
  127. package/src/lib/detectNesting.js +0 -20
  128. package/src/lib/evaluateTailwindFunctions.js +0 -195
  129. package/src/lib/expandApplyAtRules.js +0 -251
  130. package/src/lib/expandTailwindAtRules.js +0 -252
  131. package/src/lib/generateRules.js +0 -495
  132. package/src/lib/getModuleDependencies.js +0 -39
  133. package/src/lib/normalizeTailwindDirectives.js +0 -78
  134. package/src/lib/resolveDefaultsAtRules.js +0 -121
  135. package/src/lib/setupContextUtils.js +0 -853
  136. package/src/lib/setupTrackingContext.js +0 -182
  137. package/src/lib/setupWatchingContext.js +0 -311
  138. package/src/lib/sharedState.js +0 -10
  139. package/src/lib/substituteScreenAtRules.js +0 -16
  140. package/src/processTailwindFeatures.js +0 -48
  141. package/src/public/colors.js +0 -300
  142. package/src/public/create-plugin.js +0 -2
  143. package/src/public/default-config.js +0 -4
  144. package/src/public/default-theme.js +0 -4
  145. package/src/public/resolve-config.js +0 -7
  146. package/src/util/bigSign.js +0 -3
  147. package/src/util/buildMediaQuery.js +0 -24
  148. package/src/util/cloneDeep.js +0 -11
  149. package/src/util/cloneNodes.js +0 -11
  150. package/src/util/color.js +0 -56
  151. package/src/util/configurePlugins.js +0 -23
  152. package/src/util/createPlugin.js +0 -27
  153. package/src/util/createUtilityPlugin.js +0 -37
  154. package/src/util/dataTypes.js +0 -230
  155. package/src/util/defaults.js +0 -11
  156. package/src/util/escapeClassName.js +0 -8
  157. package/src/util/escapeCommas.js +0 -3
  158. package/src/util/flattenColorPalette.js +0 -13
  159. package/src/util/formatVariantSelector.js +0 -105
  160. package/src/util/getAllConfigs.js +0 -19
  161. package/src/util/hashConfig.js +0 -5
  162. package/src/util/isKeyframeRule.js +0 -3
  163. package/src/util/isPlainObject.js +0 -8
  164. package/src/util/log.js +0 -25
  165. package/src/util/nameClass.js +0 -26
  166. package/src/util/negateValue.js +0 -16
  167. package/src/util/normalizeConfig.js +0 -249
  168. package/src/util/parseAnimationValue.js +0 -68
  169. package/src/util/parseDependency.js +0 -49
  170. package/src/util/parseObjectStyles.js +0 -19
  171. package/src/util/pluginUtils.js +0 -190
  172. package/src/util/prefixSelector.js +0 -12
  173. package/src/util/resolveConfig.js +0 -229
  174. package/src/util/resolveConfigPath.js +0 -55
  175. package/src/util/responsive.js +0 -10
  176. package/src/util/tap.js +0 -4
  177. package/src/util/toColorValue.js +0 -3
  178. package/src/util/toPath.js +0 -4
  179. package/src/util/transformThemeValue.js +0 -52
  180. package/src/util/withAlphaVariable.js +0 -49
  181. package/stubs/defaultConfig.stub.js +0 -932
  182. package/stubs/defaultPostCssConfig.stub.js +0 -6
  183. package/stubs/simpleConfig.stub.js +0 -7
  184. package/tailwind.css +0 -5
  185. package/variants.css +0 -1
@@ -1,2291 +0,0 @@
1
- import fs from 'fs'
2
- import * as path from 'path'
3
- import postcss from 'postcss'
4
- import createUtilityPlugin from './util/createUtilityPlugin'
5
- import buildMediaQuery from './util/buildMediaQuery'
6
- import parseAnimationValue from './util/parseAnimationValue'
7
- import flattenColorPalette from './util/flattenColorPalette'
8
- import withAlphaVariable, { withAlphaValue } from './util/withAlphaVariable'
9
- import toColorValue from './util/toColorValue'
10
- import isPlainObject from './util/isPlainObject'
11
- import transformThemeValue from './util/transformThemeValue'
12
- import { version as tailwindVersion } from '../package.json'
13
- import log from './util/log'
14
-
15
- export let variantPlugins = {
16
- pseudoElementVariants: ({ addVariant }) => {
17
- addVariant('first-letter', '&::first-letter')
18
- addVariant('first-line', '&::first-line')
19
-
20
- addVariant('marker', ['& *::marker', '&::marker'])
21
- addVariant('selection', ['& *::selection', '&::selection'])
22
-
23
- addVariant('file', '&::file-selector-button')
24
-
25
- addVariant('before', ({ container }) => {
26
- container.walkRules((rule) => {
27
- let foundContent = false
28
- rule.walkDecls('content', () => {
29
- foundContent = true
30
- })
31
-
32
- if (!foundContent) {
33
- rule.prepend(postcss.decl({ prop: 'content', value: 'var(--tw-content)' }))
34
- }
35
- })
36
-
37
- return '&::before'
38
- })
39
-
40
- addVariant('after', ({ container }) => {
41
- container.walkRules((rule) => {
42
- let foundContent = false
43
- rule.walkDecls('content', () => {
44
- foundContent = true
45
- })
46
-
47
- if (!foundContent) {
48
- rule.prepend(postcss.decl({ prop: 'content', value: 'var(--tw-content)' }))
49
- }
50
- })
51
-
52
- return '&::after'
53
- })
54
- },
55
-
56
- pseudoClassVariants: ({ addVariant }) => {
57
- let pseudoVariants = [
58
- // Positional
59
- ['first', ':first-child'],
60
- ['last', ':last-child'],
61
- ['only', ':only-child'],
62
- ['odd', ':nth-child(odd)'],
63
- ['even', ':nth-child(even)'],
64
- 'first-of-type',
65
- 'last-of-type',
66
- 'only-of-type',
67
-
68
- // State
69
- 'visited',
70
- 'target',
71
- ['open', '[open]'],
72
-
73
- // Forms
74
- 'default',
75
- 'checked',
76
- 'indeterminate',
77
- 'placeholder-shown',
78
- 'autofill',
79
- 'required',
80
- 'valid',
81
- 'invalid',
82
- 'in-range',
83
- 'out-of-range',
84
- 'read-only',
85
-
86
- // Content
87
- 'empty',
88
-
89
- // Interactive
90
- 'focus-within',
91
- 'hover',
92
- 'focus',
93
- 'focus-visible',
94
- 'active',
95
- 'disabled',
96
- ].map((variant) => (Array.isArray(variant) ? variant : [variant, `:${variant}`]))
97
-
98
- for (let [variantName, state] of pseudoVariants) {
99
- addVariant(variantName, `&${state}`)
100
- }
101
-
102
- for (let [variantName, state] of pseudoVariants) {
103
- addVariant(`group-${variantName}`, `:merge(.group)${state} &`)
104
- }
105
-
106
- for (let [variantName, state] of pseudoVariants) {
107
- addVariant(`peer-${variantName}`, `:merge(.peer)${state} ~ &`)
108
- }
109
- },
110
-
111
- directionVariants: ({ addVariant }) => {
112
- addVariant('ltr', () => {
113
- log.warn('rtl-experimental', [
114
- 'The RTL features in Tailwind CSS are currently in preview.',
115
- 'Preview features are not covered by semver, and may be improved in breaking ways at any time.',
116
- ])
117
-
118
- return '[dir="ltr"] &'
119
- })
120
-
121
- addVariant('rtl', () => {
122
- log.warn('rtl-experimental', [
123
- 'The RTL features in Tailwind CSS are currently in preview.',
124
- 'Preview features are not covered by semver, and may be improved in breaking ways at any time.',
125
- ])
126
-
127
- return '[dir="rtl"] &'
128
- })
129
- },
130
-
131
- reducedMotionVariants: ({ addVariant }) => {
132
- addVariant('motion-safe', '@media (prefers-reduced-motion: no-preference)')
133
- addVariant('motion-reduce', '@media (prefers-reduced-motion: reduce)')
134
- },
135
-
136
- darkVariants: ({ config, addVariant }) => {
137
- let mode = config('darkMode', 'media')
138
- if (mode === false) {
139
- mode = 'media'
140
- log.warn('darkmode-false', [
141
- 'The `darkMode` option in your Tailwind CSS configuration is set to `false`, which now behaves the same as `media`.',
142
- 'Change `darkMode` to `media` or remove it entirely.',
143
- ])
144
- }
145
-
146
- if (mode === 'class') {
147
- addVariant('dark', '.dark &')
148
- } else if (mode === 'media') {
149
- addVariant('dark', '@media (prefers-color-scheme: dark)')
150
- }
151
- },
152
-
153
- printVariant: ({ addVariant }) => {
154
- addVariant('print', '@media print')
155
- },
156
-
157
- screenVariants: ({ theme, addVariant }) => {
158
- for (let screen in theme('screens')) {
159
- let size = theme('screens')[screen]
160
- let query = buildMediaQuery(size)
161
-
162
- addVariant(screen, `@media ${query}`)
163
- }
164
- },
165
- }
166
-
167
- export let corePlugins = {
168
- preflight: ({ addBase }) => {
169
- let preflightStyles = postcss.parse(
170
- fs.readFileSync(path.join(__dirname, './css/preflight.css'), 'utf8')
171
- )
172
-
173
- addBase([
174
- postcss.comment({
175
- text: `! tailwindcss v${tailwindVersion} | MIT License | https://tailwindcss.com`,
176
- }),
177
- ...preflightStyles.nodes,
178
- ])
179
- },
180
-
181
- container: (() => {
182
- function extractMinWidths(breakpoints) {
183
- return Object.values(breakpoints ?? {}).flatMap((breakpoints) => {
184
- if (typeof breakpoints === 'string') {
185
- breakpoints = { min: breakpoints }
186
- }
187
-
188
- if (!Array.isArray(breakpoints)) {
189
- breakpoints = [breakpoints]
190
- }
191
-
192
- return breakpoints
193
- .filter((breakpoint) => {
194
- return breakpoint?.hasOwnProperty?.('min') || breakpoint?.hasOwnProperty('min-width')
195
- })
196
- .map((breakpoint) => {
197
- return breakpoint['min-width'] ?? breakpoint.min
198
- })
199
- })
200
- }
201
-
202
- function mapMinWidthsToPadding(minWidths, screens, paddings) {
203
- if (typeof paddings === 'undefined') {
204
- return []
205
- }
206
-
207
- if (!(typeof paddings === 'object' && paddings !== null)) {
208
- return [
209
- {
210
- screen: 'DEFAULT',
211
- minWidth: 0,
212
- padding: paddings,
213
- },
214
- ]
215
- }
216
-
217
- let mapping = []
218
-
219
- if (paddings.DEFAULT) {
220
- mapping.push({
221
- screen: 'DEFAULT',
222
- minWidth: 0,
223
- padding: paddings.DEFAULT,
224
- })
225
- }
226
-
227
- for (let minWidth of minWidths) {
228
- for (let [screen, value] of Object.entries(screens)) {
229
- let screenMinWidth =
230
- typeof value === 'object' && value !== null ? value.min || value['min-width'] : value
231
-
232
- if (`${screenMinWidth}` === `${minWidth}`) {
233
- mapping.push({
234
- screen,
235
- minWidth,
236
- padding: paddings[screen],
237
- })
238
- }
239
- }
240
- }
241
-
242
- return mapping
243
- }
244
-
245
- return function ({ addComponents, theme }) {
246
- let screens = theme('container.screens', theme('screens'))
247
- let minWidths = extractMinWidths(screens)
248
- let paddings = mapMinWidthsToPadding(minWidths, screens, theme('container.padding'))
249
-
250
- let generatePaddingFor = (minWidth) => {
251
- let paddingConfig = paddings.find((padding) => `${padding.minWidth}` === `${minWidth}`)
252
-
253
- if (!paddingConfig) {
254
- return {}
255
- }
256
-
257
- return {
258
- paddingRight: paddingConfig.padding,
259
- paddingLeft: paddingConfig.padding,
260
- }
261
- }
262
-
263
- let atRules = Array.from(
264
- new Set(minWidths.slice().sort((a, z) => parseInt(a) - parseInt(z)))
265
- ).map((minWidth) => ({
266
- [`@media (min-width: ${minWidth})`]: {
267
- '.container': {
268
- 'max-width': minWidth,
269
- ...generatePaddingFor(minWidth),
270
- },
271
- },
272
- }))
273
-
274
- addComponents([
275
- {
276
- '.container': Object.assign(
277
- { width: '100%' },
278
- theme('container.center', false) ? { marginRight: 'auto', marginLeft: 'auto' } : {},
279
- generatePaddingFor(0)
280
- ),
281
- },
282
- ...atRules,
283
- ])
284
- }
285
- })(),
286
-
287
- accessibility: ({ addUtilities }) => {
288
- addUtilities({
289
- '.sr-only': {
290
- position: 'absolute',
291
- width: '1px',
292
- height: '1px',
293
- padding: '0',
294
- margin: '-1px',
295
- overflow: 'hidden',
296
- clip: 'rect(0, 0, 0, 0)',
297
- whiteSpace: 'nowrap',
298
- borderWidth: '0',
299
- },
300
- '.not-sr-only': {
301
- position: 'static',
302
- width: 'auto',
303
- height: 'auto',
304
- padding: '0',
305
- margin: '0',
306
- overflow: 'visible',
307
- clip: 'auto',
308
- whiteSpace: 'normal',
309
- },
310
- })
311
- },
312
-
313
- pointerEvents: ({ addUtilities }) => {
314
- addUtilities({
315
- '.pointer-events-none': { 'pointer-events': 'none' },
316
- '.pointer-events-auto': { 'pointer-events': 'auto' },
317
- })
318
- },
319
-
320
- visibility: ({ addUtilities }) => {
321
- addUtilities({
322
- '.visible': { visibility: 'visible' },
323
- '.invisible': { visibility: 'hidden' },
324
- })
325
- },
326
-
327
- position: ({ addUtilities }) => {
328
- addUtilities({
329
- '.static': { position: 'static' },
330
- '.fixed': { position: 'fixed' },
331
- '.absolute': { position: 'absolute' },
332
- '.relative': { position: 'relative' },
333
- '.sticky': { position: 'sticky' },
334
- })
335
- },
336
-
337
- inset: createUtilityPlugin(
338
- 'inset',
339
- [
340
- ['inset', ['top', 'right', 'bottom', 'left']],
341
- [
342
- ['inset-x', ['left', 'right']],
343
- ['inset-y', ['top', 'bottom']],
344
- ],
345
- [
346
- ['top', ['top']],
347
- ['right', ['right']],
348
- ['bottom', ['bottom']],
349
- ['left', ['left']],
350
- ],
351
- ],
352
- { supportsNegativeValues: true }
353
- ),
354
-
355
- isolation: ({ addUtilities }) => {
356
- addUtilities({
357
- '.isolate': { isolation: 'isolate' },
358
- '.isolation-auto': { isolation: 'auto' },
359
- })
360
- },
361
-
362
- zIndex: createUtilityPlugin('zIndex', [['z', ['zIndex']]], { supportsNegativeValues: true }),
363
- order: createUtilityPlugin('order', undefined, { supportsNegativeValues: true }),
364
- gridColumn: createUtilityPlugin('gridColumn', [['col', ['gridColumn']]]),
365
- gridColumnStart: createUtilityPlugin('gridColumnStart', [['col-start', ['gridColumnStart']]]),
366
- gridColumnEnd: createUtilityPlugin('gridColumnEnd', [['col-end', ['gridColumnEnd']]]),
367
- gridRow: createUtilityPlugin('gridRow', [['row', ['gridRow']]]),
368
- gridRowStart: createUtilityPlugin('gridRowStart', [['row-start', ['gridRowStart']]]),
369
- gridRowEnd: createUtilityPlugin('gridRowEnd', [['row-end', ['gridRowEnd']]]),
370
-
371
- float: ({ addUtilities }) => {
372
- addUtilities({
373
- '.float-right': { float: 'right' },
374
- '.float-left': { float: 'left' },
375
- '.float-none': { float: 'none' },
376
- })
377
- },
378
-
379
- clear: ({ addUtilities }) => {
380
- addUtilities({
381
- '.clear-left': { clear: 'left' },
382
- '.clear-right': { clear: 'right' },
383
- '.clear-both': { clear: 'both' },
384
- '.clear-none': { clear: 'none' },
385
- })
386
- },
387
-
388
- margin: createUtilityPlugin(
389
- 'margin',
390
- [
391
- ['m', ['margin']],
392
- [
393
- ['mx', ['margin-left', 'margin-right']],
394
- ['my', ['margin-top', 'margin-bottom']],
395
- ],
396
- [
397
- ['mt', ['margin-top']],
398
- ['mr', ['margin-right']],
399
- ['mb', ['margin-bottom']],
400
- ['ml', ['margin-left']],
401
- ],
402
- ],
403
- { supportsNegativeValues: true }
404
- ),
405
-
406
- boxSizing: ({ addUtilities }) => {
407
- addUtilities({
408
- '.box-border': { 'box-sizing': 'border-box' },
409
- '.box-content': { 'box-sizing': 'content-box' },
410
- })
411
- },
412
-
413
- display: ({ addUtilities }) => {
414
- addUtilities({
415
- '.block': { display: 'block' },
416
- '.inline-block': { display: 'inline-block' },
417
- '.inline': { display: 'inline' },
418
- '.flex': { display: 'flex' },
419
- '.inline-flex': { display: 'inline-flex' },
420
- '.table': { display: 'table' },
421
- '.inline-table': { display: 'inline-table' },
422
- '.table-caption': { display: 'table-caption' },
423
- '.table-cell': { display: 'table-cell' },
424
- '.table-column': { display: 'table-column' },
425
- '.table-column-group': { display: 'table-column-group' },
426
- '.table-footer-group': { display: 'table-footer-group' },
427
- '.table-header-group': { display: 'table-header-group' },
428
- '.table-row-group': { display: 'table-row-group' },
429
- '.table-row': { display: 'table-row' },
430
- '.flow-root': { display: 'flow-root' },
431
- '.grid': { display: 'grid' },
432
- '.inline-grid': { display: 'inline-grid' },
433
- '.contents': { display: 'contents' },
434
- '.list-item': { display: 'list-item' },
435
- '.hidden': { display: 'none' },
436
- })
437
- },
438
-
439
- aspectRatio: createUtilityPlugin('aspectRatio', [['aspect', ['aspect-ratio']]]),
440
-
441
- height: createUtilityPlugin('height', [['h', ['height']]]),
442
- maxHeight: createUtilityPlugin('maxHeight', [['max-h', ['maxHeight']]]),
443
- minHeight: createUtilityPlugin('minHeight', [['min-h', ['minHeight']]]),
444
-
445
- width: createUtilityPlugin('width', [['w', ['width']]]),
446
- minWidth: createUtilityPlugin('minWidth', [['min-w', ['minWidth']]]),
447
- maxWidth: createUtilityPlugin('maxWidth', [['max-w', ['maxWidth']]]),
448
-
449
- flex: createUtilityPlugin('flex'),
450
- flexShrink: createUtilityPlugin('flexShrink', [
451
- ['flex-shrink', ['flex-shrink']], // Deprecated
452
- ['shrink', ['flex-shrink']],
453
- ]),
454
- flexGrow: createUtilityPlugin('flexGrow', [
455
- ['flex-grow', ['flex-grow']], // Deprecated
456
- ['grow', ['flex-grow']],
457
- ]),
458
- flexBasis: createUtilityPlugin('flexBasis', [['basis', ['flex-basis']]]),
459
-
460
- tableLayout: ({ addUtilities }) => {
461
- addUtilities({
462
- '.table-auto': { 'table-layout': 'auto' },
463
- '.table-fixed': { 'table-layout': 'fixed' },
464
- })
465
- },
466
-
467
- borderCollapse: ({ addUtilities }) => {
468
- addUtilities({
469
- '.border-collapse': { 'border-collapse': 'collapse' },
470
- '.border-separate': { 'border-collapse': 'separate' },
471
- })
472
- },
473
-
474
- transformOrigin: createUtilityPlugin('transformOrigin', [['origin', ['transformOrigin']]]),
475
- translate: createUtilityPlugin(
476
- 'translate',
477
- [
478
- [
479
- [
480
- 'translate-x',
481
- [['@defaults transform', {}], '--tw-translate-x', ['transform', 'var(--tw-transform)']],
482
- ],
483
- [
484
- 'translate-y',
485
- [['@defaults transform', {}], '--tw-translate-y', ['transform', 'var(--tw-transform)']],
486
- ],
487
- ],
488
- ],
489
- { supportsNegativeValues: true }
490
- ),
491
- rotate: createUtilityPlugin(
492
- 'rotate',
493
- [
494
- [
495
- 'rotate',
496
- [['@defaults transform', {}], '--tw-rotate', ['transform', 'var(--tw-transform)']],
497
- ],
498
- ],
499
- { supportsNegativeValues: true }
500
- ),
501
- skew: createUtilityPlugin(
502
- 'skew',
503
- [
504
- [
505
- [
506
- 'skew-x',
507
- [['@defaults transform', {}], '--tw-skew-x', ['transform', 'var(--tw-transform)']],
508
- ],
509
- [
510
- 'skew-y',
511
- [['@defaults transform', {}], '--tw-skew-y', ['transform', 'var(--tw-transform)']],
512
- ],
513
- ],
514
- ],
515
- { supportsNegativeValues: true }
516
- ),
517
- scale: createUtilityPlugin('scale', [
518
- [
519
- 'scale',
520
- [
521
- ['@defaults transform', {}],
522
- '--tw-scale-x',
523
- '--tw-scale-y',
524
- ['transform', 'var(--tw-transform)'],
525
- ],
526
- ],
527
- [
528
- [
529
- 'scale-x',
530
- [['@defaults transform', {}], '--tw-scale-x', ['transform', 'var(--tw-transform)']],
531
- ],
532
- [
533
- 'scale-y',
534
- [['@defaults transform', {}], '--tw-scale-y', ['transform', 'var(--tw-transform)']],
535
- ],
536
- ],
537
- ]),
538
-
539
- transform: ({ addBase, addUtilities }) => {
540
- addBase({
541
- '@defaults transform': {
542
- '--tw-translate-x': '0',
543
- '--tw-translate-y': '0',
544
- '--tw-rotate': '0',
545
- '--tw-skew-x': '0',
546
- '--tw-skew-y': '0',
547
- '--tw-scale-x': '1',
548
- '--tw-scale-y': '1',
549
- '--tw-transform': [
550
- 'translateX(var(--tw-translate-x))',
551
- 'translateY(var(--tw-translate-y))',
552
- 'rotate(var(--tw-rotate))',
553
- 'skewX(var(--tw-skew-x))',
554
- 'skewY(var(--tw-skew-y))',
555
- 'scaleX(var(--tw-scale-x))',
556
- 'scaleY(var(--tw-scale-y))',
557
- ].join(' '),
558
- },
559
- })
560
- addUtilities({
561
- '.transform': { '@defaults transform': {}, transform: 'var(--tw-transform)' },
562
- '.transform-cpu': {
563
- '--tw-transform': [
564
- 'translateX(var(--tw-translate-x))',
565
- 'translateY(var(--tw-translate-y))',
566
- 'rotate(var(--tw-rotate))',
567
- 'skewX(var(--tw-skew-x))',
568
- 'skewY(var(--tw-skew-y))',
569
- 'scaleX(var(--tw-scale-x))',
570
- 'scaleY(var(--tw-scale-y))',
571
- ].join(' '),
572
- },
573
- '.transform-gpu': {
574
- '--tw-transform': [
575
- 'translate3d(var(--tw-translate-x), var(--tw-translate-y), 0)',
576
- 'rotate(var(--tw-rotate))',
577
- 'skewX(var(--tw-skew-x))',
578
- 'skewY(var(--tw-skew-y))',
579
- 'scaleX(var(--tw-scale-x))',
580
- 'scaleY(var(--tw-scale-y))',
581
- ].join(' '),
582
- },
583
- '.transform-none': { transform: 'none' },
584
- })
585
- },
586
-
587
- animation: ({ matchUtilities, theme, prefix }) => {
588
- let prefixName = (name) => prefix(`.${name}`).slice(1)
589
- let keyframes = Object.fromEntries(
590
- Object.entries(theme('keyframes') ?? {}).map(([key, value]) => {
591
- return [key, { [`@keyframes ${prefixName(key)}`]: value }]
592
- })
593
- )
594
-
595
- matchUtilities(
596
- {
597
- animate: (value) => {
598
- let animations = parseAnimationValue(value)
599
-
600
- return [
601
- ...animations.flatMap((animation) => keyframes[animation.name]),
602
- {
603
- animation: animations
604
- .map(({ name, value }) => {
605
- if (name === undefined || keyframes[name] === undefined) {
606
- return value
607
- }
608
- return value.replace(name, prefixName(name))
609
- })
610
- .join(', '),
611
- },
612
- ]
613
- },
614
- },
615
- { values: theme('animation') }
616
- )
617
- },
618
-
619
- cursor: createUtilityPlugin('cursor'),
620
-
621
- touchAction: ({ addUtilities }) => {
622
- addUtilities({
623
- '.touch-auto': { 'touch-action': 'auto' },
624
- '.touch-none': { 'touch-action': 'none' },
625
- '.touch-pan-x': { 'touch-action': 'pan-x' },
626
- '.touch-pan-left': { 'touch-action': 'pan-left' },
627
- '.touch-pan-right': { 'touch-action': 'pan-right' },
628
- '.touch-pan-y': { 'touch-action': 'pan-y' },
629
- '.touch-pan-up': { 'touch-action': 'pan-up' },
630
- '.touch-pan-down': { 'touch-action': 'pan-down' },
631
- '.touch-pinch-zoom': { 'touch-action': 'pinch-zoom' },
632
- '.touch-manipulation': { 'touch-action': 'manipulation' },
633
- })
634
- },
635
-
636
- userSelect: ({ addUtilities }) => {
637
- addUtilities({
638
- '.select-none': { 'user-select': 'none' },
639
- '.select-text': { 'user-select': 'text' },
640
- '.select-all': { 'user-select': 'all' },
641
- '.select-auto': { 'user-select': 'auto' },
642
- })
643
- },
644
-
645
- resize: ({ addUtilities }) => {
646
- addUtilities({
647
- '.resize-none': { resize: 'none' },
648
- '.resize-y': { resize: 'vertical' },
649
- '.resize-x': { resize: 'horizontal' },
650
- '.resize': { resize: 'both' },
651
- })
652
- },
653
-
654
- scrollSnapType: ({ addUtilities, addBase }) => {
655
- addBase({
656
- '@defaults scroll-snap-type': {
657
- '--tw-scroll-snap-strictness': 'proximity',
658
- },
659
- })
660
-
661
- addUtilities({
662
- '.snap-none': { 'scroll-snap-type': 'none' },
663
- '.snap-x': {
664
- '@defaults scroll-snap-type': {},
665
- 'scroll-snap-type': 'x var(--tw-scroll-snap-strictness)',
666
- },
667
- '.snap-y': {
668
- '@defaults scroll-snap-type': {},
669
- 'scroll-snap-type': 'y var(--tw-scroll-snap-strictness)',
670
- },
671
- '.snap-both': {
672
- '@defaults scroll-snap-type': {},
673
- 'scroll-snap-type': 'both var(--tw-scroll-snap-strictness)',
674
- },
675
- '.snap-mandatory': { '--tw-scroll-snap-strictness': 'mandatory' },
676
- '.snap-proximity': { '--tw-scroll-snap-strictness': 'proximity' },
677
- })
678
- },
679
-
680
- scrollSnapAlign: ({ addUtilities }) => {
681
- addUtilities({
682
- '.snap-start': { 'scroll-snap-align': 'start' },
683
- '.snap-end': { 'scroll-snap-align': 'end' },
684
- '.snap-center': { 'scroll-snap-align': 'center' },
685
- '.snap-align-none': { 'scroll-snap-align': 'none' },
686
- })
687
- },
688
-
689
- scrollSnapStop: ({ addUtilities }) => {
690
- addUtilities({
691
- '.snap-normal': { 'scroll-snap-stop': 'normal' },
692
- '.snap-always': { 'scroll-snap-stop': 'always' },
693
- })
694
- },
695
-
696
- scrollMargin: createUtilityPlugin(
697
- 'scrollMargin',
698
- [
699
- ['scroll-m', ['scroll-margin']],
700
- [
701
- ['scroll-mx', ['scroll-margin-left', 'scroll-margin-right']],
702
- ['scroll-my', ['scroll-margin-top', 'scroll-margin-bottom']],
703
- ],
704
- [
705
- ['scroll-mt', ['scroll-margin-top']],
706
- ['scroll-mr', ['scroll-margin-right']],
707
- ['scroll-mb', ['scroll-margin-bottom']],
708
- ['scroll-ml', ['scroll-margin-left']],
709
- ],
710
- ],
711
- { supportsNegativeValues: true }
712
- ),
713
-
714
- scrollPadding: createUtilityPlugin('scrollPadding', [
715
- ['scroll-p', ['scroll-padding']],
716
- [
717
- ['scroll-px', ['scroll-padding-left', 'scroll-padding-right']],
718
- ['scroll-py', ['scroll-padding-top', 'scroll-padding-bottom']],
719
- ],
720
- [
721
- ['scroll-pt', ['scroll-padding-top']],
722
- ['scroll-pr', ['scroll-padding-right']],
723
- ['scroll-pb', ['scroll-padding-bottom']],
724
- ['scroll-pl', ['scroll-padding-left']],
725
- ],
726
- ]),
727
-
728
- listStylePosition: ({ addUtilities }) => {
729
- addUtilities({
730
- '.list-inside': { 'list-style-position': 'inside' },
731
- '.list-outside': { 'list-style-position': 'outside' },
732
- })
733
- },
734
-
735
- listStyleType: createUtilityPlugin('listStyleType', [['list', ['listStyleType']]]),
736
-
737
- appearance: ({ addUtilities }) => {
738
- addUtilities({
739
- '.appearance-none': { appearance: 'none' },
740
- })
741
- },
742
-
743
- columns: createUtilityPlugin('columns', [['columns', ['columns']]]),
744
-
745
- breakBefore: ({ addUtilities }) => {
746
- addUtilities({
747
- '.break-before-auto': { 'break-before': 'auto' },
748
- '.break-before-avoid': { 'break-before': 'avoid' },
749
- '.break-before-all': { 'break-before': 'all' },
750
- '.break-before-avoid-page': { 'break-before': 'avoid-page' },
751
- '.break-before-page': { 'break-before': 'page' },
752
- '.break-before-left': { 'break-before': 'left' },
753
- '.break-before-right': { 'break-before': 'right' },
754
- '.break-before-column': { 'break-before': 'column' },
755
- })
756
- },
757
-
758
- breakInside: ({ addUtilities }) => {
759
- addUtilities({
760
- '.break-inside-auto': { 'break-inside': 'auto' },
761
- '.break-inside-avoid': { 'break-inside': 'avoid' },
762
- '.break-inside-avoid-page': { 'break-inside': 'avoid-page' },
763
- '.break-inside-avoid-column': { 'break-inside': 'avoid-column' },
764
- })
765
- },
766
-
767
- breakAfter: ({ addUtilities }) => {
768
- addUtilities({
769
- '.break-after-auto': { 'break-after': 'auto' },
770
- '.break-after-avoid': { 'break-after': 'avoid' },
771
- '.break-after-all': { 'break-after': 'all' },
772
- '.break-after-avoid-page': { 'break-after': 'avoid-page' },
773
- '.break-after-page': { 'break-after': 'page' },
774
- '.break-after-left': { 'break-after': 'left' },
775
- '.break-after-right': { 'break-after': 'right' },
776
- '.break-after-column': { 'break-after': 'column' },
777
- })
778
- },
779
-
780
- gridAutoColumns: createUtilityPlugin('gridAutoColumns', [['auto-cols', ['gridAutoColumns']]]),
781
-
782
- gridAutoFlow: ({ addUtilities }) => {
783
- addUtilities({
784
- '.grid-flow-row': { gridAutoFlow: 'row' },
785
- '.grid-flow-col': { gridAutoFlow: 'column' },
786
- '.grid-flow-row-dense': { gridAutoFlow: 'row dense' },
787
- '.grid-flow-col-dense': { gridAutoFlow: 'column dense' },
788
- })
789
- },
790
-
791
- gridAutoRows: createUtilityPlugin('gridAutoRows', [['auto-rows', ['gridAutoRows']]]),
792
- gridTemplateColumns: createUtilityPlugin('gridTemplateColumns', [
793
- ['grid-cols', ['gridTemplateColumns']],
794
- ]),
795
- gridTemplateRows: createUtilityPlugin('gridTemplateRows', [['grid-rows', ['gridTemplateRows']]]),
796
-
797
- flexDirection: ({ addUtilities }) => {
798
- addUtilities({
799
- '.flex-row': { 'flex-direction': 'row' },
800
- '.flex-row-reverse': { 'flex-direction': 'row-reverse' },
801
- '.flex-col': { 'flex-direction': 'column' },
802
- '.flex-col-reverse': { 'flex-direction': 'column-reverse' },
803
- })
804
- },
805
-
806
- flexWrap: ({ addUtilities }) => {
807
- addUtilities({
808
- '.flex-wrap': { 'flex-wrap': 'wrap' },
809
- '.flex-wrap-reverse': { 'flex-wrap': 'wrap-reverse' },
810
- '.flex-nowrap': { 'flex-wrap': 'nowrap' },
811
- })
812
- },
813
-
814
- placeContent: ({ addUtilities }) => {
815
- addUtilities({
816
- '.place-content-center': { 'place-content': 'center' },
817
- '.place-content-start': { 'place-content': 'start' },
818
- '.place-content-end': { 'place-content': 'end' },
819
- '.place-content-between': { 'place-content': 'space-between' },
820
- '.place-content-around': { 'place-content': 'space-around' },
821
- '.place-content-evenly': { 'place-content': 'space-evenly' },
822
- '.place-content-stretch': { 'place-content': 'stretch' },
823
- })
824
- },
825
-
826
- placeItems: ({ addUtilities }) => {
827
- addUtilities({
828
- '.place-items-start': { 'place-items': 'start' },
829
- '.place-items-end': { 'place-items': 'end' },
830
- '.place-items-center': { 'place-items': 'center' },
831
- '.place-items-stretch': { 'place-items': 'stretch' },
832
- })
833
- },
834
-
835
- alignContent: ({ addUtilities }) => {
836
- addUtilities({
837
- '.content-center': { 'align-content': 'center' },
838
- '.content-start': { 'align-content': 'flex-start' },
839
- '.content-end': { 'align-content': 'flex-end' },
840
- '.content-between': { 'align-content': 'space-between' },
841
- '.content-around': { 'align-content': 'space-around' },
842
- '.content-evenly': { 'align-content': 'space-evenly' },
843
- })
844
- },
845
-
846
- alignItems: ({ addUtilities }) => {
847
- addUtilities({
848
- '.items-start': { 'align-items': 'flex-start' },
849
- '.items-end': { 'align-items': 'flex-end' },
850
- '.items-center': { 'align-items': 'center' },
851
- '.items-baseline': { 'align-items': 'baseline' },
852
- '.items-stretch': { 'align-items': 'stretch' },
853
- })
854
- },
855
-
856
- justifyContent: ({ addUtilities }) => {
857
- addUtilities({
858
- '.justify-start': { 'justify-content': 'flex-start' },
859
- '.justify-end': { 'justify-content': 'flex-end' },
860
- '.justify-center': { 'justify-content': 'center' },
861
- '.justify-between': { 'justify-content': 'space-between' },
862
- '.justify-around': { 'justify-content': 'space-around' },
863
- '.justify-evenly': { 'justify-content': 'space-evenly' },
864
- })
865
- },
866
-
867
- justifyItems: ({ addUtilities }) => {
868
- addUtilities({
869
- '.justify-items-start': { 'justify-items': 'start' },
870
- '.justify-items-end': { 'justify-items': 'end' },
871
- '.justify-items-center': { 'justify-items': 'center' },
872
- '.justify-items-stretch': { 'justify-items': 'stretch' },
873
- })
874
- },
875
-
876
- gap: createUtilityPlugin('gap', [
877
- ['gap', ['gap']],
878
- [
879
- ['gap-x', ['columnGap']],
880
- ['gap-y', ['rowGap']],
881
- ],
882
- ]),
883
-
884
- space: ({ matchUtilities, addUtilities, theme }) => {
885
- matchUtilities(
886
- {
887
- 'space-x': (value) => {
888
- value = value === '0' ? '0px' : value
889
-
890
- return {
891
- '& > :not([hidden]) ~ :not([hidden])': {
892
- '--tw-space-x-reverse': '0',
893
- 'margin-right': `calc(${value} * var(--tw-space-x-reverse))`,
894
- 'margin-left': `calc(${value} * calc(1 - var(--tw-space-x-reverse)))`,
895
- },
896
- }
897
- },
898
- 'space-y': (value) => {
899
- value = value === '0' ? '0px' : value
900
-
901
- return {
902
- '& > :not([hidden]) ~ :not([hidden])': {
903
- '--tw-space-y-reverse': '0',
904
- 'margin-top': `calc(${value} * calc(1 - var(--tw-space-y-reverse)))`,
905
- 'margin-bottom': `calc(${value} * var(--tw-space-y-reverse))`,
906
- },
907
- }
908
- },
909
- },
910
- { values: theme('space'), supportsNegativeValues: true }
911
- )
912
-
913
- addUtilities({
914
- '.space-y-reverse > :not([hidden]) ~ :not([hidden])': { '--tw-space-y-reverse': '1' },
915
- '.space-x-reverse > :not([hidden]) ~ :not([hidden])': { '--tw-space-x-reverse': '1' },
916
- })
917
- },
918
-
919
- divideWidth: ({ matchUtilities, addUtilities, theme }) => {
920
- matchUtilities(
921
- {
922
- 'divide-x': (value) => {
923
- value = value === '0' ? '0px' : value
924
-
925
- return {
926
- '& > :not([hidden]) ~ :not([hidden])': {
927
- '@defaults border-width': {},
928
- '--tw-divide-x-reverse': '0',
929
- 'border-right-width': `calc(${value} * var(--tw-divide-x-reverse))`,
930
- 'border-left-width': `calc(${value} * calc(1 - var(--tw-divide-x-reverse)))`,
931
- },
932
- }
933
- },
934
- 'divide-y': (value) => {
935
- value = value === '0' ? '0px' : value
936
-
937
- return {
938
- '& > :not([hidden]) ~ :not([hidden])': {
939
- '@defaults border-width': {},
940
- '--tw-divide-y-reverse': '0',
941
- 'border-top-width': `calc(${value} * calc(1 - var(--tw-divide-y-reverse)))`,
942
- 'border-bottom-width': `calc(${value} * var(--tw-divide-y-reverse))`,
943
- },
944
- }
945
- },
946
- },
947
- { values: theme('divideWidth'), type: ['line-width', 'length'] }
948
- )
949
-
950
- addUtilities({
951
- '.divide-y-reverse > :not([hidden]) ~ :not([hidden])': {
952
- '@defaults border-width': {},
953
- '--tw-divide-y-reverse': '1',
954
- },
955
- '.divide-x-reverse > :not([hidden]) ~ :not([hidden])': {
956
- '@defaults border-width': {},
957
- '--tw-divide-x-reverse': '1',
958
- },
959
- })
960
- },
961
-
962
- divideStyle: ({ addUtilities }) => {
963
- addUtilities({
964
- '.divide-solid > :not([hidden]) ~ :not([hidden])': { 'border-style': 'solid' },
965
- '.divide-dashed > :not([hidden]) ~ :not([hidden])': { 'border-style': 'dashed' },
966
- '.divide-dotted > :not([hidden]) ~ :not([hidden])': { 'border-style': 'dotted' },
967
- '.divide-double > :not([hidden]) ~ :not([hidden])': { 'border-style': 'double' },
968
- '.divide-none > :not([hidden]) ~ :not([hidden])': { 'border-style': 'none' },
969
- })
970
- },
971
-
972
- divideColor: ({ matchUtilities, theme, corePlugins }) => {
973
- matchUtilities(
974
- {
975
- divide: (value) => {
976
- if (!corePlugins('divideOpacity')) {
977
- return {
978
- ['& > :not([hidden]) ~ :not([hidden])']: {
979
- 'border-color': toColorValue(value),
980
- },
981
- }
982
- }
983
-
984
- return {
985
- ['& > :not([hidden]) ~ :not([hidden])']: withAlphaVariable({
986
- color: value,
987
- property: 'border-color',
988
- variable: '--tw-divide-opacity',
989
- }),
990
- }
991
- },
992
- },
993
- {
994
- values: (({ DEFAULT: _, ...colors }) => colors)(flattenColorPalette(theme('divideColor'))),
995
- type: 'color',
996
- }
997
- )
998
- },
999
-
1000
- divideOpacity: ({ matchUtilities, theme }) => {
1001
- matchUtilities(
1002
- {
1003
- 'divide-opacity': (value) => {
1004
- return { [`& > :not([hidden]) ~ :not([hidden])`]: { '--tw-divide-opacity': value } }
1005
- },
1006
- },
1007
- { values: theme('divideOpacity') }
1008
- )
1009
- },
1010
-
1011
- placeSelf: ({ addUtilities }) => {
1012
- addUtilities({
1013
- '.place-self-auto': { 'place-self': 'auto' },
1014
- '.place-self-start': { 'place-self': 'start' },
1015
- '.place-self-end': { 'place-self': 'end' },
1016
- '.place-self-center': { 'place-self': 'center' },
1017
- '.place-self-stretch': { 'place-self': 'stretch' },
1018
- })
1019
- },
1020
-
1021
- alignSelf: ({ addUtilities }) => {
1022
- addUtilities({
1023
- '.self-auto': { 'align-self': 'auto' },
1024
- '.self-start': { 'align-self': 'flex-start' },
1025
- '.self-end': { 'align-self': 'flex-end' },
1026
- '.self-center': { 'align-self': 'center' },
1027
- '.self-stretch': { 'align-self': 'stretch' },
1028
- '.self-baseline': { 'align-self': 'baseline' },
1029
- })
1030
- },
1031
-
1032
- justifySelf: ({ addUtilities }) => {
1033
- addUtilities({
1034
- '.justify-self-auto': { 'justify-self': 'auto' },
1035
- '.justify-self-start': { 'justify-self': 'start' },
1036
- '.justify-self-end': { 'justify-self': 'end' },
1037
- '.justify-self-center': { 'justify-self': 'center' },
1038
- '.justify-self-stretch': { 'justify-self': 'stretch' },
1039
- })
1040
- },
1041
-
1042
- overflow: ({ addUtilities }) => {
1043
- addUtilities({
1044
- '.overflow-auto': { overflow: 'auto' },
1045
- '.overflow-hidden': { overflow: 'hidden' },
1046
- '.overflow-clip': { overflow: 'clip' },
1047
- '.overflow-visible': { overflow: 'visible' },
1048
- '.overflow-scroll': { overflow: 'scroll' },
1049
- '.overflow-x-auto': { 'overflow-x': 'auto' },
1050
- '.overflow-y-auto': { 'overflow-y': 'auto' },
1051
- '.overflow-x-hidden': { 'overflow-x': 'hidden' },
1052
- '.overflow-y-hidden': { 'overflow-y': 'hidden' },
1053
- '.overflow-x-clip': { 'overflow-x': 'clip' },
1054
- '.overflow-y-clip': { 'overflow-y': 'clip' },
1055
- '.overflow-x-visible': { 'overflow-x': 'visible' },
1056
- '.overflow-y-visible': { 'overflow-y': 'visible' },
1057
- '.overflow-x-scroll': { 'overflow-x': 'scroll' },
1058
- '.overflow-y-scroll': { 'overflow-y': 'scroll' },
1059
- })
1060
- },
1061
-
1062
- overscrollBehavior: ({ addUtilities }) => {
1063
- addUtilities({
1064
- '.overscroll-auto': { 'overscroll-behavior': 'auto' },
1065
- '.overscroll-contain': { 'overscroll-behavior': 'contain' },
1066
- '.overscroll-none': { 'overscroll-behavior': 'none' },
1067
- '.overscroll-y-auto': { 'overscroll-behavior-y': 'auto' },
1068
- '.overscroll-y-contain': { 'overscroll-behavior-y': 'contain' },
1069
- '.overscroll-y-none': { 'overscroll-behavior-y': 'none' },
1070
- '.overscroll-x-auto': { 'overscroll-behavior-x': 'auto' },
1071
- '.overscroll-x-contain': { 'overscroll-behavior-x': 'contain' },
1072
- '.overscroll-x-none': { 'overscroll-behavior-x': 'none' },
1073
- })
1074
- },
1075
-
1076
- scrollBehavior: ({ addUtilities }) => {
1077
- addUtilities({
1078
- '.scroll-auto': { 'scroll-behavior': 'auto' },
1079
- '.scroll-smooth': { 'scroll-behavior': 'smooth' },
1080
- })
1081
- },
1082
-
1083
- textOverflow: ({ addUtilities }) => {
1084
- addUtilities({
1085
- '.truncate': { overflow: 'hidden', 'text-overflow': 'ellipsis', 'white-space': 'nowrap' },
1086
- '.overflow-ellipsis': { 'text-overflow': 'ellipsis' }, // Deprecated
1087
- '.text-ellipsis': { 'text-overflow': 'ellipsis' },
1088
- '.text-clip': { 'text-overflow': 'clip' },
1089
- })
1090
- },
1091
-
1092
- whitespace: ({ addUtilities }) => {
1093
- addUtilities({
1094
- '.whitespace-normal': { 'white-space': 'normal' },
1095
- '.whitespace-nowrap': { 'white-space': 'nowrap' },
1096
- '.whitespace-pre': { 'white-space': 'pre' },
1097
- '.whitespace-pre-line': { 'white-space': 'pre-line' },
1098
- '.whitespace-pre-wrap': { 'white-space': 'pre-wrap' },
1099
- })
1100
- },
1101
-
1102
- wordBreak: ({ addUtilities }) => {
1103
- addUtilities({
1104
- '.break-normal': { 'overflow-wrap': 'normal', 'word-break': 'normal' },
1105
- '.break-words': { 'overflow-wrap': 'break-word' },
1106
- '.break-all': { 'word-break': 'break-all' },
1107
- })
1108
- },
1109
-
1110
- borderRadius: createUtilityPlugin('borderRadius', [
1111
- ['rounded', ['border-radius']],
1112
- [
1113
- ['rounded-t', ['border-top-left-radius', 'border-top-right-radius']],
1114
- ['rounded-r', ['border-top-right-radius', 'border-bottom-right-radius']],
1115
- ['rounded-b', ['border-bottom-right-radius', 'border-bottom-left-radius']],
1116
- ['rounded-l', ['border-top-left-radius', 'border-bottom-left-radius']],
1117
- ],
1118
- [
1119
- ['rounded-tl', ['border-top-left-radius']],
1120
- ['rounded-tr', ['border-top-right-radius']],
1121
- ['rounded-br', ['border-bottom-right-radius']],
1122
- ['rounded-bl', ['border-bottom-left-radius']],
1123
- ],
1124
- ]),
1125
-
1126
- borderWidth: createUtilityPlugin(
1127
- 'borderWidth',
1128
- [
1129
- ['border', [['@defaults border-width', {}], 'border-width']],
1130
- [
1131
- ['border-x', [['@defaults border-width', {}], 'border-left-width', 'border-right-width']],
1132
- ['border-y', [['@defaults border-width', {}], 'border-top-width', 'border-bottom-width']],
1133
- ],
1134
- [
1135
- ['border-t', [['@defaults border-width', {}], 'border-top-width']],
1136
- ['border-r', [['@defaults border-width', {}], 'border-right-width']],
1137
- ['border-b', [['@defaults border-width', {}], 'border-bottom-width']],
1138
- ['border-l', [['@defaults border-width', {}], 'border-left-width']],
1139
- ],
1140
- ],
1141
- { type: ['line-width', 'length'] }
1142
- ),
1143
-
1144
- borderStyle: ({ addUtilities }) => {
1145
- addUtilities({
1146
- '.border-solid': { 'border-style': 'solid' },
1147
- '.border-dashed': { 'border-style': 'dashed' },
1148
- '.border-dotted': { 'border-style': 'dotted' },
1149
- '.border-double': { 'border-style': 'double' },
1150
- '.border-hidden': { 'border-style': 'hidden' },
1151
- '.border-none': { 'border-style': 'none' },
1152
- })
1153
- },
1154
-
1155
- borderColor: ({ addBase, matchUtilities, theme, corePlugins }) => {
1156
- if (!corePlugins('borderOpacity')) {
1157
- let value = theme('borderColor.DEFAULT', 'currentColor')
1158
- addBase({
1159
- '@defaults border-width': {
1160
- 'border-color': toColorValue(value),
1161
- },
1162
- })
1163
- } else {
1164
- addBase({
1165
- '@defaults border-width': withAlphaVariable({
1166
- color: theme('borderColor.DEFAULT', 'currentColor'),
1167
- property: 'border-color',
1168
- variable: '--tw-border-opacity',
1169
- }),
1170
- })
1171
- }
1172
-
1173
- matchUtilities(
1174
- {
1175
- border: (value) => {
1176
- if (!corePlugins('borderOpacity')) {
1177
- return {
1178
- 'border-color': toColorValue(value),
1179
- }
1180
- }
1181
-
1182
- return withAlphaVariable({
1183
- color: value,
1184
- property: 'border-color',
1185
- variable: '--tw-border-opacity',
1186
- })
1187
- },
1188
- },
1189
- {
1190
- values: (({ DEFAULT: _, ...colors }) => colors)(flattenColorPalette(theme('borderColor'))),
1191
- type: ['color'],
1192
- }
1193
- )
1194
-
1195
- matchUtilities(
1196
- {
1197
- 'border-x': (value) => {
1198
- if (!corePlugins('borderOpacity')) {
1199
- return {
1200
- 'border-left-color': toColorValue(value),
1201
- 'border-right-color': toColorValue(value),
1202
- }
1203
- }
1204
-
1205
- return withAlphaVariable({
1206
- color: value,
1207
- property: ['border-left-color', 'border-right-color'],
1208
- variable: '--tw-border-opacity',
1209
- })
1210
- },
1211
- 'border-y': (value) => {
1212
- if (!corePlugins('borderOpacity')) {
1213
- return {
1214
- 'border-top-color': toColorValue(value),
1215
- 'border-bottom-color': toColorValue(value),
1216
- }
1217
- }
1218
-
1219
- return withAlphaVariable({
1220
- color: value,
1221
- property: ['border-top-color', 'border-bottom-color'],
1222
- variable: '--tw-border-opacity',
1223
- })
1224
- },
1225
- },
1226
- {
1227
- values: (({ DEFAULT: _, ...colors }) => colors)(flattenColorPalette(theme('borderColor'))),
1228
- type: 'color',
1229
- }
1230
- )
1231
-
1232
- matchUtilities(
1233
- {
1234
- 'border-t': (value) => {
1235
- if (!corePlugins('borderOpacity')) {
1236
- return {
1237
- 'border-top-color': toColorValue(value),
1238
- }
1239
- }
1240
-
1241
- return withAlphaVariable({
1242
- color: value,
1243
- property: 'border-top-color',
1244
- variable: '--tw-border-opacity',
1245
- })
1246
- },
1247
- 'border-r': (value) => {
1248
- if (!corePlugins('borderOpacity')) {
1249
- return {
1250
- 'border-right-color': toColorValue(value),
1251
- }
1252
- }
1253
-
1254
- return withAlphaVariable({
1255
- color: value,
1256
- property: 'border-right-color',
1257
- variable: '--tw-border-opacity',
1258
- })
1259
- },
1260
- 'border-b': (value) => {
1261
- if (!corePlugins('borderOpacity')) {
1262
- return {
1263
- 'border-bottom-color': toColorValue(value),
1264
- }
1265
- }
1266
-
1267
- return withAlphaVariable({
1268
- color: value,
1269
- property: 'border-bottom-color',
1270
- variable: '--tw-border-opacity',
1271
- })
1272
- },
1273
- 'border-l': (value) => {
1274
- if (!corePlugins('borderOpacity')) {
1275
- return {
1276
- 'border-left-color': toColorValue(value),
1277
- }
1278
- }
1279
-
1280
- return withAlphaVariable({
1281
- color: value,
1282
- property: 'border-left-color',
1283
- variable: '--tw-border-opacity',
1284
- })
1285
- },
1286
- },
1287
- {
1288
- values: (({ DEFAULT: _, ...colors }) => colors)(flattenColorPalette(theme('borderColor'))),
1289
- type: 'color',
1290
- }
1291
- )
1292
- },
1293
-
1294
- borderOpacity: createUtilityPlugin('borderOpacity', [
1295
- ['border-opacity', ['--tw-border-opacity']],
1296
- ]),
1297
-
1298
- backgroundColor: ({ matchUtilities, theme, corePlugins }) => {
1299
- matchUtilities(
1300
- {
1301
- bg: (value) => {
1302
- if (!corePlugins('backgroundOpacity')) {
1303
- return {
1304
- 'background-color': toColorValue(value),
1305
- }
1306
- }
1307
-
1308
- return withAlphaVariable({
1309
- color: value,
1310
- property: 'background-color',
1311
- variable: '--tw-bg-opacity',
1312
- })
1313
- },
1314
- },
1315
- { values: flattenColorPalette(theme('backgroundColor')), type: 'color' }
1316
- )
1317
- },
1318
-
1319
- backgroundOpacity: createUtilityPlugin('backgroundOpacity', [
1320
- ['bg-opacity', ['--tw-bg-opacity']],
1321
- ]),
1322
- backgroundImage: createUtilityPlugin('backgroundImage', [['bg', ['background-image']]], {
1323
- type: ['lookup', 'image', 'url'],
1324
- }),
1325
- gradientColorStops: (() => {
1326
- function transparentTo(value) {
1327
- return withAlphaValue(value, 0, 'rgb(255 255 255 / 0)')
1328
- }
1329
-
1330
- return function ({ matchUtilities, theme }) {
1331
- let options = {
1332
- values: flattenColorPalette(theme('gradientColorStops')),
1333
- type: ['color', 'any'],
1334
- }
1335
-
1336
- matchUtilities(
1337
- {
1338
- from: (value) => {
1339
- let transparentToValue = transparentTo(value)
1340
-
1341
- return {
1342
- '--tw-gradient-from': toColorValue(value, 'from'),
1343
- '--tw-gradient-stops': `var(--tw-gradient-from), var(--tw-gradient-to, ${transparentToValue})`,
1344
- }
1345
- },
1346
- },
1347
- options
1348
- )
1349
- matchUtilities(
1350
- {
1351
- via: (value) => {
1352
- let transparentToValue = transparentTo(value)
1353
-
1354
- return {
1355
- '--tw-gradient-stops': `var(--tw-gradient-from), ${toColorValue(
1356
- value,
1357
- 'via'
1358
- )}, var(--tw-gradient-to, ${transparentToValue})`,
1359
- }
1360
- },
1361
- },
1362
- options
1363
- )
1364
- matchUtilities(
1365
- { to: (value) => ({ '--tw-gradient-to': toColorValue(value, 'to') }) },
1366
- options
1367
- )
1368
- }
1369
- })(),
1370
-
1371
- boxDecorationBreak: ({ addUtilities }) => {
1372
- addUtilities({
1373
- '.decoration-slice': { 'box-decoration-break': 'slice' },
1374
- '.decoration-clone': { 'box-decoration-break': 'clone' },
1375
- })
1376
- },
1377
-
1378
- backgroundSize: createUtilityPlugin('backgroundSize', [['bg', ['background-size']]], {
1379
- type: ['lookup', 'length', 'percentage'],
1380
- }),
1381
-
1382
- backgroundAttachment: ({ addUtilities }) => {
1383
- addUtilities({
1384
- '.bg-fixed': { 'background-attachment': 'fixed' },
1385
- '.bg-local': { 'background-attachment': 'local' },
1386
- '.bg-scroll': { 'background-attachment': 'scroll' },
1387
- })
1388
- },
1389
-
1390
- backgroundClip: ({ addUtilities }) => {
1391
- addUtilities({
1392
- '.bg-clip-border': { 'background-clip': 'border-box' },
1393
- '.bg-clip-padding': { 'background-clip': 'padding-box' },
1394
- '.bg-clip-content': { 'background-clip': 'content-box' },
1395
- '.bg-clip-text': { 'background-clip': 'text' },
1396
- })
1397
- },
1398
-
1399
- backgroundPosition: createUtilityPlugin('backgroundPosition', [['bg', ['background-position']]], {
1400
- type: ['lookup', 'position'],
1401
- }),
1402
-
1403
- backgroundRepeat: ({ addUtilities }) => {
1404
- addUtilities({
1405
- '.bg-repeat': { 'background-repeat': 'repeat' },
1406
- '.bg-no-repeat': { 'background-repeat': 'no-repeat' },
1407
- '.bg-repeat-x': { 'background-repeat': 'repeat-x' },
1408
- '.bg-repeat-y': { 'background-repeat': 'repeat-y' },
1409
- '.bg-repeat-round': { 'background-repeat': 'round' },
1410
- '.bg-repeat-space': { 'background-repeat': 'space' },
1411
- })
1412
- },
1413
-
1414
- backgroundOrigin: ({ addUtilities }) => {
1415
- addUtilities({
1416
- '.bg-origin-border': { 'background-origin': 'border-box' },
1417
- '.bg-origin-padding': { 'background-origin': 'padding-box' },
1418
- '.bg-origin-content': { 'background-origin': 'content-box' },
1419
- })
1420
- },
1421
-
1422
- fill: ({ matchUtilities, theme }) => {
1423
- matchUtilities(
1424
- {
1425
- fill: (value) => {
1426
- return { fill: toColorValue(value) }
1427
- },
1428
- },
1429
- { values: flattenColorPalette(theme('fill')), type: ['color', 'any'] }
1430
- )
1431
- },
1432
-
1433
- stroke: ({ matchUtilities, theme }) => {
1434
- matchUtilities(
1435
- {
1436
- stroke: (value) => {
1437
- return { stroke: toColorValue(value) }
1438
- },
1439
- },
1440
- { values: flattenColorPalette(theme('stroke')), type: ['color', 'url'] }
1441
- )
1442
- },
1443
-
1444
- strokeWidth: createUtilityPlugin('strokeWidth', [['stroke', ['stroke-width']]], {
1445
- type: ['length', 'number', 'percentage'],
1446
- }),
1447
-
1448
- objectFit: ({ addUtilities }) => {
1449
- addUtilities({
1450
- '.object-contain': { 'object-fit': 'contain' },
1451
- '.object-cover': { 'object-fit': 'cover' },
1452
- '.object-fill': { 'object-fit': 'fill' },
1453
- '.object-none': { 'object-fit': 'none' },
1454
- '.object-scale-down': { 'object-fit': 'scale-down' },
1455
- })
1456
- },
1457
- objectPosition: createUtilityPlugin('objectPosition', [['object', ['object-position']]]),
1458
-
1459
- padding: createUtilityPlugin('padding', [
1460
- ['p', ['padding']],
1461
- [
1462
- ['px', ['padding-left', 'padding-right']],
1463
- ['py', ['padding-top', 'padding-bottom']],
1464
- ],
1465
- [
1466
- ['pt', ['padding-top']],
1467
- ['pr', ['padding-right']],
1468
- ['pb', ['padding-bottom']],
1469
- ['pl', ['padding-left']],
1470
- ],
1471
- ]),
1472
-
1473
- textAlign: ({ addUtilities }) => {
1474
- addUtilities({
1475
- '.text-left': { 'text-align': 'left' },
1476
- '.text-center': { 'text-align': 'center' },
1477
- '.text-right': { 'text-align': 'right' },
1478
- '.text-justify': { 'text-align': 'justify' },
1479
- })
1480
- },
1481
-
1482
- textIndent: createUtilityPlugin('textIndent', [['indent', ['text-indent']]], {
1483
- supportsNegativeValues: true,
1484
- }),
1485
-
1486
- verticalAlign: ({ addUtilities, matchUtilities }) => {
1487
- addUtilities({
1488
- '.align-baseline': { 'vertical-align': 'baseline' },
1489
- '.align-top': { 'vertical-align': 'top' },
1490
- '.align-middle': { 'vertical-align': 'middle' },
1491
- '.align-bottom': { 'vertical-align': 'bottom' },
1492
- '.align-text-top': { 'vertical-align': 'text-top' },
1493
- '.align-text-bottom': { 'vertical-align': 'text-bottom' },
1494
- '.align-sub': { 'vertical-align': 'sub' },
1495
- '.align-super': { 'vertical-align': 'super' },
1496
- })
1497
-
1498
- matchUtilities({ align: (value) => ({ 'vertical-align': value }) })
1499
- },
1500
-
1501
- fontFamily: createUtilityPlugin('fontFamily', [['font', ['fontFamily']]], {
1502
- type: ['lookup', 'generic-name', 'family-name'],
1503
- }),
1504
-
1505
- fontSize: ({ matchUtilities, theme }) => {
1506
- matchUtilities(
1507
- {
1508
- text: (value) => {
1509
- let [fontSize, options] = Array.isArray(value) ? value : [value]
1510
- let { lineHeight, letterSpacing } = isPlainObject(options)
1511
- ? options
1512
- : { lineHeight: options }
1513
-
1514
- return {
1515
- 'font-size': fontSize,
1516
- ...(lineHeight === undefined ? {} : { 'line-height': lineHeight }),
1517
- ...(letterSpacing === undefined ? {} : { 'letter-spacing': letterSpacing }),
1518
- }
1519
- },
1520
- },
1521
- {
1522
- values: theme('fontSize'),
1523
- type: ['absolute-size', 'relative-size', 'length', 'percentage'],
1524
- }
1525
- )
1526
- },
1527
-
1528
- fontWeight: createUtilityPlugin('fontWeight', [['font', ['fontWeight']]], {
1529
- type: ['lookup', 'number'],
1530
- }),
1531
-
1532
- textTransform: ({ addUtilities }) => {
1533
- addUtilities({
1534
- '.uppercase': { 'text-transform': 'uppercase' },
1535
- '.lowercase': { 'text-transform': 'lowercase' },
1536
- '.capitalize': { 'text-transform': 'capitalize' },
1537
- '.normal-case': { 'text-transform': 'none' },
1538
- })
1539
- },
1540
-
1541
- fontStyle: ({ addUtilities }) => {
1542
- addUtilities({
1543
- '.italic': { 'font-style': 'italic' },
1544
- '.not-italic': { 'font-style': 'normal' },
1545
- })
1546
- },
1547
-
1548
- fontVariantNumeric: ({ addUtilities }) => {
1549
- addUtilities({
1550
- '@defaults font-variant-numeric': {
1551
- '--tw-ordinal': 'var(--tw-empty,/*!*/ /*!*/)',
1552
- '--tw-slashed-zero': 'var(--tw-empty,/*!*/ /*!*/)',
1553
- '--tw-numeric-figure': 'var(--tw-empty,/*!*/ /*!*/)',
1554
- '--tw-numeric-spacing': 'var(--tw-empty,/*!*/ /*!*/)',
1555
- '--tw-numeric-fraction': 'var(--tw-empty,/*!*/ /*!*/)',
1556
- '--tw-font-variant-numeric':
1557
- 'var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)',
1558
- },
1559
- '.normal-nums': { 'font-variant-numeric': 'normal' },
1560
- '.ordinal': {
1561
- '@defaults font-variant-numeric': {},
1562
- '--tw-ordinal': 'ordinal',
1563
- 'font-variant-numeric': 'var(--tw-font-variant-numeric)',
1564
- },
1565
- '.slashed-zero': {
1566
- '@defaults font-variant-numeric': {},
1567
- '--tw-slashed-zero': 'slashed-zero',
1568
- 'font-variant-numeric': 'var(--tw-font-variant-numeric)',
1569
- },
1570
- '.lining-nums': {
1571
- '@defaults font-variant-numeric': {},
1572
- '--tw-numeric-figure': 'lining-nums',
1573
- 'font-variant-numeric': 'var(--tw-font-variant-numeric)',
1574
- },
1575
- '.oldstyle-nums': {
1576
- '@defaults font-variant-numeric': {},
1577
- '--tw-numeric-figure': 'oldstyle-nums',
1578
- 'font-variant-numeric': 'var(--tw-font-variant-numeric)',
1579
- },
1580
- '.proportional-nums': {
1581
- '@defaults font-variant-numeric': {},
1582
- '--tw-numeric-spacing': 'proportional-nums',
1583
- 'font-variant-numeric': 'var(--tw-font-variant-numeric)',
1584
- },
1585
- '.tabular-nums': {
1586
- '@defaults font-variant-numeric': {},
1587
- '--tw-numeric-spacing': 'tabular-nums',
1588
- 'font-variant-numeric': 'var(--tw-font-variant-numeric)',
1589
- },
1590
- '.diagonal-fractions': {
1591
- '@defaults font-variant-numeric': {},
1592
- '--tw-numeric-fraction': 'diagonal-fractions',
1593
- 'font-variant-numeric': 'var(--tw-font-variant-numeric)',
1594
- },
1595
- '.stacked-fractions': {
1596
- '@defaults font-variant-numeric': {},
1597
- '--tw-numeric-fraction': 'stacked-fractions',
1598
- 'font-variant-numeric': 'var(--tw-font-variant-numeric)',
1599
- },
1600
- })
1601
- },
1602
-
1603
- lineHeight: createUtilityPlugin('lineHeight', [['leading', ['lineHeight']]]),
1604
- letterSpacing: createUtilityPlugin('letterSpacing', [['tracking', ['letterSpacing']]], {
1605
- supportsNegativeValues: true,
1606
- }),
1607
-
1608
- textColor: ({ matchUtilities, theme, corePlugins }) => {
1609
- matchUtilities(
1610
- {
1611
- text: (value) => {
1612
- if (!corePlugins('textOpacity')) {
1613
- return { color: toColorValue(value) }
1614
- }
1615
-
1616
- return withAlphaVariable({
1617
- color: value,
1618
- property: 'color',
1619
- variable: '--tw-text-opacity',
1620
- })
1621
- },
1622
- },
1623
- { values: flattenColorPalette(theme('textColor')), type: 'color' }
1624
- )
1625
- },
1626
-
1627
- textOpacity: createUtilityPlugin('textOpacity', [['text-opacity', ['--tw-text-opacity']]]),
1628
-
1629
- textDecoration: ({ addUtilities }) => {
1630
- addUtilities({
1631
- '.underline': { 'text-decoration': 'underline' },
1632
- '.line-through': { 'text-decoration': 'line-through' },
1633
- '.no-underline': { 'text-decoration': 'none' },
1634
- })
1635
- },
1636
-
1637
- textDecorationColor: ({ matchUtilities, theme }) => {
1638
- matchUtilities(
1639
- {
1640
- decoration: (value) => {
1641
- return { 'text-decoration-color': toColorValue(value) }
1642
- },
1643
- },
1644
- { values: flattenColorPalette(theme('textDecorationColor')), type: ['color', 'any'] }
1645
- )
1646
- },
1647
-
1648
- fontSmoothing: ({ addUtilities }) => {
1649
- addUtilities({
1650
- '.antialiased': {
1651
- '-webkit-font-smoothing': 'antialiased',
1652
- '-moz-osx-font-smoothing': 'grayscale',
1653
- },
1654
- '.subpixel-antialiased': {
1655
- '-webkit-font-smoothing': 'auto',
1656
- '-moz-osx-font-smoothing': 'auto',
1657
- },
1658
- })
1659
- },
1660
-
1661
- placeholderColor: ({ matchUtilities, theme, corePlugins }) => {
1662
- matchUtilities(
1663
- {
1664
- placeholder: (value) => {
1665
- if (!corePlugins('placeholderOpacity')) {
1666
- return {
1667
- '&::placeholder': {
1668
- color: toColorValue(value),
1669
- },
1670
- }
1671
- }
1672
-
1673
- return {
1674
- '&::placeholder': withAlphaVariable({
1675
- color: value,
1676
- property: 'color',
1677
- variable: '--tw-placeholder-opacity',
1678
- }),
1679
- }
1680
- },
1681
- },
1682
- { values: flattenColorPalette(theme('placeholderColor')), type: ['color', 'any'] }
1683
- )
1684
- },
1685
-
1686
- placeholderOpacity: ({ matchUtilities, theme }) => {
1687
- matchUtilities(
1688
- {
1689
- 'placeholder-opacity': (value) => {
1690
- return { ['&::placeholder']: { '--tw-placeholder-opacity': value } }
1691
- },
1692
- },
1693
- { values: theme('placeholderOpacity') }
1694
- )
1695
- },
1696
-
1697
- caretColor: ({ matchUtilities, theme }) => {
1698
- matchUtilities(
1699
- {
1700
- caret: (value) => {
1701
- return { 'caret-color': toColorValue(value) }
1702
- },
1703
- },
1704
- { values: flattenColorPalette(theme('caretColor')), type: ['color', 'any'] }
1705
- )
1706
- },
1707
-
1708
- accentColor: ({ matchUtilities, theme }) => {
1709
- matchUtilities(
1710
- {
1711
- accent: (value) => {
1712
- return { 'accent-color': toColorValue(value) }
1713
- },
1714
- },
1715
- { values: flattenColorPalette(theme('accentColor')), type: ['color', 'any'] }
1716
- )
1717
- },
1718
-
1719
- opacity: createUtilityPlugin('opacity', [['opacity', ['opacity']]]),
1720
-
1721
- backgroundBlendMode: ({ addUtilities }) => {
1722
- addUtilities({
1723
- '.bg-blend-normal': { 'background-blend-mode': 'normal' },
1724
- '.bg-blend-multiply': { 'background-blend-mode': 'multiply' },
1725
- '.bg-blend-screen': { 'background-blend-mode': 'screen' },
1726
- '.bg-blend-overlay': { 'background-blend-mode': 'overlay' },
1727
- '.bg-blend-darken': { 'background-blend-mode': 'darken' },
1728
- '.bg-blend-lighten': { 'background-blend-mode': 'lighten' },
1729
- '.bg-blend-color-dodge': { 'background-blend-mode': 'color-dodge' },
1730
- '.bg-blend-color-burn': { 'background-blend-mode': 'color-burn' },
1731
- '.bg-blend-hard-light': { 'background-blend-mode': 'hard-light' },
1732
- '.bg-blend-soft-light': { 'background-blend-mode': 'soft-light' },
1733
- '.bg-blend-difference': { 'background-blend-mode': 'difference' },
1734
- '.bg-blend-exclusion': { 'background-blend-mode': 'exclusion' },
1735
- '.bg-blend-hue': { 'background-blend-mode': 'hue' },
1736
- '.bg-blend-saturation': { 'background-blend-mode': 'saturation' },
1737
- '.bg-blend-color': { 'background-blend-mode': 'color' },
1738
- '.bg-blend-luminosity': { 'background-blend-mode': 'luminosity' },
1739
- })
1740
- },
1741
-
1742
- mixBlendMode: ({ addUtilities }) => {
1743
- addUtilities({
1744
- '.mix-blend-normal': { 'mix-blend-mode': 'normal' },
1745
- '.mix-blend-multiply': { 'mix-blend-mode': 'multiply' },
1746
- '.mix-blend-screen': { 'mix-blend-mode': 'screen' },
1747
- '.mix-blend-overlay': { 'mix-blend-mode': 'overlay' },
1748
- '.mix-blend-darken': { 'mix-blend-mode': 'darken' },
1749
- '.mix-blend-lighten': { 'mix-blend-mode': 'lighten' },
1750
- '.mix-blend-color-dodge': { 'mix-blend-mode': 'color-dodge' },
1751
- '.mix-blend-color-burn': { 'mix-blend-mode': 'color-burn' },
1752
- '.mix-blend-hard-light': { 'mix-blend-mode': 'hard-light' },
1753
- '.mix-blend-soft-light': { 'mix-blend-mode': 'soft-light' },
1754
- '.mix-blend-difference': { 'mix-blend-mode': 'difference' },
1755
- '.mix-blend-exclusion': { 'mix-blend-mode': 'exclusion' },
1756
- '.mix-blend-hue': { 'mix-blend-mode': 'hue' },
1757
- '.mix-blend-saturation': { 'mix-blend-mode': 'saturation' },
1758
- '.mix-blend-color': { 'mix-blend-mode': 'color' },
1759
- '.mix-blend-luminosity': { 'mix-blend-mode': 'luminosity' },
1760
- })
1761
- },
1762
-
1763
- boxShadow: (() => {
1764
- let transformValue = transformThemeValue('boxShadow')
1765
- let defaultBoxShadow = [
1766
- `var(--tw-ring-offset-shadow, 0 0 #0000)`,
1767
- `var(--tw-ring-shadow, 0 0 #0000)`,
1768
- `var(--tw-shadow)`,
1769
- ].join(', ')
1770
-
1771
- return function ({ matchUtilities, addBase, theme }) {
1772
- addBase({
1773
- '@defaults box-shadow': {
1774
- '--tw-ring-offset-shadow': '0 0 #0000',
1775
- '--tw-ring-shadow': '0 0 #0000',
1776
- '--tw-shadow': '0 0 #0000',
1777
- },
1778
- })
1779
-
1780
- matchUtilities(
1781
- {
1782
- shadow: (value) => {
1783
- value = transformValue(value)
1784
-
1785
- return {
1786
- '@defaults box-shadow': {},
1787
- '--tw-shadow': value === 'none' ? '0 0 #0000' : value,
1788
- 'box-shadow': defaultBoxShadow,
1789
- }
1790
- },
1791
- },
1792
- { values: theme('boxShadow') }
1793
- )
1794
- }
1795
- })(),
1796
-
1797
- outlineStyle: ({ addUtilities }) => {
1798
- addUtilities({
1799
- '.outline-none': {
1800
- outline: '2px solid transparent',
1801
- 'outline-offset': '2px',
1802
- },
1803
- '.outline': { 'outline-style': 'solid' },
1804
- '.outline-dashed': { 'outline-style': 'dashed' },
1805
- '.outline-dotted': { 'outline-style': 'dotted' },
1806
- '.outline-double': { 'outline-style': 'double' },
1807
- '.outline-hidden': { 'outline-style': 'hidden' },
1808
- })
1809
- },
1810
-
1811
- outlineWidth: createUtilityPlugin('outlineWidth', [['outline', ['outline-width']]], {
1812
- type: ['length', 'number', 'percentage'],
1813
- }),
1814
-
1815
- outlineOffset: createUtilityPlugin('outlineOffset', [['outline-offset', ['outline-offset']]], {
1816
- type: ['length', 'number', 'percentage'],
1817
- }),
1818
-
1819
- outlineColor: ({ matchUtilities, theme }) => {
1820
- matchUtilities(
1821
- {
1822
- outline: (value) => {
1823
- return { 'outline-color': toColorValue(value) }
1824
- },
1825
- },
1826
- { values: flattenColorPalette(theme('outlineColor')), type: ['color'] }
1827
- )
1828
- },
1829
-
1830
- ringWidth: ({ matchUtilities, addBase, addUtilities, theme }) => {
1831
- let ringOpacityDefault = theme('ringOpacity.DEFAULT', '0.5')
1832
- let ringColorDefault = withAlphaValue(
1833
- theme('ringColor.DEFAULT'),
1834
- ringOpacityDefault,
1835
- `rgb(147 197 253 / ${ringOpacityDefault})`
1836
- )
1837
-
1838
- addBase({
1839
- '@defaults ring-width': {
1840
- '--tw-ring-inset': 'var(--tw-empty,/*!*/ /*!*/)',
1841
- '--tw-ring-offset-width': theme('ringOffsetWidth.DEFAULT', '0px'),
1842
- '--tw-ring-offset-color': theme('ringOffsetColor.DEFAULT', '#fff'),
1843
- '--tw-ring-color': ringColorDefault,
1844
- '--tw-ring-offset-shadow': '0 0 #0000',
1845
- '--tw-ring-shadow': '0 0 #0000',
1846
- '--tw-shadow': '0 0 #0000',
1847
- },
1848
- })
1849
-
1850
- matchUtilities(
1851
- {
1852
- ring: (value) => {
1853
- return {
1854
- '@defaults ring-width': {},
1855
- '--tw-ring-offset-shadow': `var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)`,
1856
- '--tw-ring-shadow': `var(--tw-ring-inset) 0 0 0 calc(${value} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,
1857
- 'box-shadow': [
1858
- `var(--tw-ring-offset-shadow)`,
1859
- `var(--tw-ring-shadow)`,
1860
- `var(--tw-shadow, 0 0 #0000)`,
1861
- ].join(', '),
1862
- }
1863
- },
1864
- },
1865
- { values: theme('ringWidth'), type: 'length' }
1866
- )
1867
-
1868
- addUtilities({
1869
- '.ring-inset': { '@defaults ring-width': {}, '--tw-ring-inset': 'inset' },
1870
- })
1871
- },
1872
-
1873
- ringColor: ({ matchUtilities, theme }) => {
1874
- matchUtilities(
1875
- {
1876
- ring: (value) => {
1877
- return withAlphaVariable({
1878
- color: value,
1879
- property: '--tw-ring-color',
1880
- variable: '--tw-ring-opacity',
1881
- })
1882
- },
1883
- },
1884
- {
1885
- values: Object.fromEntries(
1886
- Object.entries(flattenColorPalette(theme('ringColor'))).filter(
1887
- ([modifier]) => modifier !== 'DEFAULT'
1888
- )
1889
- ),
1890
- type: 'color',
1891
- }
1892
- )
1893
- },
1894
-
1895
- ringOpacity: createUtilityPlugin('ringOpacity', [['ring-opacity', ['--tw-ring-opacity']]], {
1896
- filterDefault: true,
1897
- }),
1898
- ringOffsetWidth: createUtilityPlugin(
1899
- 'ringOffsetWidth',
1900
- [['ring-offset', ['--tw-ring-offset-width']]],
1901
- { type: 'length' }
1902
- ),
1903
-
1904
- ringOffsetColor: ({ matchUtilities, theme }) => {
1905
- matchUtilities(
1906
- {
1907
- 'ring-offset': (value) => {
1908
- return {
1909
- '--tw-ring-offset-color': toColorValue(value),
1910
- }
1911
- },
1912
- },
1913
- { values: flattenColorPalette(theme('ringOffsetColor')), type: 'color' }
1914
- )
1915
- },
1916
-
1917
- blur: ({ matchUtilities, theme }) => {
1918
- matchUtilities(
1919
- {
1920
- blur: (value) => {
1921
- return {
1922
- '--tw-blur': `blur(${value})`,
1923
- '@defaults filter': {},
1924
- filter: 'var(--tw-filter)',
1925
- }
1926
- },
1927
- },
1928
- { values: theme('blur') }
1929
- )
1930
- },
1931
-
1932
- brightness: ({ matchUtilities, theme }) => {
1933
- matchUtilities(
1934
- {
1935
- brightness: (value) => {
1936
- return {
1937
- '--tw-brightness': `brightness(${value})`,
1938
- '@defaults filter': {},
1939
- filter: 'var(--tw-filter)',
1940
- }
1941
- },
1942
- },
1943
- { values: theme('brightness') }
1944
- )
1945
- },
1946
-
1947
- contrast: ({ matchUtilities, theme }) => {
1948
- matchUtilities(
1949
- {
1950
- contrast: (value) => {
1951
- return {
1952
- '--tw-contrast': `contrast(${value})`,
1953
- '@defaults filter': {},
1954
- filter: 'var(--tw-filter)',
1955
- }
1956
- },
1957
- },
1958
- { values: theme('contrast') }
1959
- )
1960
- },
1961
-
1962
- dropShadow: ({ matchUtilities, theme }) => {
1963
- matchUtilities(
1964
- {
1965
- 'drop-shadow': (value) => {
1966
- return {
1967
- '--tw-drop-shadow': Array.isArray(value)
1968
- ? value.map((v) => `drop-shadow(${v})`).join(' ')
1969
- : `drop-shadow(${value})`,
1970
- '@defaults filter': {},
1971
- filter: 'var(--tw-filter)',
1972
- }
1973
- },
1974
- },
1975
- { values: theme('dropShadow') }
1976
- )
1977
- },
1978
-
1979
- grayscale: ({ matchUtilities, theme }) => {
1980
- matchUtilities(
1981
- {
1982
- grayscale: (value) => {
1983
- return {
1984
- '--tw-grayscale': `grayscale(${value})`,
1985
- '@defaults filter': {},
1986
- filter: 'var(--tw-filter)',
1987
- }
1988
- },
1989
- },
1990
- { values: theme('grayscale') }
1991
- )
1992
- },
1993
-
1994
- hueRotate: ({ matchUtilities, theme }) => {
1995
- matchUtilities(
1996
- {
1997
- 'hue-rotate': (value) => {
1998
- return {
1999
- '--tw-hue-rotate': `hue-rotate(${value})`,
2000
- '@defaults filter': {},
2001
- filter: 'var(--tw-filter)',
2002
- }
2003
- },
2004
- },
2005
- { values: theme('hueRotate'), supportsNegativeValues: true }
2006
- )
2007
- },
2008
-
2009
- invert: ({ matchUtilities, theme }) => {
2010
- matchUtilities(
2011
- {
2012
- invert: (value) => {
2013
- return {
2014
- '--tw-invert': `invert(${value})`,
2015
- '@defaults filter': {},
2016
- filter: 'var(--tw-filter)',
2017
- }
2018
- },
2019
- },
2020
- { values: theme('invert') }
2021
- )
2022
- },
2023
-
2024
- saturate: ({ matchUtilities, theme }) => {
2025
- matchUtilities(
2026
- {
2027
- saturate: (value) => {
2028
- return {
2029
- '--tw-saturate': `saturate(${value})`,
2030
- '@defaults filter': {},
2031
- filter: 'var(--tw-filter)',
2032
- }
2033
- },
2034
- },
2035
- { values: theme('saturate') }
2036
- )
2037
- },
2038
-
2039
- sepia: ({ matchUtilities, theme }) => {
2040
- matchUtilities(
2041
- {
2042
- sepia: (value) => {
2043
- return {
2044
- '--tw-sepia': `sepia(${value})`,
2045
- '@defaults filter': {},
2046
- filter: 'var(--tw-filter)',
2047
- }
2048
- },
2049
- },
2050
- { values: theme('sepia') }
2051
- )
2052
- },
2053
-
2054
- filter: ({ addBase, addUtilities }) => {
2055
- addBase({
2056
- '@defaults filter': {
2057
- '--tw-blur': 'var(--tw-empty,/*!*/ /*!*/)',
2058
- '--tw-brightness': 'var(--tw-empty,/*!*/ /*!*/)',
2059
- '--tw-contrast': 'var(--tw-empty,/*!*/ /*!*/)',
2060
- '--tw-grayscale': 'var(--tw-empty,/*!*/ /*!*/)',
2061
- '--tw-hue-rotate': 'var(--tw-empty,/*!*/ /*!*/)',
2062
- '--tw-invert': 'var(--tw-empty,/*!*/ /*!*/)',
2063
- '--tw-saturate': 'var(--tw-empty,/*!*/ /*!*/)',
2064
- '--tw-sepia': 'var(--tw-empty,/*!*/ /*!*/)',
2065
- '--tw-drop-shadow': 'var(--tw-empty,/*!*/ /*!*/)',
2066
- '--tw-filter': [
2067
- 'var(--tw-blur)',
2068
- 'var(--tw-brightness)',
2069
- 'var(--tw-contrast)',
2070
- 'var(--tw-grayscale)',
2071
- 'var(--tw-hue-rotate)',
2072
- 'var(--tw-invert)',
2073
- 'var(--tw-saturate)',
2074
- 'var(--tw-sepia)',
2075
- 'var(--tw-drop-shadow)',
2076
- ].join(' '),
2077
- },
2078
- })
2079
- addUtilities({
2080
- '.filter': { '@defaults filter': {}, filter: 'var(--tw-filter)' },
2081
- '.filter-none': { filter: 'none' },
2082
- })
2083
- },
2084
-
2085
- backdropBlur: ({ matchUtilities, theme }) => {
2086
- matchUtilities(
2087
- {
2088
- 'backdrop-blur': (value) => {
2089
- return {
2090
- '--tw-backdrop-blur': `blur(${value})`,
2091
- '@defaults backdrop-filter': {},
2092
- 'backdrop-filter': 'var(--tw-backdrop-filter)',
2093
- }
2094
- },
2095
- },
2096
- { values: theme('backdropBlur') }
2097
- )
2098
- },
2099
-
2100
- backdropBrightness: ({ matchUtilities, theme }) => {
2101
- matchUtilities(
2102
- {
2103
- 'backdrop-brightness': (value) => {
2104
- return {
2105
- '--tw-backdrop-brightness': `brightness(${value})`,
2106
- '@defaults backdrop-filter': {},
2107
- 'backdrop-filter': 'var(--tw-backdrop-filter)',
2108
- }
2109
- },
2110
- },
2111
- { values: theme('backdropBrightness') }
2112
- )
2113
- },
2114
-
2115
- backdropContrast: ({ matchUtilities, theme }) => {
2116
- matchUtilities(
2117
- {
2118
- 'backdrop-contrast': (value) => {
2119
- return {
2120
- '--tw-backdrop-contrast': `contrast(${value})`,
2121
- '@defaults backdrop-filter': {},
2122
- 'backdrop-filter': 'var(--tw-backdrop-filter)',
2123
- }
2124
- },
2125
- },
2126
- { values: theme('backdropContrast') }
2127
- )
2128
- },
2129
-
2130
- backdropGrayscale: ({ matchUtilities, theme }) => {
2131
- matchUtilities(
2132
- {
2133
- 'backdrop-grayscale': (value) => {
2134
- return {
2135
- '--tw-backdrop-grayscale': `grayscale(${value})`,
2136
- '@defaults backdrop-filter': {},
2137
- 'backdrop-filter': 'var(--tw-backdrop-filter)',
2138
- }
2139
- },
2140
- },
2141
- { values: theme('backdropGrayscale') }
2142
- )
2143
- },
2144
-
2145
- backdropHueRotate: ({ matchUtilities, theme }) => {
2146
- matchUtilities(
2147
- {
2148
- 'backdrop-hue-rotate': (value) => {
2149
- return {
2150
- '--tw-backdrop-hue-rotate': `hue-rotate(${value})`,
2151
- '@defaults backdrop-filter': {},
2152
- 'backdrop-filter': 'var(--tw-backdrop-filter)',
2153
- }
2154
- },
2155
- },
2156
- { values: theme('backdropHueRotate'), supportsNegativeValues: true }
2157
- )
2158
- },
2159
-
2160
- backdropInvert: ({ matchUtilities, theme }) => {
2161
- matchUtilities(
2162
- {
2163
- 'backdrop-invert': (value) => {
2164
- return {
2165
- '--tw-backdrop-invert': `invert(${value})`,
2166
- '@defaults backdrop-filter': {},
2167
- 'backdrop-filter': 'var(--tw-backdrop-filter)',
2168
- }
2169
- },
2170
- },
2171
- { values: theme('backdropInvert') }
2172
- )
2173
- },
2174
-
2175
- backdropOpacity: ({ matchUtilities, theme }) => {
2176
- matchUtilities(
2177
- {
2178
- 'backdrop-opacity': (value) => {
2179
- return {
2180
- '--tw-backdrop-opacity': `opacity(${value})`,
2181
- '@defaults backdrop-filter': {},
2182
- 'backdrop-filter': 'var(--tw-backdrop-filter)',
2183
- }
2184
- },
2185
- },
2186
- { values: theme('backdropOpacity') }
2187
- )
2188
- },
2189
-
2190
- backdropSaturate: ({ matchUtilities, theme }) => {
2191
- matchUtilities(
2192
- {
2193
- 'backdrop-saturate': (value) => {
2194
- return {
2195
- '--tw-backdrop-saturate': `saturate(${value})`,
2196
- '@defaults backdrop-filter': {},
2197
- 'backdrop-filter': 'var(--tw-backdrop-filter)',
2198
- }
2199
- },
2200
- },
2201
- { values: theme('backdropSaturate') }
2202
- )
2203
- },
2204
-
2205
- backdropSepia: ({ matchUtilities, theme }) => {
2206
- matchUtilities(
2207
- {
2208
- 'backdrop-sepia': (value) => {
2209
- return {
2210
- '--tw-backdrop-sepia': `sepia(${value})`,
2211
- '@defaults backdrop-filter': {},
2212
- 'backdrop-filter': 'var(--tw-backdrop-filter)',
2213
- }
2214
- },
2215
- },
2216
- { values: theme('backdropSepia') }
2217
- )
2218
- },
2219
-
2220
- backdropFilter: ({ addBase, addUtilities }) => {
2221
- addBase({
2222
- '@defaults backdrop-filter': {
2223
- '--tw-backdrop-blur': 'var(--tw-empty,/*!*/ /*!*/)',
2224
- '--tw-backdrop-brightness': 'var(--tw-empty,/*!*/ /*!*/)',
2225
- '--tw-backdrop-contrast': 'var(--tw-empty,/*!*/ /*!*/)',
2226
- '--tw-backdrop-grayscale': 'var(--tw-empty,/*!*/ /*!*/)',
2227
- '--tw-backdrop-hue-rotate': 'var(--tw-empty,/*!*/ /*!*/)',
2228
- '--tw-backdrop-invert': 'var(--tw-empty,/*!*/ /*!*/)',
2229
- '--tw-backdrop-opacity': 'var(--tw-empty,/*!*/ /*!*/)',
2230
- '--tw-backdrop-saturate': 'var(--tw-empty,/*!*/ /*!*/)',
2231
- '--tw-backdrop-sepia': 'var(--tw-empty,/*!*/ /*!*/)',
2232
- '--tw-backdrop-filter': [
2233
- 'var(--tw-backdrop-blur)',
2234
- 'var(--tw-backdrop-brightness)',
2235
- 'var(--tw-backdrop-contrast)',
2236
- 'var(--tw-backdrop-grayscale)',
2237
- 'var(--tw-backdrop-hue-rotate)',
2238
- 'var(--tw-backdrop-invert)',
2239
- 'var(--tw-backdrop-opacity)',
2240
- 'var(--tw-backdrop-saturate)',
2241
- 'var(--tw-backdrop-sepia)',
2242
- ].join(' '),
2243
- },
2244
- })
2245
- addUtilities({
2246
- '.backdrop-filter': {
2247
- '@defaults backdrop-filter': {},
2248
- 'backdrop-filter': 'var(--tw-backdrop-filter)',
2249
- },
2250
- '.backdrop-filter-none': { 'backdrop-filter': 'none' },
2251
- })
2252
- },
2253
-
2254
- transitionProperty: ({ matchUtilities, theme }) => {
2255
- let defaultTimingFunction = theme('transitionTimingFunction.DEFAULT')
2256
- let defaultDuration = theme('transitionDuration.DEFAULT')
2257
-
2258
- matchUtilities(
2259
- {
2260
- transition: (value) => {
2261
- return {
2262
- 'transition-property': value,
2263
- ...(value === 'none'
2264
- ? {}
2265
- : {
2266
- 'transition-timing-function': defaultTimingFunction,
2267
- 'transition-duration': defaultDuration,
2268
- }),
2269
- }
2270
- },
2271
- },
2272
- { values: theme('transitionProperty') }
2273
- )
2274
- },
2275
-
2276
- transitionDelay: createUtilityPlugin('transitionDelay', [['delay', ['transitionDelay']]]),
2277
- transitionDuration: createUtilityPlugin(
2278
- 'transitionDuration',
2279
- [['duration', ['transitionDuration']]],
2280
- { filterDefault: true }
2281
- ),
2282
- transitionTimingFunction: createUtilityPlugin(
2283
- 'transitionTimingFunction',
2284
- [['ease', ['transitionTimingFunction']]],
2285
- { filterDefault: true }
2286
- ),
2287
- willChange: createUtilityPlugin('willChange', [['will-change', ['will-change']]]),
2288
- content: createUtilityPlugin('content', [
2289
- ['content', ['--tw-content', ['content', 'var(--tw-content)']]],
2290
- ]),
2291
- }