tailwindcss 0.0.0-insiders.ca1dfd6 → 0.0.0-insiders.ca7b10e

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 (179) hide show
  1. package/LICENSE +1 -2
  2. package/README.md +18 -11
  3. package/dist/chunk-7MHEDNEU.mjs +1 -0
  4. package/dist/chunk-AZANAYY2.mjs +1 -0
  5. package/dist/chunk-YTVGJJD3.mjs +12 -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 +1 -0
  18. package/dist/flatten-color-palette.mjs +1 -0
  19. package/dist/lib.d.mts +264 -0
  20. package/dist/lib.d.ts +3 -0
  21. package/dist/lib.js +33 -0
  22. package/dist/lib.mjs +22 -0
  23. package/dist/plugin.d.mts +11 -0
  24. package/dist/plugin.d.ts +104 -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-B254mqw1.d.mts +98 -0
  30. package/index.css +866 -0
  31. package/package.json +73 -100
  32. package/preflight.css +375 -0
  33. package/theme.css +453 -0
  34. package/CHANGELOG.md +0 -1758
  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 -707
  42. package/lib/constants.js +0 -37
  43. package/lib/corePluginList.js +0 -169
  44. package/lib/corePlugins.js +0 -3525
  45. package/lib/css/LICENSE +0 -25
  46. package/lib/css/preflight.css +0 -354
  47. package/lib/featureFlags.js +0 -57
  48. package/lib/index.js +0 -32
  49. package/lib/lib/collapseAdjacentRules.js +0 -41
  50. package/lib/lib/detectNesting.js +0 -19
  51. package/lib/lib/evaluateTailwindFunctions.js +0 -167
  52. package/lib/lib/expandApplyAtRules.js +0 -228
  53. package/lib/lib/expandTailwindAtRules.js +0 -257
  54. package/lib/lib/generateRules.js +0 -350
  55. package/lib/lib/getModuleDependencies.js +0 -48
  56. package/lib/lib/normalizeTailwindDirectives.js +0 -75
  57. package/lib/lib/resolveDefaultsAtRules.js +0 -128
  58. package/lib/lib/setupContextUtils.js +0 -791
  59. package/lib/lib/setupTrackingContext.js +0 -170
  60. package/lib/lib/setupWatchingContext.js +0 -284
  61. package/lib/lib/sharedState.js +0 -29
  62. package/lib/lib/substituteScreenAtRules.js +0 -24
  63. package/lib/processTailwindFeatures.js +0 -47
  64. package/lib/public/colors.js +0 -333
  65. package/lib/public/create-plugin.js +0 -13
  66. package/lib/public/default-config.js +0 -14
  67. package/lib/public/default-theme.js +0 -14
  68. package/lib/public/resolve-config.js +0 -19
  69. package/lib/util/bigSign.js +0 -8
  70. package/lib/util/buildMediaQuery.js +0 -31
  71. package/lib/util/cloneDeep.js +0 -19
  72. package/lib/util/cloneNodes.js +0 -14
  73. package/lib/util/color.js +0 -84
  74. package/lib/util/configurePlugins.js +0 -18
  75. package/lib/util/createPlugin.js +0 -30
  76. package/lib/util/createUtilityPlugin.js +0 -53
  77. package/lib/util/dataTypes.js +0 -202
  78. package/lib/util/defaults.js +0 -16
  79. package/lib/util/escapeClassName.js +0 -19
  80. package/lib/util/escapeCommas.js +0 -8
  81. package/lib/util/flattenColorPalette.js +0 -19
  82. package/lib/util/getAllConfigs.js +0 -29
  83. package/lib/util/hashConfig.js +0 -16
  84. package/lib/util/isKeyframeRule.js +0 -8
  85. package/lib/util/isPlainObject.js +0 -12
  86. package/lib/util/log.js +0 -35
  87. package/lib/util/nameClass.js +0 -31
  88. package/lib/util/negateValue.js +0 -17
  89. package/lib/util/parseAnimationValue.js +0 -89
  90. package/lib/util/parseDependency.js +0 -63
  91. package/lib/util/parseObjectStyles.js +0 -31
  92. package/lib/util/pluginUtils.js +0 -282
  93. package/lib/util/prefixSelector.js +0 -23
  94. package/lib/util/resolveConfig.js +0 -293
  95. package/lib/util/resolveConfigPath.js +0 -52
  96. package/lib/util/responsive.js +0 -19
  97. package/lib/util/tap.js +0 -9
  98. package/lib/util/toColorValue.js +0 -9
  99. package/lib/util/toPath.js +0 -9
  100. package/lib/util/transformThemeValue.js +0 -53
  101. package/lib/util/withAlphaVariable.js +0 -67
  102. package/nesting/README.md +0 -42
  103. package/nesting/index.js +0 -12
  104. package/nesting/plugin.js +0 -41
  105. package/peers/index.js +0 -77111
  106. package/plugin.js +0 -1
  107. package/prettier.config.js +0 -19
  108. package/resolveConfig.js +0 -1
  109. package/screens.css +0 -1
  110. package/scripts/create-plugin-list.js +0 -10
  111. package/scripts/install-integrations.js +0 -27
  112. package/scripts/rebuildFixtures.js +0 -68
  113. package/src/cli-peer-dependencies.js +0 -9
  114. package/src/cli.js +0 -762
  115. package/src/constants.js +0 -17
  116. package/src/corePluginList.js +0 -1
  117. package/src/corePlugins.js +0 -2382
  118. package/src/css/LICENSE +0 -25
  119. package/src/css/preflight.css +0 -354
  120. package/src/featureFlags.js +0 -48
  121. package/src/index.js +0 -34
  122. package/src/lib/collapseAdjacentRules.js +0 -39
  123. package/src/lib/detectNesting.js +0 -20
  124. package/src/lib/evaluateTailwindFunctions.js +0 -195
  125. package/src/lib/expandApplyAtRules.js +0 -251
  126. package/src/lib/expandTailwindAtRules.js +0 -266
  127. package/src/lib/generateRules.js +0 -320
  128. package/src/lib/getModuleDependencies.js +0 -39
  129. package/src/lib/normalizeTailwindDirectives.js +0 -77
  130. package/src/lib/resolveDefaultsAtRules.js +0 -125
  131. package/src/lib/setupContextUtils.js +0 -775
  132. package/src/lib/setupTrackingContext.js +0 -184
  133. package/src/lib/setupWatchingContext.js +0 -306
  134. package/src/lib/sharedState.js +0 -13
  135. package/src/lib/substituteScreenAtRules.js +0 -16
  136. package/src/processTailwindFeatures.js +0 -43
  137. package/src/public/colors.js +0 -305
  138. package/src/public/create-plugin.js +0 -2
  139. package/src/public/default-config.js +0 -4
  140. package/src/public/default-theme.js +0 -4
  141. package/src/public/resolve-config.js +0 -7
  142. package/src/util/bigSign.js +0 -3
  143. package/src/util/buildMediaQuery.js +0 -24
  144. package/src/util/cloneDeep.js +0 -11
  145. package/src/util/cloneNodes.js +0 -11
  146. package/src/util/color.js +0 -56
  147. package/src/util/configurePlugins.js +0 -23
  148. package/src/util/createPlugin.js +0 -27
  149. package/src/util/createUtilityPlugin.js +0 -37
  150. package/src/util/dataTypes.js +0 -216
  151. package/src/util/defaults.js +0 -11
  152. package/src/util/escapeClassName.js +0 -8
  153. package/src/util/escapeCommas.js +0 -3
  154. package/src/util/flattenColorPalette.js +0 -13
  155. package/src/util/getAllConfigs.js +0 -19
  156. package/src/util/hashConfig.js +0 -5
  157. package/src/util/isKeyframeRule.js +0 -3
  158. package/src/util/isPlainObject.js +0 -8
  159. package/src/util/log.js +0 -28
  160. package/src/util/nameClass.js +0 -26
  161. package/src/util/negateValue.js +0 -14
  162. package/src/util/parseAnimationValue.js +0 -68
  163. package/src/util/parseDependency.js +0 -49
  164. package/src/util/parseObjectStyles.js +0 -19
  165. package/src/util/pluginUtils.js +0 -288
  166. package/src/util/prefixSelector.js +0 -15
  167. package/src/util/resolveConfig.js +0 -282
  168. package/src/util/resolveConfigPath.js +0 -55
  169. package/src/util/responsive.js +0 -10
  170. package/src/util/tap.js +0 -4
  171. package/src/util/toColorValue.js +0 -3
  172. package/src/util/toPath.js +0 -4
  173. package/src/util/transformThemeValue.js +0 -37
  174. package/src/util/withAlphaVariable.js +0 -49
  175. package/stubs/defaultConfig.stub.js +0 -890
  176. package/stubs/defaultPostCssConfig.stub.js +0 -6
  177. package/stubs/simpleConfig.stub.js +0 -8
  178. package/tailwind.css +0 -5
  179. package/variants.css +0 -1
@@ -1,3525 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- exports.default = void 0;
6
- var _fs = _interopRequireDefault(require("fs"));
7
- var _postcss = _interopRequireDefault(require("postcss"));
8
- var _createUtilityPlugin = _interopRequireDefault(require("./util/createUtilityPlugin"));
9
- var _buildMediaQuery = _interopRequireDefault(require("./util/buildMediaQuery"));
10
- var _prefixSelector = _interopRequireDefault(require("./util/prefixSelector"));
11
- var _parseAnimationValue = _interopRequireDefault(require("./util/parseAnimationValue"));
12
- var _flattenColorPalette = _interopRequireDefault(require("./util/flattenColorPalette"));
13
- var _withAlphaVariable = _interopRequireWildcard(require("./util/withAlphaVariable"));
14
- var _toColorValue = _interopRequireDefault(require("./util/toColorValue"));
15
- var _isPlainObject = _interopRequireDefault(require("./util/isPlainObject"));
16
- var _transformThemeValue = _interopRequireDefault(require("./util/transformThemeValue"));
17
- var _pluginUtils = require("./util/pluginUtils");
18
- var _packageJson = require("../package.json");
19
- var _log = _interopRequireDefault(require("./util/log"));
20
- function _interopRequireDefault(obj) {
21
- return obj && obj.__esModule ? obj : {
22
- default: obj
23
- };
24
- }
25
- function _interopRequireWildcard(obj) {
26
- if (obj && obj.__esModule) {
27
- return obj;
28
- } else {
29
- var newObj = {
30
- };
31
- if (obj != null) {
32
- for(var key in obj){
33
- if (Object.prototype.hasOwnProperty.call(obj, key)) {
34
- var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {
35
- };
36
- if (desc.get || desc.set) {
37
- Object.defineProperty(newObj, key, desc);
38
- } else {
39
- newObj[key] = obj[key];
40
- }
41
- }
42
- }
43
- }
44
- newObj.default = obj;
45
- return newObj;
46
- }
47
- }
48
- var _default = {
49
- // Variant plugins
50
- pseudoElementVariants: ({ config , addVariant })=>{
51
- addVariant('first-letter', (0, _pluginUtils).transformAllSelectors((selector)=>{
52
- return (0, _pluginUtils).updateAllClasses(selector, (className, { withPseudo })=>{
53
- return withPseudo(`first-letter${config('separator')}${className}`, '::first-letter');
54
- });
55
- }));
56
- addVariant('first-line', (0, _pluginUtils).transformAllSelectors((selector)=>{
57
- return (0, _pluginUtils).updateAllClasses(selector, (className, { withPseudo })=>{
58
- return withPseudo(`first-line${config('separator')}${className}`, '::first-line');
59
- });
60
- }));
61
- addVariant('marker', [
62
- (0, _pluginUtils).transformAllSelectors((selector)=>{
63
- let variantSelector = (0, _pluginUtils).updateAllClasses(selector, (className)=>{
64
- return `marker${config('separator')}${className}`;
65
- });
66
- return `${variantSelector} *::marker`;
67
- }),
68
- (0, _pluginUtils).transformAllSelectors((selector)=>{
69
- return (0, _pluginUtils).updateAllClasses(selector, (className, { withPseudo })=>{
70
- return withPseudo(`marker${config('separator')}${className}`, '::marker');
71
- });
72
- }),
73
- ]);
74
- addVariant('selection', [
75
- (0, _pluginUtils).transformAllSelectors((selector)=>{
76
- let variantSelector = (0, _pluginUtils).updateAllClasses(selector, (className)=>{
77
- return `selection${config('separator')}${className}`;
78
- });
79
- return `${variantSelector} *::selection`;
80
- }),
81
- (0, _pluginUtils).transformAllSelectors((selector)=>{
82
- return (0, _pluginUtils).updateAllClasses(selector, (className, { withPseudo })=>{
83
- return withPseudo(`selection${config('separator')}${className}`, '::selection');
84
- });
85
- }),
86
- ]);
87
- addVariant('file', (0, _pluginUtils).transformAllSelectors((selector)=>{
88
- return (0, _pluginUtils).updateAllClasses(selector, (className, { withPseudo })=>{
89
- return withPseudo(`file${config('separator')}${className}`, '::file-selector-button');
90
- });
91
- }));
92
- addVariant('before', (0, _pluginUtils).transformAllSelectors((selector)=>{
93
- return (0, _pluginUtils).updateAllClasses(selector, (className, { withPseudo })=>{
94
- return withPseudo(`before${config('separator')}${className}`, '::before');
95
- });
96
- }, {
97
- withRule: (rule)=>{
98
- let foundContent = false;
99
- rule.walkDecls('content', ()=>{
100
- foundContent = true;
101
- });
102
- if (!foundContent) {
103
- rule.prepend(_postcss.default.decl({
104
- prop: 'content',
105
- value: '""'
106
- }));
107
- }
108
- }
109
- }));
110
- addVariant('after', (0, _pluginUtils).transformAllSelectors((selector)=>{
111
- return (0, _pluginUtils).updateAllClasses(selector, (className, { withPseudo })=>{
112
- return withPseudo(`after${config('separator')}${className}`, '::after');
113
- });
114
- }, {
115
- withRule: (rule)=>{
116
- let foundContent = false;
117
- rule.walkDecls('content', ()=>{
118
- foundContent = true;
119
- });
120
- if (!foundContent) {
121
- rule.prepend(_postcss.default.decl({
122
- prop: 'content',
123
- value: '""'
124
- }));
125
- }
126
- }
127
- }));
128
- },
129
- pseudoClassVariants: ({ config , addVariant })=>{
130
- let pseudoVariants = [
131
- // Positional
132
- [
133
- 'first',
134
- ':first-child'
135
- ],
136
- [
137
- 'last',
138
- ':last-child'
139
- ],
140
- [
141
- 'only',
142
- ':only-child'
143
- ],
144
- [
145
- 'odd',
146
- ':nth-child(odd)'
147
- ],
148
- [
149
- 'even',
150
- ':nth-child(even)'
151
- ],
152
- 'first-of-type',
153
- 'last-of-type',
154
- 'only-of-type',
155
- // State
156
- 'visited',
157
- 'target',
158
- [
159
- 'open',
160
- '[open]'
161
- ],
162
- // Forms
163
- 'default',
164
- 'checked',
165
- 'indeterminate',
166
- 'placeholder-shown',
167
- 'autofill',
168
- 'required',
169
- 'valid',
170
- 'invalid',
171
- 'in-range',
172
- 'out-of-range',
173
- 'read-only',
174
- // Content
175
- 'empty',
176
- // Interactive
177
- 'focus-within',
178
- 'hover',
179
- 'focus',
180
- 'focus-visible',
181
- 'active',
182
- 'disabled',
183
- ];
184
- for (let variant of pseudoVariants){
185
- let [variantName, state] = Array.isArray(variant) ? variant : [
186
- variant,
187
- `:${variant}`
188
- ];
189
- addVariant(variantName, (0, _pluginUtils).transformAllClasses((className, { withAttr , withPseudo })=>{
190
- if (state.startsWith(':')) {
191
- return withPseudo(`${variantName}${config('separator')}${className}`, state);
192
- } else if (state.startsWith('[')) {
193
- return withAttr(`${variantName}${config('separator')}${className}`, state);
194
- }
195
- }));
196
- }
197
- let groupMarker = (0, _prefixSelector).default(config('prefix'), '.group');
198
- for (let variant1 of pseudoVariants){
199
- let [variantName, state] = Array.isArray(variant1) ? variant1 : [
200
- variant1,
201
- `:${variant1}`
202
- ];
203
- let groupVariantName = `group-${variantName}`;
204
- addVariant(groupVariantName, (0, _pluginUtils).transformAllSelectors((selector)=>{
205
- let variantSelector = (0, _pluginUtils).updateAllClasses(selector, (className)=>{
206
- if (`.${className}` === groupMarker) return className;
207
- return `${groupVariantName}${config('separator')}${className}`;
208
- });
209
- if (variantSelector === selector) {
210
- return null;
211
- }
212
- return (0, _pluginUtils).applyStateToMarker(variantSelector, groupMarker, state, (marker, selector)=>`${marker} ${selector}`
213
- );
214
- }));
215
- }
216
- let peerMarker = (0, _prefixSelector).default(config('prefix'), '.peer');
217
- for (let variant2 of pseudoVariants){
218
- let [variantName, state] = Array.isArray(variant2) ? variant2 : [
219
- variant2,
220
- `:${variant2}`
221
- ];
222
- let peerVariantName = `peer-${variantName}`;
223
- addVariant(peerVariantName, (0, _pluginUtils).transformAllSelectors((selector)=>{
224
- let variantSelector = (0, _pluginUtils).updateAllClasses(selector, (className)=>{
225
- if (`.${className}` === peerMarker) return className;
226
- return `${peerVariantName}${config('separator')}${className}`;
227
- });
228
- if (variantSelector === selector) {
229
- return null;
230
- }
231
- return (0, _pluginUtils).applyStateToMarker(variantSelector, peerMarker, state, (marker, selector)=>selector.trim().startsWith('~') ? `${marker}${selector}` : `${marker} ~ ${selector}`
232
- );
233
- }));
234
- }
235
- },
236
- directionVariants: ({ config , addVariant })=>{
237
- addVariant('ltr', (0, _pluginUtils).transformAllSelectors((selector)=>`[dir="ltr"] ${(0, _pluginUtils).updateAllClasses(selector, (className)=>`ltr${config('separator')}${className}`
238
- )}`
239
- ));
240
- addVariant('rtl', (0, _pluginUtils).transformAllSelectors((selector)=>`[dir="rtl"] ${(0, _pluginUtils).updateAllClasses(selector, (className)=>`rtl${config('separator')}${className}`
241
- )}`
242
- ));
243
- },
244
- reducedMotionVariants: ({ config , addVariant })=>{
245
- addVariant('motion-safe', (0, _pluginUtils).transformLastClasses((className)=>{
246
- return `motion-safe${config('separator')}${className}`;
247
- }, {
248
- wrap: ()=>_postcss.default.atRule({
249
- name: 'media',
250
- params: '(prefers-reduced-motion: no-preference)'
251
- })
252
- }));
253
- addVariant('motion-reduce', (0, _pluginUtils).transformLastClasses((className)=>{
254
- return `motion-reduce${config('separator')}${className}`;
255
- }, {
256
- wrap: ()=>_postcss.default.atRule({
257
- name: 'media',
258
- params: '(prefers-reduced-motion: reduce)'
259
- })
260
- }));
261
- },
262
- darkVariants: ({ config , addVariant })=>{
263
- let mode = config('darkMode', 'media');
264
- if (mode === false) {
265
- mode = 'media';
266
- _log.default.warn([
267
- '`darkMode` is set to `false` in your config.',
268
- 'This will behave just like the `media` value.',
269
- ]);
270
- }
271
- if (mode === 'class') {
272
- addVariant('dark', (0, _pluginUtils).transformAllSelectors((selector)=>{
273
- let variantSelector = (0, _pluginUtils).updateLastClasses(selector, (className)=>{
274
- return `dark${config('separator')}${className}`;
275
- });
276
- if (variantSelector === selector) {
277
- return null;
278
- }
279
- let darkSelector = (0, _prefixSelector).default(config('prefix'), `.dark`);
280
- return `${darkSelector} ${variantSelector}`;
281
- }));
282
- } else if (mode === 'media') {
283
- addVariant('dark', (0, _pluginUtils).transformLastClasses((className)=>{
284
- return `dark${config('separator')}${className}`;
285
- }, {
286
- wrap: ()=>_postcss.default.atRule({
287
- name: 'media',
288
- params: '(prefers-color-scheme: dark)'
289
- })
290
- }));
291
- }
292
- },
293
- screenVariants: ({ config , theme , addVariant })=>{
294
- for(let screen in theme('screens')){
295
- let size = theme('screens')[screen];
296
- let query = (0, _buildMediaQuery).default(size);
297
- addVariant(screen, (0, _pluginUtils).transformLastClasses((className)=>{
298
- return `${screen}${config('separator')}${className}`;
299
- }, {
300
- wrap: ()=>_postcss.default.atRule({
301
- name: 'media',
302
- params: query
303
- })
304
- }));
305
- }
306
- },
307
- // Actual plugins
308
- preflight: ({ addBase })=>{
309
- let preflightStyles = _postcss.default.parse(_fs.default.readFileSync(`${__dirname}/css/preflight.css`, 'utf8'));
310
- addBase([
311
- _postcss.default.comment({
312
- text: `! tailwindcss v${_packageJson.version} | MIT License | https://tailwindcss.com`
313
- }),
314
- ...preflightStyles.nodes,
315
- ]);
316
- },
317
- container: (()=>{
318
- function extractMinWidths(breakpoints) {
319
- return Object.values(breakpoints !== null && breakpoints !== void 0 ? breakpoints : {
320
- }).flatMap((breakpoints)=>{
321
- if (typeof breakpoints === 'string') {
322
- breakpoints = {
323
- min: breakpoints
324
- };
325
- }
326
- if (!Array.isArray(breakpoints)) {
327
- breakpoints = [
328
- breakpoints
329
- ];
330
- }
331
- return breakpoints.filter((breakpoint)=>{
332
- var ref;
333
- return (breakpoint === null || breakpoint === void 0 ? void 0 : (ref = breakpoint.hasOwnProperty) === null || ref === void 0 ? void 0 : ref.call(breakpoint, 'min')) || (breakpoint === null || breakpoint === void 0 ? void 0 : breakpoint.hasOwnProperty('min-width'));
334
- }).map((breakpoint)=>{
335
- var ref;
336
- return (ref = breakpoint['min-width']) !== null && ref !== void 0 ? ref : breakpoint.min;
337
- });
338
- });
339
- }
340
- function mapMinWidthsToPadding(minWidths, screens, paddings) {
341
- if (typeof paddings === 'undefined') {
342
- return [];
343
- }
344
- if (!(typeof paddings === 'object' && paddings !== null)) {
345
- return [
346
- {
347
- screen: 'DEFAULT',
348
- minWidth: 0,
349
- padding: paddings
350
- },
351
- ];
352
- }
353
- let mapping = [];
354
- if (paddings.DEFAULT) {
355
- mapping.push({
356
- screen: 'DEFAULT',
357
- minWidth: 0,
358
- padding: paddings.DEFAULT
359
- });
360
- }
361
- for (let minWidth of minWidths){
362
- for (let [screen, value] of Object.entries(screens)){
363
- let screenMinWidth = typeof value === 'object' && value !== null ? value.min || value['min-width'] : value;
364
- if (`${screenMinWidth}` === `${minWidth}`) {
365
- mapping.push({
366
- screen,
367
- minWidth,
368
- padding: paddings[screen]
369
- });
370
- }
371
- }
372
- }
373
- return mapping;
374
- }
375
- return function({ addComponents , theme }) {
376
- let screens = theme('container.screens', theme('screens'));
377
- let minWidths = extractMinWidths(screens);
378
- let paddings = mapMinWidthsToPadding(minWidths, screens, theme('container.padding'));
379
- let generatePaddingFor = (minWidth)=>{
380
- let paddingConfig = paddings.find((padding)=>`${padding.minWidth}` === `${minWidth}`
381
- );
382
- if (!paddingConfig) {
383
- return {
384
- };
385
- }
386
- return {
387
- paddingRight: paddingConfig.padding,
388
- paddingLeft: paddingConfig.padding
389
- };
390
- };
391
- let atRules = Array.from(new Set(minWidths.slice().sort((a, z)=>parseInt(a) - parseInt(z)
392
- ))).map((minWidth)=>({
393
- [`@media (min-width: ${minWidth})`]: {
394
- '.container': {
395
- 'max-width': minWidth,
396
- ...generatePaddingFor(minWidth)
397
- }
398
- }
399
- })
400
- );
401
- addComponents([
402
- {
403
- '.container': Object.assign({
404
- width: '100%'
405
- }, theme('container.center', false) ? {
406
- marginRight: 'auto',
407
- marginLeft: 'auto'
408
- } : {
409
- }, generatePaddingFor(0))
410
- },
411
- ...atRules,
412
- ]);
413
- };
414
- })(),
415
- accessibility: ({ addUtilities })=>{
416
- addUtilities({
417
- '.sr-only': {
418
- position: 'absolute',
419
- width: '1px',
420
- height: '1px',
421
- padding: '0',
422
- margin: '-1px',
423
- overflow: 'hidden',
424
- clip: 'rect(0, 0, 0, 0)',
425
- whiteSpace: 'nowrap',
426
- borderWidth: '0'
427
- },
428
- '.not-sr-only': {
429
- position: 'static',
430
- width: 'auto',
431
- height: 'auto',
432
- padding: '0',
433
- margin: '0',
434
- overflow: 'visible',
435
- clip: 'auto',
436
- whiteSpace: 'normal'
437
- }
438
- });
439
- },
440
- pointerEvents: ({ addUtilities })=>{
441
- addUtilities({
442
- '.pointer-events-none': {
443
- 'pointer-events': 'none'
444
- },
445
- '.pointer-events-auto': {
446
- 'pointer-events': 'auto'
447
- }
448
- });
449
- },
450
- visibility: ({ addUtilities })=>{
451
- addUtilities({
452
- '.visible': {
453
- visibility: 'visible'
454
- },
455
- '.invisible': {
456
- visibility: 'hidden'
457
- }
458
- });
459
- },
460
- position: ({ addUtilities })=>{
461
- addUtilities({
462
- '.static': {
463
- position: 'static'
464
- },
465
- '.fixed': {
466
- position: 'fixed'
467
- },
468
- '.absolute': {
469
- position: 'absolute'
470
- },
471
- '.relative': {
472
- position: 'relative'
473
- },
474
- '.sticky': {
475
- position: 'sticky'
476
- }
477
- });
478
- },
479
- inset: (0, _createUtilityPlugin).default('inset', [
480
- [
481
- 'inset',
482
- [
483
- 'top',
484
- 'right',
485
- 'bottom',
486
- 'left'
487
- ]
488
- ],
489
- [
490
- [
491
- 'inset-x',
492
- [
493
- 'left',
494
- 'right'
495
- ]
496
- ],
497
- [
498
- 'inset-y',
499
- [
500
- 'top',
501
- 'bottom'
502
- ]
503
- ],
504
- ],
505
- [
506
- [
507
- 'top',
508
- [
509
- 'top'
510
- ]
511
- ],
512
- [
513
- 'right',
514
- [
515
- 'right'
516
- ]
517
- ],
518
- [
519
- 'bottom',
520
- [
521
- 'bottom'
522
- ]
523
- ],
524
- [
525
- 'left',
526
- [
527
- 'left'
528
- ]
529
- ],
530
- ],
531
- ]),
532
- isolation: ({ addUtilities })=>{
533
- addUtilities({
534
- '.isolate': {
535
- isolation: 'isolate'
536
- },
537
- '.isolation-auto': {
538
- isolation: 'auto'
539
- }
540
- });
541
- },
542
- zIndex: (0, _createUtilityPlugin).default('zIndex', [
543
- [
544
- 'z',
545
- [
546
- 'zIndex'
547
- ]
548
- ]
549
- ]),
550
- order: (0, _createUtilityPlugin).default('order'),
551
- gridColumn: (0, _createUtilityPlugin).default('gridColumn', [
552
- [
553
- 'col',
554
- [
555
- 'gridColumn'
556
- ]
557
- ]
558
- ]),
559
- gridColumnStart: (0, _createUtilityPlugin).default('gridColumnStart', [
560
- [
561
- 'col-start',
562
- [
563
- 'gridColumnStart'
564
- ]
565
- ]
566
- ]),
567
- gridColumnEnd: (0, _createUtilityPlugin).default('gridColumnEnd', [
568
- [
569
- 'col-end',
570
- [
571
- 'gridColumnEnd'
572
- ]
573
- ]
574
- ]),
575
- gridRow: (0, _createUtilityPlugin).default('gridRow', [
576
- [
577
- 'row',
578
- [
579
- 'gridRow'
580
- ]
581
- ]
582
- ]),
583
- gridRowStart: (0, _createUtilityPlugin).default('gridRowStart', [
584
- [
585
- 'row-start',
586
- [
587
- 'gridRowStart'
588
- ]
589
- ]
590
- ]),
591
- gridRowEnd: (0, _createUtilityPlugin).default('gridRowEnd', [
592
- [
593
- 'row-end',
594
- [
595
- 'gridRowEnd'
596
- ]
597
- ]
598
- ]),
599
- float: ({ addUtilities })=>{
600
- addUtilities({
601
- '.float-right': {
602
- float: 'right'
603
- },
604
- '.float-left': {
605
- float: 'left'
606
- },
607
- '.float-none': {
608
- float: 'none'
609
- }
610
- });
611
- },
612
- clear: ({ addUtilities })=>{
613
- addUtilities({
614
- '.clear-left': {
615
- clear: 'left'
616
- },
617
- '.clear-right': {
618
- clear: 'right'
619
- },
620
- '.clear-both': {
621
- clear: 'both'
622
- },
623
- '.clear-none': {
624
- clear: 'none'
625
- }
626
- });
627
- },
628
- margin: (0, _createUtilityPlugin).default('margin', [
629
- [
630
- 'm',
631
- [
632
- 'margin'
633
- ]
634
- ],
635
- [
636
- [
637
- 'mx',
638
- [
639
- 'margin-left',
640
- 'margin-right'
641
- ]
642
- ],
643
- [
644
- 'my',
645
- [
646
- 'margin-top',
647
- 'margin-bottom'
648
- ]
649
- ],
650
- ],
651
- [
652
- [
653
- 'mt',
654
- [
655
- 'margin-top'
656
- ]
657
- ],
658
- [
659
- 'mr',
660
- [
661
- 'margin-right'
662
- ]
663
- ],
664
- [
665
- 'mb',
666
- [
667
- 'margin-bottom'
668
- ]
669
- ],
670
- [
671
- 'ml',
672
- [
673
- 'margin-left'
674
- ]
675
- ],
676
- ],
677
- ]),
678
- boxSizing: ({ addUtilities })=>{
679
- addUtilities({
680
- '.box-border': {
681
- 'box-sizing': 'border-box'
682
- },
683
- '.box-content': {
684
- 'box-sizing': 'content-box'
685
- }
686
- });
687
- },
688
- display: ({ addUtilities })=>{
689
- addUtilities({
690
- '.block': {
691
- display: 'block'
692
- },
693
- '.inline-block': {
694
- display: 'inline-block'
695
- },
696
- '.inline': {
697
- display: 'inline'
698
- },
699
- '.flex': {
700
- display: 'flex'
701
- },
702
- '.inline-flex': {
703
- display: 'inline-flex'
704
- },
705
- '.table': {
706
- display: 'table'
707
- },
708
- '.inline-table': {
709
- display: 'inline-table'
710
- },
711
- '.table-caption': {
712
- display: 'table-caption'
713
- },
714
- '.table-cell': {
715
- display: 'table-cell'
716
- },
717
- '.table-column': {
718
- display: 'table-column'
719
- },
720
- '.table-column-group': {
721
- display: 'table-column-group'
722
- },
723
- '.table-footer-group': {
724
- display: 'table-footer-group'
725
- },
726
- '.table-header-group': {
727
- display: 'table-header-group'
728
- },
729
- '.table-row-group': {
730
- display: 'table-row-group'
731
- },
732
- '.table-row': {
733
- display: 'table-row'
734
- },
735
- '.flow-root': {
736
- display: 'flow-root'
737
- },
738
- '.grid': {
739
- display: 'grid'
740
- },
741
- '.inline-grid': {
742
- display: 'inline-grid'
743
- },
744
- '.contents': {
745
- display: 'contents'
746
- },
747
- '.list-item': {
748
- display: 'list-item'
749
- },
750
- '.hidden': {
751
- display: 'none'
752
- }
753
- });
754
- },
755
- aspectRatio: (0, _createUtilityPlugin).default('aspectRatio', [
756
- [
757
- 'aspect',
758
- [
759
- 'aspect-ratio'
760
- ]
761
- ]
762
- ]),
763
- height: (0, _createUtilityPlugin).default('height', [
764
- [
765
- 'h',
766
- [
767
- 'height'
768
- ]
769
- ]
770
- ]),
771
- maxHeight: (0, _createUtilityPlugin).default('maxHeight', [
772
- [
773
- 'max-h',
774
- [
775
- 'maxHeight'
776
- ]
777
- ]
778
- ]),
779
- minHeight: (0, _createUtilityPlugin).default('minHeight', [
780
- [
781
- 'min-h',
782
- [
783
- 'minHeight'
784
- ]
785
- ]
786
- ]),
787
- width: (0, _createUtilityPlugin).default('width', [
788
- [
789
- 'w',
790
- [
791
- 'width'
792
- ]
793
- ]
794
- ]),
795
- minWidth: (0, _createUtilityPlugin).default('minWidth', [
796
- [
797
- 'min-w',
798
- [
799
- 'minWidth'
800
- ]
801
- ]
802
- ]),
803
- maxWidth: (0, _createUtilityPlugin).default('maxWidth', [
804
- [
805
- 'max-w',
806
- [
807
- 'maxWidth'
808
- ]
809
- ]
810
- ]),
811
- flex: (0, _createUtilityPlugin).default('flex'),
812
- flexShrink: (0, _createUtilityPlugin).default('flexShrink', [
813
- [
814
- 'flex-shrink',
815
- [
816
- 'flex-shrink'
817
- ]
818
- ]
819
- ]),
820
- flexGrow: (0, _createUtilityPlugin).default('flexGrow', [
821
- [
822
- 'flex-grow',
823
- [
824
- 'flex-grow'
825
- ]
826
- ]
827
- ]),
828
- tableLayout: ({ addUtilities })=>{
829
- addUtilities({
830
- '.table-auto': {
831
- 'table-layout': 'auto'
832
- },
833
- '.table-fixed': {
834
- 'table-layout': 'fixed'
835
- }
836
- });
837
- },
838
- borderCollapse: ({ addUtilities })=>{
839
- addUtilities({
840
- '.border-collapse': {
841
- 'border-collapse': 'collapse'
842
- },
843
- '.border-separate': {
844
- 'border-collapse': 'separate'
845
- }
846
- });
847
- },
848
- transformOrigin: (0, _createUtilityPlugin).default('transformOrigin', [
849
- [
850
- 'origin',
851
- [
852
- 'transformOrigin'
853
- ]
854
- ]
855
- ]),
856
- translate: (0, _createUtilityPlugin).default('translate', [
857
- [
858
- [
859
- 'translate-x',
860
- [
861
- [
862
- '@defaults transform',
863
- {
864
- }
865
- ],
866
- '--tw-translate-x',
867
- [
868
- 'transform',
869
- 'var(--tw-transform)'
870
- ]
871
- ],
872
- ],
873
- [
874
- 'translate-y',
875
- [
876
- [
877
- '@defaults transform',
878
- {
879
- }
880
- ],
881
- '--tw-translate-y',
882
- [
883
- 'transform',
884
- 'var(--tw-transform)'
885
- ]
886
- ],
887
- ],
888
- ],
889
- ]),
890
- rotate: (0, _createUtilityPlugin).default('rotate', [
891
- [
892
- 'rotate',
893
- [
894
- [
895
- '@defaults transform',
896
- {
897
- }
898
- ],
899
- '--tw-rotate',
900
- [
901
- 'transform',
902
- 'var(--tw-transform)'
903
- ]
904
- ]
905
- ],
906
- ]),
907
- skew: (0, _createUtilityPlugin).default('skew', [
908
- [
909
- [
910
- 'skew-x',
911
- [
912
- [
913
- '@defaults transform',
914
- {
915
- }
916
- ],
917
- '--tw-skew-x',
918
- [
919
- 'transform',
920
- 'var(--tw-transform)'
921
- ]
922
- ],
923
- ],
924
- [
925
- 'skew-y',
926
- [
927
- [
928
- '@defaults transform',
929
- {
930
- }
931
- ],
932
- '--tw-skew-y',
933
- [
934
- 'transform',
935
- 'var(--tw-transform)'
936
- ]
937
- ],
938
- ],
939
- ],
940
- ]),
941
- scale: (0, _createUtilityPlugin).default('scale', [
942
- [
943
- 'scale',
944
- [
945
- [
946
- '@defaults transform',
947
- {
948
- }
949
- ],
950
- '--tw-scale-x',
951
- '--tw-scale-y',
952
- [
953
- 'transform',
954
- 'var(--tw-transform)'
955
- ],
956
- ],
957
- ],
958
- [
959
- [
960
- 'scale-x',
961
- [
962
- [
963
- '@defaults transform',
964
- {
965
- }
966
- ],
967
- '--tw-scale-x',
968
- [
969
- 'transform',
970
- 'var(--tw-transform)'
971
- ]
972
- ],
973
- ],
974
- [
975
- 'scale-y',
976
- [
977
- [
978
- '@defaults transform',
979
- {
980
- }
981
- ],
982
- '--tw-scale-y',
983
- [
984
- 'transform',
985
- 'var(--tw-transform)'
986
- ]
987
- ],
988
- ],
989
- ],
990
- ]),
991
- transform: ({ addBase , addUtilities })=>{
992
- addBase({
993
- '@defaults transform': {
994
- '--tw-translate-x': '0',
995
- '--tw-translate-y': '0',
996
- '--tw-rotate': '0',
997
- '--tw-skew-x': '0',
998
- '--tw-skew-y': '0',
999
- '--tw-scale-x': '1',
1000
- '--tw-scale-y': '1',
1001
- '--tw-transform': [
1002
- 'translateX(var(--tw-translate-x))',
1003
- 'translateY(var(--tw-translate-y))',
1004
- 'rotate(var(--tw-rotate))',
1005
- 'skewX(var(--tw-skew-x))',
1006
- 'skewY(var(--tw-skew-y))',
1007
- 'scaleX(var(--tw-scale-x))',
1008
- 'scaleY(var(--tw-scale-y))',
1009
- ].join(' ')
1010
- }
1011
- });
1012
- addUtilities({
1013
- '.transform': {
1014
- '@defaults transform': {
1015
- },
1016
- transform: 'var(--tw-transform)'
1017
- },
1018
- '.transform-cpu': {
1019
- '--tw-transform': [
1020
- 'translateX(var(--tw-translate-x))',
1021
- 'translateY(var(--tw-translate-y))',
1022
- 'rotate(var(--tw-rotate))',
1023
- 'skewX(var(--tw-skew-x))',
1024
- 'skewY(var(--tw-skew-y))',
1025
- 'scaleX(var(--tw-scale-x))',
1026
- 'scaleY(var(--tw-scale-y))',
1027
- ].join(' ')
1028
- },
1029
- '.transform-gpu': {
1030
- '--tw-transform': [
1031
- 'translate3d(var(--tw-translate-x), var(--tw-translate-y), 0)',
1032
- 'rotate(var(--tw-rotate))',
1033
- 'skewX(var(--tw-skew-x))',
1034
- 'skewY(var(--tw-skew-y))',
1035
- 'scaleX(var(--tw-scale-x))',
1036
- 'scaleY(var(--tw-scale-y))',
1037
- ].join(' ')
1038
- },
1039
- '.transform-none': {
1040
- transform: 'none'
1041
- }
1042
- });
1043
- },
1044
- animation: ({ matchUtilities , theme , prefix })=>{
1045
- let prefixName = (name)=>prefix(`.${name}`).slice(1)
1046
- ;
1047
- var ref;
1048
- let keyframes = Object.fromEntries(Object.entries((ref = theme('keyframes')) !== null && ref !== void 0 ? ref : {
1049
- }).map(([key, value])=>{
1050
- return [
1051
- key,
1052
- [
1053
- {
1054
- [`@keyframes ${prefixName(key)}`]: value
1055
- }
1056
- ]
1057
- ];
1058
- }));
1059
- matchUtilities({
1060
- animate: (value, { includeRules })=>{
1061
- let animations = (0, _parseAnimationValue).default(value);
1062
- for (let { name } of animations){
1063
- if (keyframes[name] !== undefined) {
1064
- includeRules(keyframes[name], {
1065
- respectImportant: false
1066
- });
1067
- }
1068
- }
1069
- return {
1070
- animation: animations.map(({ name , value })=>{
1071
- if (name === undefined || keyframes[name] === undefined) {
1072
- return value;
1073
- }
1074
- return value.replace(name, prefixName(name));
1075
- }).join(', ')
1076
- };
1077
- }
1078
- }, {
1079
- values: theme('animation')
1080
- });
1081
- },
1082
- cursor: (0, _createUtilityPlugin).default('cursor'),
1083
- touchAction: ({ addUtilities })=>{
1084
- addUtilities({
1085
- '.touch-auto': {
1086
- 'touch-action': 'auto'
1087
- },
1088
- '.touch-none': {
1089
- 'touch-action': 'none'
1090
- },
1091
- '.touch-pan-x': {
1092
- 'touch-action': 'pan-x'
1093
- },
1094
- '.touch-pan-left': {
1095
- 'touch-action': 'pan-left'
1096
- },
1097
- '.touch-pan-right': {
1098
- 'touch-action': 'pan-right'
1099
- },
1100
- '.touch-pan-y': {
1101
- 'touch-action': 'pan-y'
1102
- },
1103
- '.touch-pan-up': {
1104
- 'touch-action': 'pan-up'
1105
- },
1106
- '.touch-pan-down': {
1107
- 'touch-action': 'pan-down'
1108
- },
1109
- '.touch-pinch-zoom': {
1110
- 'touch-action': 'pinch-zoom'
1111
- },
1112
- '.touch-manipulation': {
1113
- 'touch-action': 'manipulation'
1114
- }
1115
- });
1116
- },
1117
- userSelect: ({ addUtilities })=>{
1118
- addUtilities({
1119
- '.select-none': {
1120
- 'user-select': 'none'
1121
- },
1122
- '.select-text': {
1123
- 'user-select': 'text'
1124
- },
1125
- '.select-all': {
1126
- 'user-select': 'all'
1127
- },
1128
- '.select-auto': {
1129
- 'user-select': 'auto'
1130
- }
1131
- });
1132
- },
1133
- resize: ({ addUtilities })=>{
1134
- addUtilities({
1135
- '.resize-none': {
1136
- resize: 'none'
1137
- },
1138
- '.resize-y': {
1139
- resize: 'vertical'
1140
- },
1141
- '.resize-x': {
1142
- resize: 'horizontal'
1143
- },
1144
- '.resize': {
1145
- resize: 'both'
1146
- }
1147
- });
1148
- },
1149
- scrollSnapType: ({ addUtilities , addBase })=>{
1150
- addBase({
1151
- '@defaults scroll-snap-type': {
1152
- '--tw-scroll-snap-strictness': 'proximity'
1153
- }
1154
- });
1155
- addUtilities({
1156
- '.snap-none': {
1157
- 'scroll-snap-type': 'none'
1158
- },
1159
- '.snap-x': {
1160
- '@defaults scroll-snap-type': {
1161
- },
1162
- 'scroll-snap-type': 'x var(--tw-scroll-snap-strictness)'
1163
- },
1164
- '.snap-y': {
1165
- '@defaults scroll-snap-type': {
1166
- },
1167
- 'scroll-snap-type': 'y var(--tw-scroll-snap-strictness)'
1168
- },
1169
- '.snap-both': {
1170
- '@defaults scroll-snap-type': {
1171
- },
1172
- 'scroll-snap-type': 'both var(--tw-scroll-snap-strictness)'
1173
- },
1174
- '.snap-mandatory': {
1175
- '--tw-scroll-snap-strictness': 'mandatory'
1176
- },
1177
- '.snap-proximity': {
1178
- '--tw-scroll-snap-strictness': 'proximity'
1179
- }
1180
- });
1181
- },
1182
- scrollSnapAlign: ({ addUtilities })=>{
1183
- addUtilities({
1184
- '.snap-start': {
1185
- 'scroll-snap-align': 'start'
1186
- },
1187
- '.snap-end': {
1188
- 'scroll-snap-align': 'end'
1189
- },
1190
- '.snap-center': {
1191
- 'scroll-snap-align': 'center'
1192
- },
1193
- '.snap-align-none': {
1194
- 'scroll-snap-align': 'none'
1195
- }
1196
- });
1197
- },
1198
- scrollSnapStop: ({ addUtilities })=>{
1199
- addUtilities({
1200
- '.snap-normal': {
1201
- 'scroll-snap-stop': 'normal'
1202
- },
1203
- '.snap-always': {
1204
- 'scroll-snap-stop': 'always'
1205
- }
1206
- });
1207
- },
1208
- scrollMargin: (0, _createUtilityPlugin).default('scrollMargin', [
1209
- [
1210
- 'scroll-m',
1211
- [
1212
- 'scroll-margin'
1213
- ]
1214
- ],
1215
- [
1216
- [
1217
- 'scroll-mx',
1218
- [
1219
- 'scroll-margin-left',
1220
- 'scroll-margin-right'
1221
- ]
1222
- ],
1223
- [
1224
- 'scroll-my',
1225
- [
1226
- 'scroll-margin-top',
1227
- 'scroll-margin-bottom'
1228
- ]
1229
- ],
1230
- ],
1231
- [
1232
- [
1233
- 'scroll-mt',
1234
- [
1235
- 'scroll-margin-top'
1236
- ]
1237
- ],
1238
- [
1239
- 'scroll-mr',
1240
- [
1241
- 'scroll-margin-right'
1242
- ]
1243
- ],
1244
- [
1245
- 'scroll-mb',
1246
- [
1247
- 'scroll-margin-bottom'
1248
- ]
1249
- ],
1250
- [
1251
- 'scroll-ml',
1252
- [
1253
- 'scroll-margin-left'
1254
- ]
1255
- ],
1256
- ],
1257
- ]),
1258
- scrollPadding: (0, _createUtilityPlugin).default('scrollPadding', [
1259
- [
1260
- 'scroll-p',
1261
- [
1262
- 'scroll-padding'
1263
- ]
1264
- ],
1265
- [
1266
- [
1267
- 'scroll-px',
1268
- [
1269
- 'scroll-padding-left',
1270
- 'scroll-padding-right'
1271
- ]
1272
- ],
1273
- [
1274
- 'scroll-py',
1275
- [
1276
- 'scroll-padding-top',
1277
- 'scroll-padding-bottom'
1278
- ]
1279
- ],
1280
- ],
1281
- [
1282
- [
1283
- 'scroll-pt',
1284
- [
1285
- 'scroll-padding-top'
1286
- ]
1287
- ],
1288
- [
1289
- 'scroll-pr',
1290
- [
1291
- 'scroll-padding-right'
1292
- ]
1293
- ],
1294
- [
1295
- 'scroll-pb',
1296
- [
1297
- 'scroll-padding-bottom'
1298
- ]
1299
- ],
1300
- [
1301
- 'scroll-pl',
1302
- [
1303
- 'scroll-padding-left'
1304
- ]
1305
- ],
1306
- ],
1307
- ]),
1308
- listStylePosition: ({ addUtilities })=>{
1309
- addUtilities({
1310
- '.list-inside': {
1311
- 'list-style-position': 'inside'
1312
- },
1313
- '.list-outside': {
1314
- 'list-style-position': 'outside'
1315
- }
1316
- });
1317
- },
1318
- listStyleType: (0, _createUtilityPlugin).default('listStyleType', [
1319
- [
1320
- 'list',
1321
- [
1322
- 'listStyleType'
1323
- ]
1324
- ]
1325
- ]),
1326
- appearance: ({ addUtilities })=>{
1327
- addUtilities({
1328
- '.appearance-none': {
1329
- appearance: 'none'
1330
- }
1331
- });
1332
- },
1333
- columns: (0, _createUtilityPlugin).default('columns', [
1334
- [
1335
- 'columns',
1336
- [
1337
- 'columns'
1338
- ]
1339
- ]
1340
- ]),
1341
- breakBefore: ({ addUtilities })=>{
1342
- addUtilities({
1343
- '.break-before-auto': {
1344
- 'break-before': 'auto'
1345
- },
1346
- '.break-before-avoid': {
1347
- 'break-before': 'avoid'
1348
- },
1349
- '.break-before-all': {
1350
- 'break-before': 'all'
1351
- },
1352
- '.break-before-avoid-page': {
1353
- 'break-before': 'avoid-page'
1354
- },
1355
- '.break-before-page': {
1356
- 'break-before': 'page'
1357
- },
1358
- '.break-before-left': {
1359
- 'break-before': 'left'
1360
- },
1361
- '.break-before-right': {
1362
- 'break-before': 'right'
1363
- },
1364
- '.break-before-column': {
1365
- 'break-before': 'column'
1366
- }
1367
- });
1368
- },
1369
- breakInside: ({ addUtilities })=>{
1370
- addUtilities({
1371
- '.break-inside-auto': {
1372
- 'break-inside': 'auto'
1373
- },
1374
- '.break-inside-avoid': {
1375
- 'break-inside': 'avoid'
1376
- },
1377
- '.break-inside-avoid-page': {
1378
- 'break-inside': 'avoid-page'
1379
- },
1380
- '.break-inside-avoid-column': {
1381
- 'break-inside': 'avoid-column'
1382
- }
1383
- });
1384
- },
1385
- breakAfter: ({ addUtilities })=>{
1386
- addUtilities({
1387
- '.break-after-auto': {
1388
- 'break-after': 'auto'
1389
- },
1390
- '.break-after-avoid': {
1391
- 'break-after': 'avoid'
1392
- },
1393
- '.break-after-all': {
1394
- 'break-after': 'all'
1395
- },
1396
- '.break-after-avoid-page': {
1397
- 'break-after': 'avoid-page'
1398
- },
1399
- '.break-after-page': {
1400
- 'break-after': 'page'
1401
- },
1402
- '.break-after-left': {
1403
- 'break-after': 'left'
1404
- },
1405
- '.break-after-right': {
1406
- 'break-after': 'right'
1407
- },
1408
- '.break-after-column': {
1409
- 'break-after': 'column'
1410
- }
1411
- });
1412
- },
1413
- gridAutoColumns: (0, _createUtilityPlugin).default('gridAutoColumns', [
1414
- [
1415
- 'auto-cols',
1416
- [
1417
- 'gridAutoColumns'
1418
- ]
1419
- ]
1420
- ]),
1421
- gridAutoFlow: ({ addUtilities })=>{
1422
- addUtilities({
1423
- '.grid-flow-row': {
1424
- gridAutoFlow: 'row'
1425
- },
1426
- '.grid-flow-col': {
1427
- gridAutoFlow: 'column'
1428
- },
1429
- '.grid-flow-row-dense': {
1430
- gridAutoFlow: 'row dense'
1431
- },
1432
- '.grid-flow-col-dense': {
1433
- gridAutoFlow: 'column dense'
1434
- }
1435
- });
1436
- },
1437
- gridAutoRows: (0, _createUtilityPlugin).default('gridAutoRows', [
1438
- [
1439
- 'auto-rows',
1440
- [
1441
- 'gridAutoRows'
1442
- ]
1443
- ]
1444
- ]),
1445
- gridTemplateColumns: (0, _createUtilityPlugin).default('gridTemplateColumns', [
1446
- [
1447
- 'grid-cols',
1448
- [
1449
- 'gridTemplateColumns'
1450
- ]
1451
- ],
1452
- ]),
1453
- gridTemplateRows: (0, _createUtilityPlugin).default('gridTemplateRows', [
1454
- [
1455
- 'grid-rows',
1456
- [
1457
- 'gridTemplateRows'
1458
- ]
1459
- ]
1460
- ]),
1461
- flexDirection: ({ addUtilities })=>{
1462
- addUtilities({
1463
- '.flex-row': {
1464
- 'flex-direction': 'row'
1465
- },
1466
- '.flex-row-reverse': {
1467
- 'flex-direction': 'row-reverse'
1468
- },
1469
- '.flex-col': {
1470
- 'flex-direction': 'column'
1471
- },
1472
- '.flex-col-reverse': {
1473
- 'flex-direction': 'column-reverse'
1474
- }
1475
- });
1476
- },
1477
- flexWrap: ({ addUtilities })=>{
1478
- addUtilities({
1479
- '.flex-wrap': {
1480
- 'flex-wrap': 'wrap'
1481
- },
1482
- '.flex-wrap-reverse': {
1483
- 'flex-wrap': 'wrap-reverse'
1484
- },
1485
- '.flex-nowrap': {
1486
- 'flex-wrap': 'nowrap'
1487
- }
1488
- });
1489
- },
1490
- placeContent: ({ addUtilities })=>{
1491
- addUtilities({
1492
- '.place-content-center': {
1493
- 'place-content': 'center'
1494
- },
1495
- '.place-content-start': {
1496
- 'place-content': 'start'
1497
- },
1498
- '.place-content-end': {
1499
- 'place-content': 'end'
1500
- },
1501
- '.place-content-between': {
1502
- 'place-content': 'space-between'
1503
- },
1504
- '.place-content-around': {
1505
- 'place-content': 'space-around'
1506
- },
1507
- '.place-content-evenly': {
1508
- 'place-content': 'space-evenly'
1509
- },
1510
- '.place-content-stretch': {
1511
- 'place-content': 'stretch'
1512
- }
1513
- });
1514
- },
1515
- placeItems: ({ addUtilities })=>{
1516
- addUtilities({
1517
- '.place-items-start': {
1518
- 'place-items': 'start'
1519
- },
1520
- '.place-items-end': {
1521
- 'place-items': 'end'
1522
- },
1523
- '.place-items-center': {
1524
- 'place-items': 'center'
1525
- },
1526
- '.place-items-stretch': {
1527
- 'place-items': 'stretch'
1528
- }
1529
- });
1530
- },
1531
- alignContent: ({ addUtilities })=>{
1532
- addUtilities({
1533
- '.content-center': {
1534
- 'align-content': 'center'
1535
- },
1536
- '.content-start': {
1537
- 'align-content': 'flex-start'
1538
- },
1539
- '.content-end': {
1540
- 'align-content': 'flex-end'
1541
- },
1542
- '.content-between': {
1543
- 'align-content': 'space-between'
1544
- },
1545
- '.content-around': {
1546
- 'align-content': 'space-around'
1547
- },
1548
- '.content-evenly': {
1549
- 'align-content': 'space-evenly'
1550
- }
1551
- });
1552
- },
1553
- alignItems: ({ addUtilities })=>{
1554
- addUtilities({
1555
- '.items-start': {
1556
- 'align-items': 'flex-start'
1557
- },
1558
- '.items-end': {
1559
- 'align-items': 'flex-end'
1560
- },
1561
- '.items-center': {
1562
- 'align-items': 'center'
1563
- },
1564
- '.items-baseline': {
1565
- 'align-items': 'baseline'
1566
- },
1567
- '.items-stretch': {
1568
- 'align-items': 'stretch'
1569
- }
1570
- });
1571
- },
1572
- justifyContent: ({ addUtilities })=>{
1573
- addUtilities({
1574
- '.justify-start': {
1575
- 'justify-content': 'flex-start'
1576
- },
1577
- '.justify-end': {
1578
- 'justify-content': 'flex-end'
1579
- },
1580
- '.justify-center': {
1581
- 'justify-content': 'center'
1582
- },
1583
- '.justify-between': {
1584
- 'justify-content': 'space-between'
1585
- },
1586
- '.justify-around': {
1587
- 'justify-content': 'space-around'
1588
- },
1589
- '.justify-evenly': {
1590
- 'justify-content': 'space-evenly'
1591
- }
1592
- });
1593
- },
1594
- justifyItems: ({ addUtilities })=>{
1595
- addUtilities({
1596
- '.justify-items-start': {
1597
- 'justify-items': 'start'
1598
- },
1599
- '.justify-items-end': {
1600
- 'justify-items': 'end'
1601
- },
1602
- '.justify-items-center': {
1603
- 'justify-items': 'center'
1604
- },
1605
- '.justify-items-stretch': {
1606
- 'justify-items': 'stretch'
1607
- }
1608
- });
1609
- },
1610
- gap: (0, _createUtilityPlugin).default('gap', [
1611
- [
1612
- 'gap',
1613
- [
1614
- 'gap'
1615
- ]
1616
- ],
1617
- [
1618
- [
1619
- 'gap-x',
1620
- [
1621
- 'columnGap'
1622
- ]
1623
- ],
1624
- [
1625
- 'gap-y',
1626
- [
1627
- 'rowGap'
1628
- ]
1629
- ],
1630
- ],
1631
- ]),
1632
- space: ({ matchUtilities , addUtilities , theme })=>{
1633
- matchUtilities({
1634
- 'space-x': (value)=>{
1635
- value = value === '0' ? '0px' : value;
1636
- return {
1637
- '& > :not([hidden]) ~ :not([hidden])': {
1638
- '--tw-space-x-reverse': '0',
1639
- 'margin-right': `calc(${value} * var(--tw-space-x-reverse))`,
1640
- 'margin-left': `calc(${value} * calc(1 - var(--tw-space-x-reverse)))`
1641
- }
1642
- };
1643
- },
1644
- 'space-y': (value)=>{
1645
- value = value === '0' ? '0px' : value;
1646
- return {
1647
- '& > :not([hidden]) ~ :not([hidden])': {
1648
- '--tw-space-y-reverse': '0',
1649
- 'margin-top': `calc(${value} * calc(1 - var(--tw-space-y-reverse)))`,
1650
- 'margin-bottom': `calc(${value} * var(--tw-space-y-reverse))`
1651
- }
1652
- };
1653
- }
1654
- }, {
1655
- values: theme('space')
1656
- });
1657
- addUtilities({
1658
- '.space-y-reverse > :not([hidden]) ~ :not([hidden])': {
1659
- '--tw-space-y-reverse': '1'
1660
- },
1661
- '.space-x-reverse > :not([hidden]) ~ :not([hidden])': {
1662
- '--tw-space-x-reverse': '1'
1663
- }
1664
- });
1665
- },
1666
- divideWidth: ({ matchUtilities , addUtilities , theme })=>{
1667
- matchUtilities({
1668
- 'divide-x': (value)=>{
1669
- value = value === '0' ? '0px' : value;
1670
- return {
1671
- '& > :not([hidden]) ~ :not([hidden])': {
1672
- '@defaults border-width': {
1673
- },
1674
- '--tw-divide-x-reverse': '0',
1675
- 'border-right-width': `calc(${value} * var(--tw-divide-x-reverse))`,
1676
- 'border-left-width': `calc(${value} * calc(1 - var(--tw-divide-x-reverse)))`
1677
- }
1678
- };
1679
- },
1680
- 'divide-y': (value)=>{
1681
- value = value === '0' ? '0px' : value;
1682
- return {
1683
- '& > :not([hidden]) ~ :not([hidden])': {
1684
- '@defaults border-width': {
1685
- },
1686
- '--tw-divide-y-reverse': '0',
1687
- 'border-top-width': `calc(${value} * calc(1 - var(--tw-divide-y-reverse)))`,
1688
- 'border-bottom-width': `calc(${value} * var(--tw-divide-y-reverse))`
1689
- }
1690
- };
1691
- }
1692
- }, {
1693
- values: theme('divideWidth'),
1694
- type: [
1695
- 'line-width',
1696
- 'length'
1697
- ]
1698
- });
1699
- addUtilities({
1700
- '.divide-y-reverse > :not([hidden]) ~ :not([hidden])': {
1701
- '@defaults border-width': {
1702
- },
1703
- '--tw-divide-y-reverse': '1'
1704
- },
1705
- '.divide-x-reverse > :not([hidden]) ~ :not([hidden])': {
1706
- '@defaults border-width': {
1707
- },
1708
- '--tw-divide-x-reverse': '1'
1709
- }
1710
- });
1711
- },
1712
- divideStyle: ({ addUtilities })=>{
1713
- addUtilities({
1714
- '.divide-solid > :not([hidden]) ~ :not([hidden])': {
1715
- 'border-style': 'solid'
1716
- },
1717
- '.divide-dashed > :not([hidden]) ~ :not([hidden])': {
1718
- 'border-style': 'dashed'
1719
- },
1720
- '.divide-dotted > :not([hidden]) ~ :not([hidden])': {
1721
- 'border-style': 'dotted'
1722
- },
1723
- '.divide-double > :not([hidden]) ~ :not([hidden])': {
1724
- 'border-style': 'double'
1725
- },
1726
- '.divide-none > :not([hidden]) ~ :not([hidden])': {
1727
- 'border-style': 'none'
1728
- }
1729
- });
1730
- },
1731
- divideColor: ({ matchUtilities , theme , corePlugins })=>{
1732
- matchUtilities({
1733
- divide: (value)=>{
1734
- if (!corePlugins('divideOpacity')) {
1735
- return {
1736
- ['& > :not([hidden]) ~ :not([hidden])']: {
1737
- 'border-color': (0, _toColorValue).default(value)
1738
- }
1739
- };
1740
- }
1741
- return {
1742
- ['& > :not([hidden]) ~ :not([hidden])']: (0, _withAlphaVariable).default({
1743
- color: value,
1744
- property: 'border-color',
1745
- variable: '--tw-divide-opacity'
1746
- })
1747
- };
1748
- }
1749
- }, {
1750
- values: (({ DEFAULT: _ , ...colors })=>colors
1751
- )((0, _flattenColorPalette).default(theme('divideColor'))),
1752
- type: 'color'
1753
- });
1754
- },
1755
- divideOpacity: ({ matchUtilities , theme })=>{
1756
- matchUtilities({
1757
- 'divide-opacity': (value)=>{
1758
- return {
1759
- [`& > :not([hidden]) ~ :not([hidden])`]: {
1760
- '--tw-divide-opacity': value
1761
- }
1762
- };
1763
- }
1764
- }, {
1765
- values: theme('divideOpacity')
1766
- });
1767
- },
1768
- placeSelf: ({ addUtilities })=>{
1769
- addUtilities({
1770
- '.place-self-auto': {
1771
- 'place-self': 'auto'
1772
- },
1773
- '.place-self-start': {
1774
- 'place-self': 'start'
1775
- },
1776
- '.place-self-end': {
1777
- 'place-self': 'end'
1778
- },
1779
- '.place-self-center': {
1780
- 'place-self': 'center'
1781
- },
1782
- '.place-self-stretch': {
1783
- 'place-self': 'stretch'
1784
- }
1785
- });
1786
- },
1787
- alignSelf: ({ addUtilities })=>{
1788
- addUtilities({
1789
- '.self-auto': {
1790
- 'align-self': 'auto'
1791
- },
1792
- '.self-start': {
1793
- 'align-self': 'flex-start'
1794
- },
1795
- '.self-end': {
1796
- 'align-self': 'flex-end'
1797
- },
1798
- '.self-center': {
1799
- 'align-self': 'center'
1800
- },
1801
- '.self-stretch': {
1802
- 'align-self': 'stretch'
1803
- },
1804
- '.self-baseline': {
1805
- 'align-self': 'baseline'
1806
- }
1807
- });
1808
- },
1809
- justifySelf: ({ addUtilities })=>{
1810
- addUtilities({
1811
- '.justify-self-auto': {
1812
- 'justify-self': 'auto'
1813
- },
1814
- '.justify-self-start': {
1815
- 'justify-self': 'start'
1816
- },
1817
- '.justify-self-end': {
1818
- 'justify-self': 'end'
1819
- },
1820
- '.justify-self-center': {
1821
- 'justify-self': 'center'
1822
- },
1823
- '.justify-self-stretch': {
1824
- 'justify-self': 'stretch'
1825
- }
1826
- });
1827
- },
1828
- overflow: ({ addUtilities })=>{
1829
- addUtilities({
1830
- '.overflow-auto': {
1831
- overflow: 'auto'
1832
- },
1833
- '.overflow-hidden': {
1834
- overflow: 'hidden'
1835
- },
1836
- '.overflow-clip': {
1837
- overflow: 'clip'
1838
- },
1839
- '.overflow-visible': {
1840
- overflow: 'visible'
1841
- },
1842
- '.overflow-scroll': {
1843
- overflow: 'scroll'
1844
- },
1845
- '.overflow-x-auto': {
1846
- 'overflow-x': 'auto'
1847
- },
1848
- '.overflow-y-auto': {
1849
- 'overflow-y': 'auto'
1850
- },
1851
- '.overflow-x-hidden': {
1852
- 'overflow-x': 'hidden'
1853
- },
1854
- '.overflow-y-hidden': {
1855
- 'overflow-y': 'hidden'
1856
- },
1857
- '.overflow-x-clip': {
1858
- 'overflow-x': 'clip'
1859
- },
1860
- '.overflow-y-clip': {
1861
- 'overflow-y': 'clip'
1862
- },
1863
- '.overflow-x-visible': {
1864
- 'overflow-x': 'visible'
1865
- },
1866
- '.overflow-y-visible': {
1867
- 'overflow-y': 'visible'
1868
- },
1869
- '.overflow-x-scroll': {
1870
- 'overflow-x': 'scroll'
1871
- },
1872
- '.overflow-y-scroll': {
1873
- 'overflow-y': 'scroll'
1874
- }
1875
- });
1876
- },
1877
- overscrollBehavior: ({ addUtilities })=>{
1878
- addUtilities({
1879
- '.overscroll-auto': {
1880
- 'overscroll-behavior': 'auto'
1881
- },
1882
- '.overscroll-contain': {
1883
- 'overscroll-behavior': 'contain'
1884
- },
1885
- '.overscroll-none': {
1886
- 'overscroll-behavior': 'none'
1887
- },
1888
- '.overscroll-y-auto': {
1889
- 'overscroll-behavior-y': 'auto'
1890
- },
1891
- '.overscroll-y-contain': {
1892
- 'overscroll-behavior-y': 'contain'
1893
- },
1894
- '.overscroll-y-none': {
1895
- 'overscroll-behavior-y': 'none'
1896
- },
1897
- '.overscroll-x-auto': {
1898
- 'overscroll-behavior-x': 'auto'
1899
- },
1900
- '.overscroll-x-contain': {
1901
- 'overscroll-behavior-x': 'contain'
1902
- },
1903
- '.overscroll-x-none': {
1904
- 'overscroll-behavior-x': 'none'
1905
- }
1906
- });
1907
- },
1908
- scrollBehavior: ({ addUtilities })=>{
1909
- addUtilities({
1910
- '.scroll-auto': {
1911
- 'scroll-behavior': 'auto'
1912
- },
1913
- '.scroll-smooth': {
1914
- 'scroll-behavior': 'smooth'
1915
- }
1916
- });
1917
- },
1918
- textOverflow: ({ addUtilities })=>{
1919
- addUtilities({
1920
- '.truncate': {
1921
- overflow: 'hidden',
1922
- 'text-overflow': 'ellipsis',
1923
- 'white-space': 'nowrap'
1924
- },
1925
- '.overflow-ellipsis': {
1926
- 'text-overflow': 'ellipsis'
1927
- },
1928
- '.text-ellipsis': {
1929
- 'text-overflow': 'ellipsis'
1930
- },
1931
- '.text-clip': {
1932
- 'text-overflow': 'clip'
1933
- }
1934
- });
1935
- },
1936
- whitespace: ({ addUtilities })=>{
1937
- addUtilities({
1938
- '.whitespace-normal': {
1939
- 'white-space': 'normal'
1940
- },
1941
- '.whitespace-nowrap': {
1942
- 'white-space': 'nowrap'
1943
- },
1944
- '.whitespace-pre': {
1945
- 'white-space': 'pre'
1946
- },
1947
- '.whitespace-pre-line': {
1948
- 'white-space': 'pre-line'
1949
- },
1950
- '.whitespace-pre-wrap': {
1951
- 'white-space': 'pre-wrap'
1952
- }
1953
- });
1954
- },
1955
- wordBreak: ({ addUtilities })=>{
1956
- addUtilities({
1957
- '.break-normal': {
1958
- 'overflow-wrap': 'normal',
1959
- 'word-break': 'normal'
1960
- },
1961
- '.break-words': {
1962
- 'overflow-wrap': 'break-word'
1963
- },
1964
- '.break-all': {
1965
- 'word-break': 'break-all'
1966
- }
1967
- });
1968
- },
1969
- borderRadius: (0, _createUtilityPlugin).default('borderRadius', [
1970
- [
1971
- 'rounded',
1972
- [
1973
- 'border-radius'
1974
- ]
1975
- ],
1976
- [
1977
- [
1978
- 'rounded-t',
1979
- [
1980
- 'border-top-left-radius',
1981
- 'border-top-right-radius'
1982
- ]
1983
- ],
1984
- [
1985
- 'rounded-r',
1986
- [
1987
- 'border-top-right-radius',
1988
- 'border-bottom-right-radius'
1989
- ]
1990
- ],
1991
- [
1992
- 'rounded-b',
1993
- [
1994
- 'border-bottom-right-radius',
1995
- 'border-bottom-left-radius'
1996
- ]
1997
- ],
1998
- [
1999
- 'rounded-l',
2000
- [
2001
- 'border-top-left-radius',
2002
- 'border-bottom-left-radius'
2003
- ]
2004
- ],
2005
- ],
2006
- [
2007
- [
2008
- 'rounded-tl',
2009
- [
2010
- 'border-top-left-radius'
2011
- ]
2012
- ],
2013
- [
2014
- 'rounded-tr',
2015
- [
2016
- 'border-top-right-radius'
2017
- ]
2018
- ],
2019
- [
2020
- 'rounded-br',
2021
- [
2022
- 'border-bottom-right-radius'
2023
- ]
2024
- ],
2025
- [
2026
- 'rounded-bl',
2027
- [
2028
- 'border-bottom-left-radius'
2029
- ]
2030
- ],
2031
- ],
2032
- ]),
2033
- borderWidth: (0, _createUtilityPlugin).default('borderWidth', [
2034
- [
2035
- 'border',
2036
- [
2037
- [
2038
- '@defaults border-width',
2039
- {
2040
- }
2041
- ],
2042
- 'border-width'
2043
- ]
2044
- ],
2045
- [
2046
- [
2047
- 'border-x',
2048
- [
2049
- [
2050
- '@defaults border-width',
2051
- {
2052
- }
2053
- ],
2054
- 'border-left-width',
2055
- 'border-right-width'
2056
- ]
2057
- ],
2058
- [
2059
- 'border-y',
2060
- [
2061
- [
2062
- '@defaults border-width',
2063
- {
2064
- }
2065
- ],
2066
- 'border-top-width',
2067
- 'border-bottom-width'
2068
- ]
2069
- ],
2070
- ],
2071
- [
2072
- [
2073
- 'border-t',
2074
- [
2075
- [
2076
- '@defaults border-width',
2077
- {
2078
- }
2079
- ],
2080
- 'border-top-width'
2081
- ]
2082
- ],
2083
- [
2084
- 'border-r',
2085
- [
2086
- [
2087
- '@defaults border-width',
2088
- {
2089
- }
2090
- ],
2091
- 'border-right-width'
2092
- ]
2093
- ],
2094
- [
2095
- 'border-b',
2096
- [
2097
- [
2098
- '@defaults border-width',
2099
- {
2100
- }
2101
- ],
2102
- 'border-bottom-width'
2103
- ]
2104
- ],
2105
- [
2106
- 'border-l',
2107
- [
2108
- [
2109
- '@defaults border-width',
2110
- {
2111
- }
2112
- ],
2113
- 'border-left-width'
2114
- ]
2115
- ],
2116
- ],
2117
- ], {
2118
- type: [
2119
- 'line-width',
2120
- 'length'
2121
- ]
2122
- }),
2123
- borderStyle: ({ addUtilities })=>{
2124
- addUtilities({
2125
- '.border-solid': {
2126
- 'border-style': 'solid'
2127
- },
2128
- '.border-dashed': {
2129
- 'border-style': 'dashed'
2130
- },
2131
- '.border-dotted': {
2132
- 'border-style': 'dotted'
2133
- },
2134
- '.border-double': {
2135
- 'border-style': 'double'
2136
- },
2137
- '.border-hidden': {
2138
- 'border-style': 'hidden'
2139
- },
2140
- '.border-none': {
2141
- 'border-style': 'none'
2142
- }
2143
- });
2144
- },
2145
- borderColor: ({ addBase , matchUtilities , theme , corePlugins })=>{
2146
- if (!corePlugins('borderOpacity')) {
2147
- let value = theme('borderColor.DEFAULT', 'currentColor');
2148
- addBase({
2149
- '@defaults border-width': {
2150
- 'border-color': (0, _toColorValue).default(value)
2151
- }
2152
- });
2153
- } else {
2154
- addBase({
2155
- '@defaults border-width': (0, _withAlphaVariable).default({
2156
- color: theme('borderColor.DEFAULT', 'currentColor'),
2157
- property: 'border-color',
2158
- variable: '--tw-border-opacity'
2159
- })
2160
- });
2161
- }
2162
- matchUtilities({
2163
- border: (value)=>{
2164
- if (!corePlugins('borderOpacity')) {
2165
- return {
2166
- 'border-color': (0, _toColorValue).default(value)
2167
- };
2168
- }
2169
- return (0, _withAlphaVariable).default({
2170
- color: value,
2171
- property: 'border-color',
2172
- variable: '--tw-border-opacity'
2173
- });
2174
- }
2175
- }, {
2176
- values: (({ DEFAULT: _ , ...colors })=>colors
2177
- )((0, _flattenColorPalette).default(theme('borderColor'))),
2178
- type: [
2179
- 'color'
2180
- ]
2181
- });
2182
- matchUtilities({
2183
- 'border-x': (value)=>{
2184
- if (!corePlugins('borderOpacity')) {
2185
- return {
2186
- 'border-left-color': (0, _toColorValue).default(value),
2187
- 'border-right-color': (0, _toColorValue).default(value)
2188
- };
2189
- }
2190
- return (0, _withAlphaVariable).default({
2191
- color: value,
2192
- property: [
2193
- 'border-left-color',
2194
- 'border-right-color'
2195
- ],
2196
- variable: '--tw-border-opacity'
2197
- });
2198
- },
2199
- 'border-y': (value)=>{
2200
- if (!corePlugins('borderOpacity')) {
2201
- return {
2202
- 'border-top-color': (0, _toColorValue).default(value),
2203
- 'border-bottom-color': (0, _toColorValue).default(value)
2204
- };
2205
- }
2206
- return (0, _withAlphaVariable).default({
2207
- color: value,
2208
- property: [
2209
- 'border-top-color',
2210
- 'border-bottom-color'
2211
- ],
2212
- variable: '--tw-border-opacity'
2213
- });
2214
- }
2215
- }, {
2216
- values: (({ DEFAULT: _ , ...colors })=>colors
2217
- )((0, _flattenColorPalette).default(theme('borderColor'))),
2218
- type: 'color'
2219
- });
2220
- matchUtilities({
2221
- 'border-t': (value)=>{
2222
- if (!corePlugins('borderOpacity')) {
2223
- return {
2224
- 'border-top-color': (0, _toColorValue).default(value)
2225
- };
2226
- }
2227
- return (0, _withAlphaVariable).default({
2228
- color: value,
2229
- property: 'border-top-color',
2230
- variable: '--tw-border-opacity'
2231
- });
2232
- },
2233
- 'border-r': (value)=>{
2234
- if (!corePlugins('borderOpacity')) {
2235
- return {
2236
- 'border-right-color': (0, _toColorValue).default(value)
2237
- };
2238
- }
2239
- return (0, _withAlphaVariable).default({
2240
- color: value,
2241
- property: 'border-right-color',
2242
- variable: '--tw-border-opacity'
2243
- });
2244
- },
2245
- 'border-b': (value)=>{
2246
- if (!corePlugins('borderOpacity')) {
2247
- return {
2248
- 'border-bottom-color': (0, _toColorValue).default(value)
2249
- };
2250
- }
2251
- return (0, _withAlphaVariable).default({
2252
- color: value,
2253
- property: 'border-bottom-color',
2254
- variable: '--tw-border-opacity'
2255
- });
2256
- },
2257
- 'border-l': (value)=>{
2258
- if (!corePlugins('borderOpacity')) {
2259
- return {
2260
- 'border-left-color': (0, _toColorValue).default(value)
2261
- };
2262
- }
2263
- return (0, _withAlphaVariable).default({
2264
- color: value,
2265
- property: 'border-left-color',
2266
- variable: '--tw-border-opacity'
2267
- });
2268
- }
2269
- }, {
2270
- values: (({ DEFAULT: _ , ...colors })=>colors
2271
- )((0, _flattenColorPalette).default(theme('borderColor'))),
2272
- type: 'color'
2273
- });
2274
- },
2275
- borderOpacity: (0, _createUtilityPlugin).default('borderOpacity', [
2276
- [
2277
- 'border-opacity',
2278
- [
2279
- '--tw-border-opacity'
2280
- ]
2281
- ],
2282
- ]),
2283
- backgroundColor: ({ matchUtilities , theme , corePlugins })=>{
2284
- matchUtilities({
2285
- bg: (value)=>{
2286
- if (!corePlugins('backgroundOpacity')) {
2287
- return {
2288
- 'background-color': (0, _toColorValue).default(value)
2289
- };
2290
- }
2291
- return (0, _withAlphaVariable).default({
2292
- color: value,
2293
- property: 'background-color',
2294
- variable: '--tw-bg-opacity'
2295
- });
2296
- }
2297
- }, {
2298
- values: (0, _flattenColorPalette).default(theme('backgroundColor')),
2299
- type: 'color'
2300
- });
2301
- },
2302
- backgroundOpacity: (0, _createUtilityPlugin).default('backgroundOpacity', [
2303
- [
2304
- 'bg-opacity',
2305
- [
2306
- '--tw-bg-opacity'
2307
- ]
2308
- ],
2309
- ]),
2310
- backgroundImage: (0, _createUtilityPlugin).default('backgroundImage', [
2311
- [
2312
- 'bg',
2313
- [
2314
- 'background-image'
2315
- ]
2316
- ]
2317
- ], {
2318
- type: [
2319
- 'lookup',
2320
- 'image',
2321
- 'url'
2322
- ]
2323
- }),
2324
- gradientColorStops: (()=>{
2325
- function transparentTo(value) {
2326
- return (0, _withAlphaVariable).withAlphaValue(value, 0, 'rgb(255 255 255 / 0)');
2327
- }
2328
- return function({ matchUtilities , theme }) {
2329
- let options = {
2330
- values: (0, _flattenColorPalette).default(theme('gradientColorStops')),
2331
- type: [
2332
- 'color',
2333
- 'any'
2334
- ]
2335
- };
2336
- matchUtilities({
2337
- from: (value)=>{
2338
- let transparentToValue = transparentTo(value);
2339
- return {
2340
- '--tw-gradient-from': (0, _toColorValue).default(value, 'from'),
2341
- '--tw-gradient-stops': `var(--tw-gradient-from), var(--tw-gradient-to, ${transparentToValue})`
2342
- };
2343
- }
2344
- }, options);
2345
- matchUtilities({
2346
- via: (value)=>{
2347
- let transparentToValue = transparentTo(value);
2348
- return {
2349
- '--tw-gradient-stops': `var(--tw-gradient-from), ${(0, _toColorValue).default(value, 'via')}, var(--tw-gradient-to, ${transparentToValue})`
2350
- };
2351
- }
2352
- }, options);
2353
- matchUtilities({
2354
- to: (value)=>({
2355
- '--tw-gradient-to': (0, _toColorValue).default(value, 'to')
2356
- })
2357
- }, options);
2358
- };
2359
- })(),
2360
- boxDecorationBreak: ({ addUtilities })=>{
2361
- addUtilities({
2362
- '.decoration-slice': {
2363
- 'box-decoration-break': 'slice'
2364
- },
2365
- '.decoration-clone': {
2366
- 'box-decoration-break': 'clone'
2367
- }
2368
- });
2369
- },
2370
- backgroundSize: (0, _createUtilityPlugin).default('backgroundSize', [
2371
- [
2372
- 'bg',
2373
- [
2374
- 'background-size'
2375
- ]
2376
- ]
2377
- ], {
2378
- type: [
2379
- 'lookup',
2380
- 'length',
2381
- 'percentage'
2382
- ]
2383
- }),
2384
- backgroundAttachment: ({ addUtilities })=>{
2385
- addUtilities({
2386
- '.bg-fixed': {
2387
- 'background-attachment': 'fixed'
2388
- },
2389
- '.bg-local': {
2390
- 'background-attachment': 'local'
2391
- },
2392
- '.bg-scroll': {
2393
- 'background-attachment': 'scroll'
2394
- }
2395
- });
2396
- },
2397
- backgroundClip: ({ addUtilities })=>{
2398
- addUtilities({
2399
- '.bg-clip-border': {
2400
- 'background-clip': 'border-box'
2401
- },
2402
- '.bg-clip-padding': {
2403
- 'background-clip': 'padding-box'
2404
- },
2405
- '.bg-clip-content': {
2406
- 'background-clip': 'content-box'
2407
- },
2408
- '.bg-clip-text': {
2409
- 'background-clip': 'text'
2410
- }
2411
- });
2412
- },
2413
- backgroundPosition: (0, _createUtilityPlugin).default('backgroundPosition', [
2414
- [
2415
- 'bg',
2416
- [
2417
- 'background-position'
2418
- ]
2419
- ]
2420
- ], {
2421
- type: [
2422
- 'lookup',
2423
- 'position'
2424
- ]
2425
- }),
2426
- backgroundRepeat: ({ addUtilities })=>{
2427
- addUtilities({
2428
- '.bg-repeat': {
2429
- 'background-repeat': 'repeat'
2430
- },
2431
- '.bg-no-repeat': {
2432
- 'background-repeat': 'no-repeat'
2433
- },
2434
- '.bg-repeat-x': {
2435
- 'background-repeat': 'repeat-x'
2436
- },
2437
- '.bg-repeat-y': {
2438
- 'background-repeat': 'repeat-y'
2439
- },
2440
- '.bg-repeat-round': {
2441
- 'background-repeat': 'round'
2442
- },
2443
- '.bg-repeat-space': {
2444
- 'background-repeat': 'space'
2445
- }
2446
- });
2447
- },
2448
- backgroundOrigin: ({ addUtilities })=>{
2449
- addUtilities({
2450
- '.bg-origin-border': {
2451
- 'background-origin': 'border-box'
2452
- },
2453
- '.bg-origin-padding': {
2454
- 'background-origin': 'padding-box'
2455
- },
2456
- '.bg-origin-content': {
2457
- 'background-origin': 'content-box'
2458
- }
2459
- });
2460
- },
2461
- fill: ({ matchUtilities , theme })=>{
2462
- matchUtilities({
2463
- fill: (value)=>{
2464
- return {
2465
- fill: (0, _toColorValue).default(value)
2466
- };
2467
- }
2468
- }, {
2469
- values: (0, _flattenColorPalette).default(theme('fill')),
2470
- type: [
2471
- 'color',
2472
- 'any'
2473
- ]
2474
- });
2475
- },
2476
- stroke: ({ matchUtilities , theme })=>{
2477
- matchUtilities({
2478
- stroke: (value)=>{
2479
- return {
2480
- stroke: (0, _toColorValue).default(value)
2481
- };
2482
- }
2483
- }, {
2484
- values: (0, _flattenColorPalette).default(theme('stroke')),
2485
- type: [
2486
- 'color',
2487
- 'url'
2488
- ]
2489
- });
2490
- },
2491
- strokeWidth: (0, _createUtilityPlugin).default('strokeWidth', [
2492
- [
2493
- 'stroke',
2494
- [
2495
- 'stroke-width'
2496
- ]
2497
- ]
2498
- ], {
2499
- type: [
2500
- 'length',
2501
- 'number',
2502
- 'percentage'
2503
- ]
2504
- }),
2505
- objectFit: ({ addUtilities })=>{
2506
- addUtilities({
2507
- '.object-contain': {
2508
- 'object-fit': 'contain'
2509
- },
2510
- '.object-cover': {
2511
- 'object-fit': 'cover'
2512
- },
2513
- '.object-fill': {
2514
- 'object-fit': 'fill'
2515
- },
2516
- '.object-none': {
2517
- 'object-fit': 'none'
2518
- },
2519
- '.object-scale-down': {
2520
- 'object-fit': 'scale-down'
2521
- }
2522
- });
2523
- },
2524
- objectPosition: (0, _createUtilityPlugin).default('objectPosition', [
2525
- [
2526
- 'object',
2527
- [
2528
- 'object-position'
2529
- ]
2530
- ]
2531
- ]),
2532
- padding: (0, _createUtilityPlugin).default('padding', [
2533
- [
2534
- 'p',
2535
- [
2536
- 'padding'
2537
- ]
2538
- ],
2539
- [
2540
- [
2541
- 'px',
2542
- [
2543
- 'padding-left',
2544
- 'padding-right'
2545
- ]
2546
- ],
2547
- [
2548
- 'py',
2549
- [
2550
- 'padding-top',
2551
- 'padding-bottom'
2552
- ]
2553
- ],
2554
- ],
2555
- [
2556
- [
2557
- 'pt',
2558
- [
2559
- 'padding-top'
2560
- ]
2561
- ],
2562
- [
2563
- 'pr',
2564
- [
2565
- 'padding-right'
2566
- ]
2567
- ],
2568
- [
2569
- 'pb',
2570
- [
2571
- 'padding-bottom'
2572
- ]
2573
- ],
2574
- [
2575
- 'pl',
2576
- [
2577
- 'padding-left'
2578
- ]
2579
- ],
2580
- ],
2581
- ]),
2582
- textAlign: ({ addUtilities })=>{
2583
- addUtilities({
2584
- '.text-left': {
2585
- 'text-align': 'left'
2586
- },
2587
- '.text-center': {
2588
- 'text-align': 'center'
2589
- },
2590
- '.text-right': {
2591
- 'text-align': 'right'
2592
- },
2593
- '.text-justify': {
2594
- 'text-align': 'justify'
2595
- }
2596
- });
2597
- },
2598
- textIndent: (0, _createUtilityPlugin).default('textIndent', [
2599
- [
2600
- 'indent',
2601
- [
2602
- 'text-indent'
2603
- ]
2604
- ]
2605
- ]),
2606
- verticalAlign: ({ addUtilities , matchUtilities })=>{
2607
- addUtilities({
2608
- '.align-baseline': {
2609
- 'vertical-align': 'baseline'
2610
- },
2611
- '.align-top': {
2612
- 'vertical-align': 'top'
2613
- },
2614
- '.align-middle': {
2615
- 'vertical-align': 'middle'
2616
- },
2617
- '.align-bottom': {
2618
- 'vertical-align': 'bottom'
2619
- },
2620
- '.align-text-top': {
2621
- 'vertical-align': 'text-top'
2622
- },
2623
- '.align-text-bottom': {
2624
- 'vertical-align': 'text-bottom'
2625
- },
2626
- '.align-sub': {
2627
- 'vertical-align': 'sub'
2628
- },
2629
- '.align-super': {
2630
- 'vertical-align': 'super'
2631
- }
2632
- });
2633
- matchUtilities({
2634
- align: (value)=>({
2635
- 'vertical-align': value
2636
- })
2637
- });
2638
- },
2639
- fontFamily: (0, _createUtilityPlugin).default('fontFamily', [
2640
- [
2641
- 'font',
2642
- [
2643
- 'fontFamily'
2644
- ]
2645
- ]
2646
- ], {
2647
- type: [
2648
- 'lookup',
2649
- 'generic-name',
2650
- 'family-name'
2651
- ]
2652
- }),
2653
- fontSize: ({ matchUtilities , theme })=>{
2654
- matchUtilities({
2655
- text: (value)=>{
2656
- let [fontSize, options] = Array.isArray(value) ? value : [
2657
- value
2658
- ];
2659
- let { lineHeight , letterSpacing } = (0, _isPlainObject).default(options) ? options : {
2660
- lineHeight: options
2661
- };
2662
- return {
2663
- 'font-size': fontSize,
2664
- ...lineHeight === undefined ? {
2665
- } : {
2666
- 'line-height': lineHeight
2667
- },
2668
- ...letterSpacing === undefined ? {
2669
- } : {
2670
- 'letter-spacing': letterSpacing
2671
- }
2672
- };
2673
- }
2674
- }, {
2675
- values: theme('fontSize'),
2676
- type: [
2677
- 'absolute-size',
2678
- 'relative-size',
2679
- 'length',
2680
- 'percentage'
2681
- ]
2682
- });
2683
- },
2684
- fontWeight: (0, _createUtilityPlugin).default('fontWeight', [
2685
- [
2686
- 'font',
2687
- [
2688
- 'fontWeight'
2689
- ]
2690
- ]
2691
- ], {
2692
- type: [
2693
- 'lookup',
2694
- 'number'
2695
- ]
2696
- }),
2697
- textTransform: ({ addUtilities })=>{
2698
- addUtilities({
2699
- '.uppercase': {
2700
- 'text-transform': 'uppercase'
2701
- },
2702
- '.lowercase': {
2703
- 'text-transform': 'lowercase'
2704
- },
2705
- '.capitalize': {
2706
- 'text-transform': 'capitalize'
2707
- },
2708
- '.normal-case': {
2709
- 'text-transform': 'none'
2710
- }
2711
- });
2712
- },
2713
- fontStyle: ({ addUtilities })=>{
2714
- addUtilities({
2715
- '.italic': {
2716
- 'font-style': 'italic'
2717
- },
2718
- '.not-italic': {
2719
- 'font-style': 'normal'
2720
- }
2721
- });
2722
- },
2723
- fontVariantNumeric: ({ addUtilities })=>{
2724
- addUtilities({
2725
- '.ordinal, .slashed-zero, .lining-nums, .oldstyle-nums, .proportional-nums, .tabular-nums, .diagonal-fractions, .stacked-fractions': {
2726
- '--tw-ordinal': 'var(--tw-empty,/*!*/ /*!*/)',
2727
- '--tw-slashed-zero': 'var(--tw-empty,/*!*/ /*!*/)',
2728
- '--tw-numeric-figure': 'var(--tw-empty,/*!*/ /*!*/)',
2729
- '--tw-numeric-spacing': 'var(--tw-empty,/*!*/ /*!*/)',
2730
- '--tw-numeric-fraction': 'var(--tw-empty,/*!*/ /*!*/)',
2731
- 'font-variant-numeric': 'var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)'
2732
- },
2733
- '.normal-nums': {
2734
- 'font-variant-numeric': 'normal'
2735
- },
2736
- '.ordinal': {
2737
- '--tw-ordinal': 'ordinal'
2738
- },
2739
- '.slashed-zero': {
2740
- '--tw-slashed-zero': 'slashed-zero'
2741
- },
2742
- '.lining-nums': {
2743
- '--tw-numeric-figure': 'lining-nums'
2744
- },
2745
- '.oldstyle-nums': {
2746
- '--tw-numeric-figure': 'oldstyle-nums'
2747
- },
2748
- '.proportional-nums': {
2749
- '--tw-numeric-spacing': 'proportional-nums'
2750
- },
2751
- '.tabular-nums': {
2752
- '--tw-numeric-spacing': 'tabular-nums'
2753
- },
2754
- '.diagonal-fractions': {
2755
- '--tw-numeric-fraction': 'diagonal-fractions'
2756
- },
2757
- '.stacked-fractions': {
2758
- '--tw-numeric-fraction': 'stacked-fractions'
2759
- }
2760
- });
2761
- },
2762
- lineHeight: (0, _createUtilityPlugin).default('lineHeight', [
2763
- [
2764
- 'leading',
2765
- [
2766
- 'lineHeight'
2767
- ]
2768
- ]
2769
- ]),
2770
- letterSpacing: (0, _createUtilityPlugin).default('letterSpacing', [
2771
- [
2772
- 'tracking',
2773
- [
2774
- 'letterSpacing'
2775
- ]
2776
- ]
2777
- ]),
2778
- textColor: ({ matchUtilities , theme , corePlugins })=>{
2779
- matchUtilities({
2780
- text: (value)=>{
2781
- if (!corePlugins('textOpacity')) {
2782
- return {
2783
- color: (0, _toColorValue).default(value)
2784
- };
2785
- }
2786
- return (0, _withAlphaVariable).default({
2787
- color: value,
2788
- property: 'color',
2789
- variable: '--tw-text-opacity'
2790
- });
2791
- }
2792
- }, {
2793
- values: (0, _flattenColorPalette).default(theme('textColor')),
2794
- type: 'color'
2795
- });
2796
- },
2797
- textOpacity: (0, _createUtilityPlugin).default('textOpacity', [
2798
- [
2799
- 'text-opacity',
2800
- [
2801
- '--tw-text-opacity'
2802
- ]
2803
- ]
2804
- ]),
2805
- textDecoration: ({ addUtilities })=>{
2806
- addUtilities({
2807
- '.underline': {
2808
- 'text-decoration': 'underline'
2809
- },
2810
- '.line-through': {
2811
- 'text-decoration': 'line-through'
2812
- },
2813
- '.no-underline': {
2814
- 'text-decoration': 'none'
2815
- }
2816
- });
2817
- },
2818
- fontSmoothing: ({ addUtilities })=>{
2819
- addUtilities({
2820
- '.antialiased': {
2821
- '-webkit-font-smoothing': 'antialiased',
2822
- '-moz-osx-font-smoothing': 'grayscale'
2823
- },
2824
- '.subpixel-antialiased': {
2825
- '-webkit-font-smoothing': 'auto',
2826
- '-moz-osx-font-smoothing': 'auto'
2827
- }
2828
- });
2829
- },
2830
- placeholderColor: ({ matchUtilities , theme , corePlugins })=>{
2831
- matchUtilities({
2832
- placeholder: (value)=>{
2833
- if (!corePlugins('placeholderOpacity')) {
2834
- return {
2835
- '&::placeholder': {
2836
- color: (0, _toColorValue).default(value)
2837
- }
2838
- };
2839
- }
2840
- return {
2841
- '&::placeholder': (0, _withAlphaVariable).default({
2842
- color: value,
2843
- property: 'color',
2844
- variable: '--tw-placeholder-opacity'
2845
- })
2846
- };
2847
- }
2848
- }, {
2849
- values: (0, _flattenColorPalette).default(theme('placeholderColor')),
2850
- type: [
2851
- 'color',
2852
- 'any'
2853
- ]
2854
- });
2855
- },
2856
- placeholderOpacity: ({ matchUtilities , theme })=>{
2857
- matchUtilities({
2858
- 'placeholder-opacity': (value)=>{
2859
- return {
2860
- ['&::placeholder']: {
2861
- '--tw-placeholder-opacity': value
2862
- }
2863
- };
2864
- }
2865
- }, {
2866
- values: theme('placeholderOpacity')
2867
- });
2868
- },
2869
- caretColor: ({ matchUtilities , theme })=>{
2870
- matchUtilities({
2871
- caret: (value)=>{
2872
- return {
2873
- 'caret-color': (0, _toColorValue).default(value)
2874
- };
2875
- }
2876
- }, {
2877
- values: (0, _flattenColorPalette).default(theme('caretColor')),
2878
- type: [
2879
- 'color',
2880
- 'any'
2881
- ]
2882
- });
2883
- },
2884
- accentColor: ({ matchUtilities , theme })=>{
2885
- matchUtilities({
2886
- accent: (value)=>{
2887
- return {
2888
- 'accent-color': (0, _toColorValue).default(value)
2889
- };
2890
- }
2891
- }, {
2892
- values: (0, _flattenColorPalette).default(theme('accentColor')),
2893
- type: [
2894
- 'color',
2895
- 'any'
2896
- ]
2897
- });
2898
- },
2899
- opacity: (0, _createUtilityPlugin).default('opacity', [
2900
- [
2901
- 'opacity',
2902
- [
2903
- 'opacity'
2904
- ]
2905
- ]
2906
- ]),
2907
- backgroundBlendMode: ({ addUtilities })=>{
2908
- addUtilities({
2909
- '.bg-blend-normal': {
2910
- 'background-blend-mode': 'normal'
2911
- },
2912
- '.bg-blend-multiply': {
2913
- 'background-blend-mode': 'multiply'
2914
- },
2915
- '.bg-blend-screen': {
2916
- 'background-blend-mode': 'screen'
2917
- },
2918
- '.bg-blend-overlay': {
2919
- 'background-blend-mode': 'overlay'
2920
- },
2921
- '.bg-blend-darken': {
2922
- 'background-blend-mode': 'darken'
2923
- },
2924
- '.bg-blend-lighten': {
2925
- 'background-blend-mode': 'lighten'
2926
- },
2927
- '.bg-blend-color-dodge': {
2928
- 'background-blend-mode': 'color-dodge'
2929
- },
2930
- '.bg-blend-color-burn': {
2931
- 'background-blend-mode': 'color-burn'
2932
- },
2933
- '.bg-blend-hard-light': {
2934
- 'background-blend-mode': 'hard-light'
2935
- },
2936
- '.bg-blend-soft-light': {
2937
- 'background-blend-mode': 'soft-light'
2938
- },
2939
- '.bg-blend-difference': {
2940
- 'background-blend-mode': 'difference'
2941
- },
2942
- '.bg-blend-exclusion': {
2943
- 'background-blend-mode': 'exclusion'
2944
- },
2945
- '.bg-blend-hue': {
2946
- 'background-blend-mode': 'hue'
2947
- },
2948
- '.bg-blend-saturation': {
2949
- 'background-blend-mode': 'saturation'
2950
- },
2951
- '.bg-blend-color': {
2952
- 'background-blend-mode': 'color'
2953
- },
2954
- '.bg-blend-luminosity': {
2955
- 'background-blend-mode': 'luminosity'
2956
- }
2957
- });
2958
- },
2959
- mixBlendMode: ({ addUtilities })=>{
2960
- addUtilities({
2961
- '.mix-blend-normal': {
2962
- 'mix-blend-mode': 'normal'
2963
- },
2964
- '.mix-blend-multiply': {
2965
- 'mix-blend-mode': 'multiply'
2966
- },
2967
- '.mix-blend-screen': {
2968
- 'mix-blend-mode': 'screen'
2969
- },
2970
- '.mix-blend-overlay': {
2971
- 'mix-blend-mode': 'overlay'
2972
- },
2973
- '.mix-blend-darken': {
2974
- 'mix-blend-mode': 'darken'
2975
- },
2976
- '.mix-blend-lighten': {
2977
- 'mix-blend-mode': 'lighten'
2978
- },
2979
- '.mix-blend-color-dodge': {
2980
- 'mix-blend-mode': 'color-dodge'
2981
- },
2982
- '.mix-blend-color-burn': {
2983
- 'mix-blend-mode': 'color-burn'
2984
- },
2985
- '.mix-blend-hard-light': {
2986
- 'mix-blend-mode': 'hard-light'
2987
- },
2988
- '.mix-blend-soft-light': {
2989
- 'mix-blend-mode': 'soft-light'
2990
- },
2991
- '.mix-blend-difference': {
2992
- 'mix-blend-mode': 'difference'
2993
- },
2994
- '.mix-blend-exclusion': {
2995
- 'mix-blend-mode': 'exclusion'
2996
- },
2997
- '.mix-blend-hue': {
2998
- 'mix-blend-mode': 'hue'
2999
- },
3000
- '.mix-blend-saturation': {
3001
- 'mix-blend-mode': 'saturation'
3002
- },
3003
- '.mix-blend-color': {
3004
- 'mix-blend-mode': 'color'
3005
- },
3006
- '.mix-blend-luminosity': {
3007
- 'mix-blend-mode': 'luminosity'
3008
- }
3009
- });
3010
- },
3011
- boxShadow: (()=>{
3012
- let transformValue = (0, _transformThemeValue).default('boxShadow');
3013
- let defaultBoxShadow = [
3014
- `var(--tw-ring-offset-shadow, 0 0 #0000)`,
3015
- `var(--tw-ring-shadow, 0 0 #0000)`,
3016
- `var(--tw-shadow)`,
3017
- ].join(', ');
3018
- return function({ matchUtilities , addBase , theme }) {
3019
- addBase({
3020
- '@defaults box-shadow': {
3021
- '--tw-ring-offset-shadow': '0 0 #0000',
3022
- '--tw-ring-shadow': '0 0 #0000',
3023
- '--tw-shadow': '0 0 #0000'
3024
- }
3025
- });
3026
- matchUtilities({
3027
- shadow: (value)=>{
3028
- value = transformValue(value);
3029
- return {
3030
- '@defaults box-shadow': {
3031
- },
3032
- '--tw-shadow': value === 'none' ? '0 0 #0000' : value,
3033
- 'box-shadow': defaultBoxShadow
3034
- };
3035
- }
3036
- }, {
3037
- values: theme('boxShadow')
3038
- });
3039
- };
3040
- })(),
3041
- outline: ({ matchUtilities , theme })=>{
3042
- matchUtilities({
3043
- outline: (value)=>{
3044
- value = Array.isArray(value) ? value : value.split(',');
3045
- let [outline, outlineOffset = '0'] = Array.isArray(value) ? value : [
3046
- value
3047
- ];
3048
- return {
3049
- outline,
3050
- 'outline-offset': outlineOffset
3051
- };
3052
- }
3053
- }, {
3054
- values: theme('outline')
3055
- });
3056
- },
3057
- ringWidth: ({ matchUtilities , addBase , addUtilities , theme })=>{
3058
- let ringOpacityDefault = theme('ringOpacity.DEFAULT', '0.5');
3059
- let ringColorDefault = (0, _withAlphaVariable).withAlphaValue(theme('ringColor.DEFAULT'), ringOpacityDefault, `rgb(147 197 253 / ${ringOpacityDefault})`);
3060
- addBase({
3061
- '@defaults ring-width': {
3062
- '--tw-ring-inset': 'var(--tw-empty,/*!*/ /*!*/)',
3063
- '--tw-ring-offset-width': theme('ringOffsetWidth.DEFAULT', '0px'),
3064
- '--tw-ring-offset-color': theme('ringOffsetColor.DEFAULT', '#fff'),
3065
- '--tw-ring-color': ringColorDefault,
3066
- '--tw-ring-offset-shadow': '0 0 #0000',
3067
- '--tw-ring-shadow': '0 0 #0000',
3068
- '--tw-shadow': '0 0 #0000'
3069
- }
3070
- });
3071
- matchUtilities({
3072
- ring: (value)=>{
3073
- return {
3074
- '@defaults ring-width': {
3075
- },
3076
- '--tw-ring-offset-shadow': `var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)`,
3077
- '--tw-ring-shadow': `var(--tw-ring-inset) 0 0 0 calc(${value} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,
3078
- 'box-shadow': [
3079
- `var(--tw-ring-offset-shadow)`,
3080
- `var(--tw-ring-shadow)`,
3081
- `var(--tw-shadow, 0 0 #0000)`,
3082
- ].join(', ')
3083
- };
3084
- }
3085
- }, {
3086
- values: theme('ringWidth'),
3087
- type: 'length'
3088
- });
3089
- addUtilities({
3090
- '.ring-inset': {
3091
- '@defaults ring-width': {
3092
- },
3093
- '--tw-ring-inset': 'inset'
3094
- }
3095
- });
3096
- },
3097
- ringColor: ({ matchUtilities , theme })=>{
3098
- matchUtilities({
3099
- ring: (value)=>{
3100
- return (0, _withAlphaVariable).default({
3101
- color: value,
3102
- property: '--tw-ring-color',
3103
- variable: '--tw-ring-opacity'
3104
- });
3105
- }
3106
- }, {
3107
- values: Object.fromEntries(Object.entries((0, _flattenColorPalette).default(theme('ringColor'))).filter(([modifier])=>modifier !== 'DEFAULT'
3108
- )),
3109
- type: 'color'
3110
- });
3111
- },
3112
- ringOpacity: (0, _createUtilityPlugin).default('ringOpacity', [
3113
- [
3114
- 'ring-opacity',
3115
- [
3116
- '--tw-ring-opacity'
3117
- ]
3118
- ]
3119
- ], {
3120
- filterDefault: true
3121
- }),
3122
- ringOffsetWidth: (0, _createUtilityPlugin).default('ringOffsetWidth', [
3123
- [
3124
- 'ring-offset',
3125
- [
3126
- '--tw-ring-offset-width'
3127
- ]
3128
- ]
3129
- ], {
3130
- type: 'length'
3131
- }),
3132
- ringOffsetColor: ({ matchUtilities , theme })=>{
3133
- matchUtilities({
3134
- 'ring-offset': (value)=>{
3135
- return {
3136
- '--tw-ring-offset-color': (0, _toColorValue).default(value)
3137
- };
3138
- }
3139
- }, {
3140
- values: (0, _flattenColorPalette).default(theme('ringOffsetColor')),
3141
- type: 'color'
3142
- });
3143
- },
3144
- blur: ({ matchUtilities , theme })=>{
3145
- matchUtilities({
3146
- blur: (value)=>{
3147
- return {
3148
- '--tw-blur': `blur(${value})`,
3149
- '@defaults filter': {
3150
- },
3151
- filter: 'var(--tw-filter)'
3152
- };
3153
- }
3154
- }, {
3155
- values: theme('blur')
3156
- });
3157
- },
3158
- brightness: ({ matchUtilities , theme })=>{
3159
- matchUtilities({
3160
- brightness: (value)=>{
3161
- return {
3162
- '--tw-brightness': `brightness(${value})`,
3163
- '@defaults filter': {
3164
- },
3165
- filter: 'var(--tw-filter)'
3166
- };
3167
- }
3168
- }, {
3169
- values: theme('brightness')
3170
- });
3171
- },
3172
- contrast: ({ matchUtilities , theme })=>{
3173
- matchUtilities({
3174
- contrast: (value)=>{
3175
- return {
3176
- '--tw-contrast': `contrast(${value})`,
3177
- '@defaults filter': {
3178
- },
3179
- filter: 'var(--tw-filter)'
3180
- };
3181
- }
3182
- }, {
3183
- values: theme('contrast')
3184
- });
3185
- },
3186
- dropShadow: ({ matchUtilities , theme })=>{
3187
- matchUtilities({
3188
- 'drop-shadow': (value)=>{
3189
- return {
3190
- '--tw-drop-shadow': Array.isArray(value) ? value.map((v)=>`drop-shadow(${v})`
3191
- ).join(' ') : `drop-shadow(${value})`,
3192
- '@defaults filter': {
3193
- },
3194
- filter: 'var(--tw-filter)'
3195
- };
3196
- }
3197
- }, {
3198
- values: theme('dropShadow')
3199
- });
3200
- },
3201
- grayscale: ({ matchUtilities , theme })=>{
3202
- matchUtilities({
3203
- grayscale: (value)=>{
3204
- return {
3205
- '--tw-grayscale': `grayscale(${value})`,
3206
- '@defaults filter': {
3207
- },
3208
- filter: 'var(--tw-filter)'
3209
- };
3210
- }
3211
- }, {
3212
- values: theme('grayscale')
3213
- });
3214
- },
3215
- hueRotate: ({ matchUtilities , theme })=>{
3216
- matchUtilities({
3217
- 'hue-rotate': (value)=>{
3218
- return {
3219
- '--tw-hue-rotate': `hue-rotate(${value})`,
3220
- '@defaults filter': {
3221
- },
3222
- filter: 'var(--tw-filter)'
3223
- };
3224
- }
3225
- }, {
3226
- values: theme('hueRotate')
3227
- });
3228
- },
3229
- invert: ({ matchUtilities , theme })=>{
3230
- matchUtilities({
3231
- invert: (value)=>{
3232
- return {
3233
- '--tw-invert': `invert(${value})`,
3234
- '@defaults filter': {
3235
- },
3236
- filter: 'var(--tw-filter)'
3237
- };
3238
- }
3239
- }, {
3240
- values: theme('invert')
3241
- });
3242
- },
3243
- saturate: ({ matchUtilities , theme })=>{
3244
- matchUtilities({
3245
- saturate: (value)=>{
3246
- return {
3247
- '--tw-saturate': `saturate(${value})`,
3248
- '@defaults filter': {
3249
- },
3250
- filter: 'var(--tw-filter)'
3251
- };
3252
- }
3253
- }, {
3254
- values: theme('saturate')
3255
- });
3256
- },
3257
- sepia: ({ matchUtilities , theme })=>{
3258
- matchUtilities({
3259
- sepia: (value)=>{
3260
- return {
3261
- '--tw-sepia': `sepia(${value})`,
3262
- '@defaults filter': {
3263
- },
3264
- filter: 'var(--tw-filter)'
3265
- };
3266
- }
3267
- }, {
3268
- values: theme('sepia')
3269
- });
3270
- },
3271
- filter: ({ addBase , addUtilities })=>{
3272
- addBase({
3273
- '@defaults filter': {
3274
- '--tw-blur': 'var(--tw-empty,/*!*/ /*!*/)',
3275
- '--tw-brightness': 'var(--tw-empty,/*!*/ /*!*/)',
3276
- '--tw-contrast': 'var(--tw-empty,/*!*/ /*!*/)',
3277
- '--tw-grayscale': 'var(--tw-empty,/*!*/ /*!*/)',
3278
- '--tw-hue-rotate': 'var(--tw-empty,/*!*/ /*!*/)',
3279
- '--tw-invert': 'var(--tw-empty,/*!*/ /*!*/)',
3280
- '--tw-saturate': 'var(--tw-empty,/*!*/ /*!*/)',
3281
- '--tw-sepia': 'var(--tw-empty,/*!*/ /*!*/)',
3282
- '--tw-drop-shadow': 'var(--tw-empty,/*!*/ /*!*/)',
3283
- '--tw-filter': [
3284
- 'var(--tw-blur)',
3285
- 'var(--tw-brightness)',
3286
- 'var(--tw-contrast)',
3287
- 'var(--tw-grayscale)',
3288
- 'var(--tw-hue-rotate)',
3289
- 'var(--tw-invert)',
3290
- 'var(--tw-saturate)',
3291
- 'var(--tw-sepia)',
3292
- 'var(--tw-drop-shadow)',
3293
- ].join(' ')
3294
- }
3295
- });
3296
- addUtilities({
3297
- '.filter': {
3298
- '@defaults filter': {
3299
- },
3300
- filter: 'var(--tw-filter)'
3301
- },
3302
- '.filter-none': {
3303
- filter: 'none'
3304
- }
3305
- });
3306
- },
3307
- backdropBlur: ({ matchUtilities , theme })=>{
3308
- matchUtilities({
3309
- 'backdrop-blur': (value)=>{
3310
- return {
3311
- '--tw-backdrop-blur': `blur(${value})`,
3312
- '@defaults backdrop-filter': {
3313
- },
3314
- 'backdrop-filter': 'var(--tw-backdrop-filter)'
3315
- };
3316
- }
3317
- }, {
3318
- values: theme('backdropBlur')
3319
- });
3320
- },
3321
- backdropBrightness: ({ matchUtilities , theme })=>{
3322
- matchUtilities({
3323
- 'backdrop-brightness': (value)=>{
3324
- return {
3325
- '--tw-backdrop-brightness': `brightness(${value})`,
3326
- '@defaults backdrop-filter': {
3327
- },
3328
- 'backdrop-filter': 'var(--tw-backdrop-filter)'
3329
- };
3330
- }
3331
- }, {
3332
- values: theme('backdropBrightness')
3333
- });
3334
- },
3335
- backdropContrast: ({ matchUtilities , theme })=>{
3336
- matchUtilities({
3337
- 'backdrop-contrast': (value)=>{
3338
- return {
3339
- '--tw-backdrop-contrast': `contrast(${value})`,
3340
- '@defaults backdrop-filter': {
3341
- },
3342
- 'backdrop-filter': 'var(--tw-backdrop-filter)'
3343
- };
3344
- }
3345
- }, {
3346
- values: theme('backdropContrast')
3347
- });
3348
- },
3349
- backdropGrayscale: ({ matchUtilities , theme })=>{
3350
- matchUtilities({
3351
- 'backdrop-grayscale': (value)=>{
3352
- return {
3353
- '--tw-backdrop-grayscale': `grayscale(${value})`,
3354
- '@defaults backdrop-filter': {
3355
- },
3356
- 'backdrop-filter': 'var(--tw-backdrop-filter)'
3357
- };
3358
- }
3359
- }, {
3360
- values: theme('backdropGrayscale')
3361
- });
3362
- },
3363
- backdropHueRotate: ({ matchUtilities , theme })=>{
3364
- matchUtilities({
3365
- 'backdrop-hue-rotate': (value)=>{
3366
- return {
3367
- '--tw-backdrop-hue-rotate': `hue-rotate(${value})`,
3368
- '@defaults backdrop-filter': {
3369
- },
3370
- 'backdrop-filter': 'var(--tw-backdrop-filter)'
3371
- };
3372
- }
3373
- }, {
3374
- values: theme('backdropHueRotate')
3375
- });
3376
- },
3377
- backdropInvert: ({ matchUtilities , theme })=>{
3378
- matchUtilities({
3379
- 'backdrop-invert': (value)=>{
3380
- return {
3381
- '--tw-backdrop-invert': `invert(${value})`,
3382
- '@defaults backdrop-filter': {
3383
- },
3384
- 'backdrop-filter': 'var(--tw-backdrop-filter)'
3385
- };
3386
- }
3387
- }, {
3388
- values: theme('backdropInvert')
3389
- });
3390
- },
3391
- backdropOpacity: ({ matchUtilities , theme })=>{
3392
- matchUtilities({
3393
- 'backdrop-opacity': (value)=>{
3394
- return {
3395
- '--tw-backdrop-opacity': `opacity(${value})`,
3396
- '@defaults backdrop-filter': {
3397
- },
3398
- 'backdrop-filter': 'var(--tw-backdrop-filter)'
3399
- };
3400
- }
3401
- }, {
3402
- values: theme('backdropOpacity')
3403
- });
3404
- },
3405
- backdropSaturate: ({ matchUtilities , theme })=>{
3406
- matchUtilities({
3407
- 'backdrop-saturate': (value)=>{
3408
- return {
3409
- '--tw-backdrop-saturate': `saturate(${value})`,
3410
- '@defaults backdrop-filter': {
3411
- },
3412
- 'backdrop-filter': 'var(--tw-backdrop-filter)'
3413
- };
3414
- }
3415
- }, {
3416
- values: theme('backdropSaturate')
3417
- });
3418
- },
3419
- backdropSepia: ({ matchUtilities , theme })=>{
3420
- matchUtilities({
3421
- 'backdrop-sepia': (value)=>{
3422
- return {
3423
- '--tw-backdrop-sepia': `sepia(${value})`,
3424
- '@defaults backdrop-filter': {
3425
- },
3426
- 'backdrop-filter': 'var(--tw-backdrop-filter)'
3427
- };
3428
- }
3429
- }, {
3430
- values: theme('backdropSepia')
3431
- });
3432
- },
3433
- backdropFilter: ({ addBase , addUtilities })=>{
3434
- addBase({
3435
- '@defaults backdrop-filter': {
3436
- '--tw-backdrop-blur': 'var(--tw-empty,/*!*/ /*!*/)',
3437
- '--tw-backdrop-brightness': 'var(--tw-empty,/*!*/ /*!*/)',
3438
- '--tw-backdrop-contrast': 'var(--tw-empty,/*!*/ /*!*/)',
3439
- '--tw-backdrop-grayscale': 'var(--tw-empty,/*!*/ /*!*/)',
3440
- '--tw-backdrop-hue-rotate': 'var(--tw-empty,/*!*/ /*!*/)',
3441
- '--tw-backdrop-invert': 'var(--tw-empty,/*!*/ /*!*/)',
3442
- '--tw-backdrop-opacity': 'var(--tw-empty,/*!*/ /*!*/)',
3443
- '--tw-backdrop-saturate': 'var(--tw-empty,/*!*/ /*!*/)',
3444
- '--tw-backdrop-sepia': 'var(--tw-empty,/*!*/ /*!*/)',
3445
- '--tw-backdrop-filter': [
3446
- 'var(--tw-backdrop-blur)',
3447
- 'var(--tw-backdrop-brightness)',
3448
- 'var(--tw-backdrop-contrast)',
3449
- 'var(--tw-backdrop-grayscale)',
3450
- 'var(--tw-backdrop-hue-rotate)',
3451
- 'var(--tw-backdrop-invert)',
3452
- 'var(--tw-backdrop-opacity)',
3453
- 'var(--tw-backdrop-saturate)',
3454
- 'var(--tw-backdrop-sepia)',
3455
- ].join(' ')
3456
- }
3457
- });
3458
- addUtilities({
3459
- '.backdrop-filter': {
3460
- '@defaults backdrop-filter': {
3461
- },
3462
- 'backdrop-filter': 'var(--tw-backdrop-filter)'
3463
- },
3464
- '.backdrop-filter-none': {
3465
- 'backdrop-filter': 'none'
3466
- }
3467
- });
3468
- },
3469
- transitionProperty: ({ matchUtilities , theme })=>{
3470
- let defaultTimingFunction = theme('transitionTimingFunction.DEFAULT');
3471
- let defaultDuration = theme('transitionDuration.DEFAULT');
3472
- matchUtilities({
3473
- transition: (value)=>{
3474
- return {
3475
- 'transition-property': value,
3476
- ...value === 'none' ? {
3477
- } : {
3478
- 'transition-timing-function': defaultTimingFunction,
3479
- 'transition-duration': defaultDuration
3480
- }
3481
- };
3482
- }
3483
- }, {
3484
- values: theme('transitionProperty')
3485
- });
3486
- },
3487
- transitionDelay: (0, _createUtilityPlugin).default('transitionDelay', [
3488
- [
3489
- 'delay',
3490
- [
3491
- 'transitionDelay'
3492
- ]
3493
- ]
3494
- ]),
3495
- transitionDuration: (0, _createUtilityPlugin).default('transitionDuration', [
3496
- [
3497
- 'duration',
3498
- [
3499
- 'transitionDuration'
3500
- ]
3501
- ]
3502
- ], {
3503
- filterDefault: true
3504
- }),
3505
- transitionTimingFunction: (0, _createUtilityPlugin).default('transitionTimingFunction', [
3506
- [
3507
- 'ease',
3508
- [
3509
- 'transitionTimingFunction'
3510
- ]
3511
- ]
3512
- ], {
3513
- filterDefault: true
3514
- }),
3515
- willChange: (0, _createUtilityPlugin).default('willChange', [
3516
- [
3517
- 'will-change',
3518
- [
3519
- 'will-change'
3520
- ]
3521
- ]
3522
- ]),
3523
- content: (0, _createUtilityPlugin).default('content')
3524
- };
3525
- exports.default = _default;