tailwindcss 3.4.1 → 4.0.0-alpha.2

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 (280) hide show
  1. package/README.md +5 -6
  2. package/dist/lib.d.mts +324 -0
  3. package/dist/lib.d.ts +324 -0
  4. package/dist/lib.js +11 -0
  5. package/dist/lib.mjs +11 -0
  6. package/index.css +5 -0
  7. package/package.json +29 -107
  8. package/preflight.css +355 -0
  9. package/theme.css +465 -0
  10. package/CHANGELOG.md +0 -2571
  11. package/base.css +0 -1
  12. package/colors.d.ts +0 -3
  13. package/colors.js +0 -2
  14. package/components.css +0 -1
  15. package/defaultConfig.d.ts +0 -3
  16. package/defaultConfig.js +0 -2
  17. package/defaultTheme.d.ts +0 -4
  18. package/defaultTheme.js +0 -2
  19. package/lib/cli/build/deps.js +0 -62
  20. package/lib/cli/build/index.js +0 -54
  21. package/lib/cli/build/plugin.js +0 -378
  22. package/lib/cli/build/utils.js +0 -88
  23. package/lib/cli/build/watching.js +0 -182
  24. package/lib/cli/help/index.js +0 -73
  25. package/lib/cli/index.js +0 -230
  26. package/lib/cli/init/index.js +0 -63
  27. package/lib/cli-peer-dependencies.js +0 -36
  28. package/lib/cli.js +0 -7
  29. package/lib/corePluginList.js +0 -190
  30. package/lib/corePlugins.js +0 -4282
  31. package/lib/css/LICENSE +0 -25
  32. package/lib/css/preflight.css +0 -385
  33. package/lib/featureFlags.js +0 -83
  34. package/lib/index.js +0 -2
  35. package/lib/lib/cacheInvalidation.js +0 -92
  36. package/lib/lib/collapseAdjacentRules.js +0 -61
  37. package/lib/lib/collapseDuplicateDeclarations.js +0 -85
  38. package/lib/lib/content.js +0 -181
  39. package/lib/lib/defaultExtractor.js +0 -251
  40. package/lib/lib/detectNesting.js +0 -45
  41. package/lib/lib/evaluateTailwindFunctions.js +0 -238
  42. package/lib/lib/expandApplyAtRules.js +0 -540
  43. package/lib/lib/expandTailwindAtRules.js +0 -291
  44. package/lib/lib/findAtConfigPath.js +0 -46
  45. package/lib/lib/generateRules.js +0 -904
  46. package/lib/lib/getModuleDependencies.js +0 -99
  47. package/lib/lib/load-config.js +0 -53
  48. package/lib/lib/normalizeTailwindDirectives.js +0 -89
  49. package/lib/lib/offsets.js +0 -306
  50. package/lib/lib/partitionApplyAtRules.js +0 -58
  51. package/lib/lib/regex.js +0 -74
  52. package/lib/lib/remap-bitfield.js +0 -89
  53. package/lib/lib/resolveDefaultsAtRules.js +0 -165
  54. package/lib/lib/setupContextUtils.js +0 -1294
  55. package/lib/lib/setupTrackingContext.js +0 -166
  56. package/lib/lib/sharedState.js +0 -87
  57. package/lib/lib/substituteScreenAtRules.js +0 -31
  58. package/lib/oxide/cli/build/deps.js +0 -89
  59. package/lib/oxide/cli/build/index.js +0 -53
  60. package/lib/oxide/cli/build/plugin.js +0 -375
  61. package/lib/oxide/cli/build/utils.js +0 -87
  62. package/lib/oxide/cli/build/watching.js +0 -179
  63. package/lib/oxide/cli/help/index.js +0 -72
  64. package/lib/oxide/cli/index.js +0 -214
  65. package/lib/oxide/cli/init/index.js +0 -52
  66. package/lib/oxide/cli.js +0 -5
  67. package/lib/oxide/postcss-plugin.js +0 -2
  68. package/lib/plugin.js +0 -98
  69. package/lib/postcss-plugins/nesting/README.md +0 -42
  70. package/lib/postcss-plugins/nesting/index.js +0 -21
  71. package/lib/postcss-plugins/nesting/plugin.js +0 -89
  72. package/lib/processTailwindFeatures.js +0 -64
  73. package/lib/public/colors.js +0 -355
  74. package/lib/public/create-plugin.js +0 -17
  75. package/lib/public/default-config.js +0 -18
  76. package/lib/public/default-theme.js +0 -18
  77. package/lib/public/load-config.js +0 -12
  78. package/lib/public/resolve-config.js +0 -24
  79. package/lib/util/applyImportantSelector.js +0 -36
  80. package/lib/util/bigSign.js +0 -13
  81. package/lib/util/buildMediaQuery.js +0 -27
  82. package/lib/util/cloneDeep.js +0 -22
  83. package/lib/util/cloneNodes.js +0 -54
  84. package/lib/util/color.js +0 -116
  85. package/lib/util/colorNames.js +0 -752
  86. package/lib/util/configurePlugins.js +0 -23
  87. package/lib/util/createPlugin.js +0 -32
  88. package/lib/util/createUtilityPlugin.js +0 -53
  89. package/lib/util/dataTypes.js +0 -415
  90. package/lib/util/defaults.js +0 -27
  91. package/lib/util/escapeClassName.js +0 -24
  92. package/lib/util/escapeCommas.js +0 -13
  93. package/lib/util/flattenColorPalette.js +0 -18
  94. package/lib/util/formatVariantSelector.js +0 -270
  95. package/lib/util/getAllConfigs.js +0 -50
  96. package/lib/util/hashConfig.js +0 -21
  97. package/lib/util/isKeyframeRule.js +0 -13
  98. package/lib/util/isPlainObject.js +0 -17
  99. package/lib/util/isSyntacticallyValidPropertyValue.js +0 -74
  100. package/lib/util/log.js +0 -61
  101. package/lib/util/nameClass.js +0 -49
  102. package/lib/util/negateValue.js +0 -36
  103. package/lib/util/normalizeConfig.js +0 -282
  104. package/lib/util/normalizeScreens.js +0 -178
  105. package/lib/util/parseAnimationValue.js +0 -93
  106. package/lib/util/parseBoxShadowValue.js +0 -88
  107. package/lib/util/parseDependency.js +0 -47
  108. package/lib/util/parseGlob.js +0 -36
  109. package/lib/util/parseObjectStyles.js +0 -36
  110. package/lib/util/pluginUtils.js +0 -289
  111. package/lib/util/prefixSelector.js +0 -39
  112. package/lib/util/pseudoElements.js +0 -212
  113. package/lib/util/removeAlphaVariables.js +0 -31
  114. package/lib/util/resolveConfig.js +0 -256
  115. package/lib/util/resolveConfigPath.js +0 -70
  116. package/lib/util/responsive.js +0 -24
  117. package/lib/util/splitAtTopLevelOnly.js +0 -51
  118. package/lib/util/tap.js +0 -14
  119. package/lib/util/toColorValue.js +0 -13
  120. package/lib/util/toPath.js +0 -32
  121. package/lib/util/transformThemeValue.js +0 -73
  122. package/lib/util/validateConfig.js +0 -37
  123. package/lib/util/validateFormalSyntax.js +0 -26
  124. package/lib/util/withAlphaVariable.js +0 -79
  125. package/lib/value-parser/LICENSE +0 -22
  126. package/lib/value-parser/README.md +0 -3
  127. package/lib/value-parser/index.d.js +0 -2
  128. package/lib/value-parser/index.js +0 -22
  129. package/lib/value-parser/parse.js +0 -259
  130. package/lib/value-parser/stringify.js +0 -38
  131. package/lib/value-parser/unit.js +0 -86
  132. package/lib/value-parser/walk.js +0 -16
  133. package/loadConfig.d.ts +0 -4
  134. package/loadConfig.js +0 -2
  135. package/nesting/index.d.ts +0 -4
  136. package/nesting/index.js +0 -2
  137. package/peers/index.js +0 -96624
  138. package/plugin.d.ts +0 -11
  139. package/plugin.js +0 -2
  140. package/prettier.config.js +0 -19
  141. package/resolveConfig.d.ts +0 -31
  142. package/resolveConfig.js +0 -2
  143. package/screens.css +0 -1
  144. package/scripts/create-plugin-list.js +0 -10
  145. package/scripts/generate-types.js +0 -104
  146. package/scripts/release-channel.js +0 -18
  147. package/scripts/release-notes.js +0 -21
  148. package/scripts/swap-engines.js +0 -40
  149. package/scripts/type-utils.js +0 -27
  150. package/src/cli/build/deps.js +0 -56
  151. package/src/cli/build/index.js +0 -49
  152. package/src/cli/build/plugin.js +0 -444
  153. package/src/cli/build/utils.js +0 -76
  154. package/src/cli/build/watching.js +0 -229
  155. package/src/cli/help/index.js +0 -70
  156. package/src/cli/index.js +0 -216
  157. package/src/cli/init/index.js +0 -79
  158. package/src/cli-peer-dependencies.js +0 -15
  159. package/src/cli.js +0 -7
  160. package/src/corePluginList.js +0 -1
  161. package/src/corePlugins.js +0 -2943
  162. package/src/css/LICENSE +0 -25
  163. package/src/css/preflight.css +0 -385
  164. package/src/featureFlags.js +0 -66
  165. package/src/index.js +0 -1
  166. package/src/lib/cacheInvalidation.js +0 -52
  167. package/src/lib/collapseAdjacentRules.js +0 -58
  168. package/src/lib/collapseDuplicateDeclarations.js +0 -93
  169. package/src/lib/content.js +0 -208
  170. package/src/lib/defaultExtractor.js +0 -230
  171. package/src/lib/detectNesting.js +0 -47
  172. package/src/lib/evaluateTailwindFunctions.js +0 -272
  173. package/src/lib/expandApplyAtRules.js +0 -620
  174. package/src/lib/expandTailwindAtRules.js +0 -300
  175. package/src/lib/findAtConfigPath.js +0 -48
  176. package/src/lib/generateRules.js +0 -951
  177. package/src/lib/getModuleDependencies.js +0 -79
  178. package/src/lib/load-config.ts +0 -39
  179. package/src/lib/normalizeTailwindDirectives.js +0 -84
  180. package/src/lib/offsets.js +0 -373
  181. package/src/lib/partitionApplyAtRules.js +0 -52
  182. package/src/lib/regex.js +0 -74
  183. package/src/lib/remap-bitfield.js +0 -82
  184. package/src/lib/resolveDefaultsAtRules.js +0 -163
  185. package/src/lib/setupContextUtils.js +0 -1366
  186. package/src/lib/setupTrackingContext.js +0 -169
  187. package/src/lib/sharedState.js +0 -61
  188. package/src/lib/substituteScreenAtRules.js +0 -19
  189. package/src/oxide/cli/build/deps.ts +0 -91
  190. package/src/oxide/cli/build/index.ts +0 -47
  191. package/src/oxide/cli/build/plugin.ts +0 -442
  192. package/src/oxide/cli/build/utils.ts +0 -74
  193. package/src/oxide/cli/build/watching.ts +0 -225
  194. package/src/oxide/cli/help/index.ts +0 -69
  195. package/src/oxide/cli/index.ts +0 -204
  196. package/src/oxide/cli/init/index.ts +0 -59
  197. package/src/oxide/cli.ts +0 -1
  198. package/src/oxide/postcss-plugin.ts +0 -1
  199. package/src/plugin.js +0 -107
  200. package/src/postcss-plugins/nesting/README.md +0 -42
  201. package/src/postcss-plugins/nesting/index.js +0 -13
  202. package/src/postcss-plugins/nesting/plugin.js +0 -80
  203. package/src/processTailwindFeatures.js +0 -59
  204. package/src/public/colors.js +0 -322
  205. package/src/public/create-plugin.js +0 -2
  206. package/src/public/default-config.js +0 -4
  207. package/src/public/default-theme.js +0 -4
  208. package/src/public/load-config.js +0 -2
  209. package/src/public/resolve-config.js +0 -7
  210. package/src/util/applyImportantSelector.js +0 -27
  211. package/src/util/bigSign.js +0 -3
  212. package/src/util/buildMediaQuery.js +0 -22
  213. package/src/util/cloneDeep.js +0 -11
  214. package/src/util/cloneNodes.js +0 -49
  215. package/src/util/color.js +0 -88
  216. package/src/util/colorNames.js +0 -150
  217. package/src/util/configurePlugins.js +0 -23
  218. package/src/util/createPlugin.js +0 -27
  219. package/src/util/createUtilityPlugin.js +0 -37
  220. package/src/util/dataTypes.js +0 -406
  221. package/src/util/defaults.js +0 -17
  222. package/src/util/escapeClassName.js +0 -8
  223. package/src/util/escapeCommas.js +0 -3
  224. package/src/util/flattenColorPalette.js +0 -13
  225. package/src/util/formatVariantSelector.js +0 -324
  226. package/src/util/getAllConfigs.js +0 -38
  227. package/src/util/hashConfig.js +0 -5
  228. package/src/util/isKeyframeRule.js +0 -3
  229. package/src/util/isPlainObject.js +0 -8
  230. package/src/util/isSyntacticallyValidPropertyValue.js +0 -61
  231. package/src/util/log.js +0 -29
  232. package/src/util/nameClass.js +0 -30
  233. package/src/util/negateValue.js +0 -24
  234. package/src/util/normalizeConfig.js +0 -301
  235. package/src/util/normalizeScreens.js +0 -140
  236. package/src/util/parseAnimationValue.js +0 -68
  237. package/src/util/parseBoxShadowValue.js +0 -72
  238. package/src/util/parseDependency.js +0 -44
  239. package/src/util/parseGlob.js +0 -24
  240. package/src/util/parseObjectStyles.js +0 -19
  241. package/src/util/pluginUtils.js +0 -307
  242. package/src/util/prefixSelector.js +0 -33
  243. package/src/util/pseudoElements.js +0 -171
  244. package/src/util/removeAlphaVariables.js +0 -24
  245. package/src/util/resolveConfig.js +0 -277
  246. package/src/util/resolveConfigPath.js +0 -66
  247. package/src/util/responsive.js +0 -10
  248. package/src/util/splitAtTopLevelOnly.js +0 -52
  249. package/src/util/tap.js +0 -4
  250. package/src/util/toColorValue.js +0 -3
  251. package/src/util/toPath.js +0 -26
  252. package/src/util/transformThemeValue.js +0 -62
  253. package/src/util/validateConfig.js +0 -26
  254. package/src/util/validateFormalSyntax.js +0 -34
  255. package/src/util/withAlphaVariable.js +0 -49
  256. package/src/value-parser/LICENSE +0 -22
  257. package/src/value-parser/README.md +0 -3
  258. package/src/value-parser/index.d.ts +0 -177
  259. package/src/value-parser/index.js +0 -28
  260. package/src/value-parser/parse.js +0 -303
  261. package/src/value-parser/stringify.js +0 -41
  262. package/src/value-parser/unit.js +0 -118
  263. package/src/value-parser/walk.js +0 -18
  264. package/stubs/.gitignore +0 -1
  265. package/stubs/.prettierrc.json +0 -6
  266. package/stubs/config.full.js +0 -1062
  267. package/stubs/config.simple.js +0 -7
  268. package/stubs/postcss.config.cjs +0 -6
  269. package/stubs/postcss.config.js +0 -6
  270. package/stubs/tailwind.config.cjs +0 -2
  271. package/stubs/tailwind.config.js +0 -2
  272. package/stubs/tailwind.config.ts +0 -3
  273. package/tailwind.css +0 -5
  274. package/types/config.d.ts +0 -376
  275. package/types/generated/.gitkeep +0 -0
  276. package/types/generated/colors.d.ts +0 -298
  277. package/types/generated/corePluginList.d.ts +0 -1
  278. package/types/generated/default-theme.d.ts +0 -397
  279. package/types/index.d.ts +0 -11
  280. package/variants.css +0 -1
@@ -1,4282 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- function _export(target, all) {
6
- for(var name in all)Object.defineProperty(target, name, {
7
- enumerable: true,
8
- get: all[name]
9
- });
10
- }
11
- _export(exports, {
12
- variantPlugins: function() {
13
- return variantPlugins;
14
- },
15
- corePlugins: function() {
16
- return corePlugins;
17
- }
18
- });
19
- const _fs = /*#__PURE__*/ _interop_require_default(require("fs"));
20
- const _path = /*#__PURE__*/ _interop_require_wildcard(require("path"));
21
- const _postcss = /*#__PURE__*/ _interop_require_default(require("postcss"));
22
- const _createUtilityPlugin = /*#__PURE__*/ _interop_require_default(require("./util/createUtilityPlugin"));
23
- const _buildMediaQuery = /*#__PURE__*/ _interop_require_default(require("./util/buildMediaQuery"));
24
- const _escapeClassName = /*#__PURE__*/ _interop_require_default(require("./util/escapeClassName"));
25
- const _parseAnimationValue = /*#__PURE__*/ _interop_require_default(require("./util/parseAnimationValue"));
26
- const _flattenColorPalette = /*#__PURE__*/ _interop_require_default(require("./util/flattenColorPalette"));
27
- const _withAlphaVariable = /*#__PURE__*/ _interop_require_wildcard(require("./util/withAlphaVariable"));
28
- const _toColorValue = /*#__PURE__*/ _interop_require_default(require("./util/toColorValue"));
29
- const _isPlainObject = /*#__PURE__*/ _interop_require_default(require("./util/isPlainObject"));
30
- const _transformThemeValue = /*#__PURE__*/ _interop_require_default(require("./util/transformThemeValue"));
31
- const _packagejson = require("../package.json");
32
- const _log = /*#__PURE__*/ _interop_require_default(require("./util/log"));
33
- const _normalizeScreens = require("./util/normalizeScreens");
34
- const _parseBoxShadowValue = require("./util/parseBoxShadowValue");
35
- const _removeAlphaVariables = require("./util/removeAlphaVariables");
36
- const _featureFlags = require("./featureFlags");
37
- const _dataTypes = require("./util/dataTypes");
38
- const _setupContextUtils = require("./lib/setupContextUtils");
39
- function _interop_require_default(obj) {
40
- return obj && obj.__esModule ? obj : {
41
- default: obj
42
- };
43
- }
44
- function _getRequireWildcardCache(nodeInterop) {
45
- if (typeof WeakMap !== "function") return null;
46
- var cacheBabelInterop = new WeakMap();
47
- var cacheNodeInterop = new WeakMap();
48
- return (_getRequireWildcardCache = function(nodeInterop) {
49
- return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
50
- })(nodeInterop);
51
- }
52
- function _interop_require_wildcard(obj, nodeInterop) {
53
- if (!nodeInterop && obj && obj.__esModule) {
54
- return obj;
55
- }
56
- if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
57
- return {
58
- default: obj
59
- };
60
- }
61
- var cache = _getRequireWildcardCache(nodeInterop);
62
- if (cache && cache.has(obj)) {
63
- return cache.get(obj);
64
- }
65
- var newObj = {};
66
- var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
67
- for(var key in obj){
68
- if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
69
- var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
70
- if (desc && (desc.get || desc.set)) {
71
- Object.defineProperty(newObj, key, desc);
72
- } else {
73
- newObj[key] = obj[key];
74
- }
75
- }
76
- }
77
- newObj.default = obj;
78
- if (cache) {
79
- cache.set(obj, newObj);
80
- }
81
- return newObj;
82
- }
83
- let variantPlugins = {
84
- childVariant: ({ addVariant })=>{
85
- addVariant("*", "& > *");
86
- },
87
- pseudoElementVariants: ({ addVariant })=>{
88
- addVariant("first-letter", "&::first-letter");
89
- addVariant("first-line", "&::first-line");
90
- addVariant("marker", [
91
- ({ container })=>{
92
- (0, _removeAlphaVariables.removeAlphaVariables)(container, [
93
- "--tw-text-opacity"
94
- ]);
95
- return "& *::marker";
96
- },
97
- ({ container })=>{
98
- (0, _removeAlphaVariables.removeAlphaVariables)(container, [
99
- "--tw-text-opacity"
100
- ]);
101
- return "&::marker";
102
- }
103
- ]);
104
- addVariant("selection", [
105
- "& *::selection",
106
- "&::selection"
107
- ]);
108
- addVariant("file", "&::file-selector-button");
109
- addVariant("placeholder", "&::placeholder");
110
- addVariant("backdrop", "&::backdrop");
111
- addVariant("before", ({ container })=>{
112
- container.walkRules((rule)=>{
113
- let foundContent = false;
114
- rule.walkDecls("content", ()=>{
115
- foundContent = true;
116
- });
117
- if (!foundContent) {
118
- rule.prepend(_postcss.default.decl({
119
- prop: "content",
120
- value: "var(--tw-content)"
121
- }));
122
- }
123
- });
124
- return "&::before";
125
- });
126
- addVariant("after", ({ container })=>{
127
- container.walkRules((rule)=>{
128
- let foundContent = false;
129
- rule.walkDecls("content", ()=>{
130
- foundContent = true;
131
- });
132
- if (!foundContent) {
133
- rule.prepend(_postcss.default.decl({
134
- prop: "content",
135
- value: "var(--tw-content)"
136
- }));
137
- }
138
- });
139
- return "&::after";
140
- });
141
- },
142
- pseudoClassVariants: ({ addVariant , matchVariant , config , prefix })=>{
143
- let pseudoVariants = [
144
- // Positional
145
- [
146
- "first",
147
- "&:first-child"
148
- ],
149
- [
150
- "last",
151
- "&:last-child"
152
- ],
153
- [
154
- "only",
155
- "&:only-child"
156
- ],
157
- [
158
- "odd",
159
- "&:nth-child(odd)"
160
- ],
161
- [
162
- "even",
163
- "&:nth-child(even)"
164
- ],
165
- "first-of-type",
166
- "last-of-type",
167
- "only-of-type",
168
- // State
169
- [
170
- "visited",
171
- ({ container })=>{
172
- (0, _removeAlphaVariables.removeAlphaVariables)(container, [
173
- "--tw-text-opacity",
174
- "--tw-border-opacity",
175
- "--tw-bg-opacity"
176
- ]);
177
- return "&:visited";
178
- }
179
- ],
180
- "target",
181
- [
182
- "open",
183
- "&[open]"
184
- ],
185
- // Forms
186
- "default",
187
- "checked",
188
- "indeterminate",
189
- "placeholder-shown",
190
- "autofill",
191
- "optional",
192
- "required",
193
- "valid",
194
- "invalid",
195
- "in-range",
196
- "out-of-range",
197
- "read-only",
198
- // Content
199
- "empty",
200
- // Interactive
201
- "focus-within",
202
- [
203
- "hover",
204
- !(0, _featureFlags.flagEnabled)(config(), "hoverOnlyWhenSupported") ? "&:hover" : "@media (hover: hover) and (pointer: fine) { &:hover }"
205
- ],
206
- "focus",
207
- "focus-visible",
208
- "active",
209
- "enabled",
210
- "disabled"
211
- ].map((variant)=>Array.isArray(variant) ? variant : [
212
- variant,
213
- `&:${variant}`
214
- ]);
215
- for (let [variantName, state] of pseudoVariants){
216
- addVariant(variantName, (ctx)=>{
217
- let result = typeof state === "function" ? state(ctx) : state;
218
- return result;
219
- });
220
- }
221
- let variants = {
222
- group: (_, { modifier })=>modifier ? [
223
- `:merge(${prefix(".group")}\\/${(0, _escapeClassName.default)(modifier)})`,
224
- " &"
225
- ] : [
226
- `:merge(${prefix(".group")})`,
227
- " &"
228
- ],
229
- peer: (_, { modifier })=>modifier ? [
230
- `:merge(${prefix(".peer")}\\/${(0, _escapeClassName.default)(modifier)})`,
231
- " ~ &"
232
- ] : [
233
- `:merge(${prefix(".peer")})`,
234
- " ~ &"
235
- ]
236
- };
237
- for (let [name, fn] of Object.entries(variants)){
238
- matchVariant(name, (value = "", extra)=>{
239
- let result = (0, _dataTypes.normalize)(typeof value === "function" ? value(extra) : value);
240
- if (!result.includes("&")) result = "&" + result;
241
- let [a, b] = fn("", extra);
242
- let start = null;
243
- let end = null;
244
- let quotes = 0;
245
- for(let i = 0; i < result.length; ++i){
246
- let c = result[i];
247
- if (c === "&") {
248
- start = i;
249
- } else if (c === "'" || c === '"') {
250
- quotes += 1;
251
- } else if (start !== null && c === " " && !quotes) {
252
- end = i;
253
- }
254
- }
255
- if (start !== null && end === null) {
256
- end = result.length;
257
- }
258
- // Basically this but can handle quotes:
259
- // result.replace(/&(\S+)?/g, (_, pseudo = '') => a + pseudo + b)
260
- return result.slice(0, start) + a + result.slice(start + 1, end) + b + result.slice(end);
261
- }, {
262
- values: Object.fromEntries(pseudoVariants),
263
- [_setupContextUtils.INTERNAL_FEATURES]: {
264
- respectPrefix: false
265
- }
266
- });
267
- }
268
- },
269
- directionVariants: ({ addVariant })=>{
270
- addVariant("ltr", '&:where([dir="ltr"], [dir="ltr"] *)');
271
- addVariant("rtl", '&:where([dir="rtl"], [dir="rtl"] *)');
272
- },
273
- reducedMotionVariants: ({ addVariant })=>{
274
- addVariant("motion-safe", "@media (prefers-reduced-motion: no-preference)");
275
- addVariant("motion-reduce", "@media (prefers-reduced-motion: reduce)");
276
- },
277
- darkVariants: ({ config , addVariant })=>{
278
- let [mode, selector = ".dark"] = [].concat(config("darkMode", "media"));
279
- if (mode === false) {
280
- mode = "media";
281
- _log.default.warn("darkmode-false", [
282
- "The `darkMode` option in your Tailwind CSS configuration is set to `false`, which now behaves the same as `media`.",
283
- "Change `darkMode` to `media` or remove it entirely.",
284
- "https://tailwindcss.com/docs/upgrade-guide#remove-dark-mode-configuration"
285
- ]);
286
- }
287
- if (mode === "variant") {
288
- let formats;
289
- if (Array.isArray(selector)) {
290
- formats = selector;
291
- } else if (typeof selector === "function") {
292
- formats = selector;
293
- } else if (typeof selector === "string") {
294
- formats = [
295
- selector
296
- ];
297
- }
298
- // TODO: We could also add these warnings if the user passes a function that returns string | string[]
299
- // But this is an advanced enough use case that it's probably not necessary
300
- if (Array.isArray(formats)) {
301
- for (let format of formats){
302
- if (format === ".dark") {
303
- mode = false;
304
- _log.default.warn("darkmode-variant-without-selector", [
305
- "When using `variant` for `darkMode`, you must provide a selector.",
306
- 'Example: `darkMode: ["variant", ".your-selector &"]`'
307
- ]);
308
- } else if (!format.includes("&")) {
309
- mode = false;
310
- _log.default.warn("darkmode-variant-without-ampersand", [
311
- "When using `variant` for `darkMode`, your selector must contain `&`.",
312
- 'Example `darkMode: ["variant", ".your-selector &"]`'
313
- ]);
314
- }
315
- }
316
- }
317
- selector = formats;
318
- }
319
- if (mode === "selector") {
320
- // New preferred behavior
321
- addVariant("dark", `&:where(${selector}, ${selector} *)`);
322
- } else if (mode === "media") {
323
- addVariant("dark", "@media (prefers-color-scheme: dark)");
324
- } else if (mode === "variant") {
325
- addVariant("dark", selector);
326
- } else if (mode === "class") {
327
- // Old behavior
328
- addVariant("dark", `:is(${selector} &)`);
329
- }
330
- },
331
- printVariant: ({ addVariant })=>{
332
- addVariant("print", "@media print");
333
- },
334
- screenVariants: ({ theme , addVariant , matchVariant })=>{
335
- var _theme;
336
- let rawScreens = (_theme = theme("screens")) !== null && _theme !== void 0 ? _theme : {};
337
- let areSimpleScreens = Object.values(rawScreens).every((v)=>typeof v === "string");
338
- let screens = (0, _normalizeScreens.normalizeScreens)(theme("screens"));
339
- /** @type {Set<string>} */ let unitCache = new Set([]);
340
- /** @param {string} value */ function units(value) {
341
- var _value_match;
342
- var _value_match_;
343
- return (_value_match_ = (_value_match = value.match(/(\D+)$/)) === null || _value_match === void 0 ? void 0 : _value_match[1]) !== null && _value_match_ !== void 0 ? _value_match_ : "(none)";
344
- }
345
- /** @param {string} value */ function recordUnits(value) {
346
- if (value !== undefined) {
347
- unitCache.add(units(value));
348
- }
349
- }
350
- /** @param {string} value */ function canUseUnits(value) {
351
- recordUnits(value);
352
- // If the cache was empty it'll become 1 because we've just added the current unit
353
- // If the cache was not empty and the units are the same the size doesn't change
354
- // Otherwise, if the units are different from what is already known the size will always be > 1
355
- return unitCache.size === 1;
356
- }
357
- for (const screen of screens){
358
- for (const value of screen.values){
359
- recordUnits(value.min);
360
- recordUnits(value.max);
361
- }
362
- }
363
- let screensUseConsistentUnits = unitCache.size <= 1;
364
- /**
365
- * @typedef {import('./util/normalizeScreens').Screen} Screen
366
- */ /**
367
- * @param {'min' | 'max'} type
368
- * @returns {Record<string, Screen>}
369
- */ function buildScreenValues(type) {
370
- return Object.fromEntries(screens.filter((screen)=>(0, _normalizeScreens.isScreenSortable)(screen).result).map((screen)=>{
371
- let { min , max } = screen.values[0];
372
- if (type === "min" && min !== undefined) {
373
- return screen;
374
- } else if (type === "min" && max !== undefined) {
375
- return {
376
- ...screen,
377
- not: !screen.not
378
- };
379
- } else if (type === "max" && max !== undefined) {
380
- return screen;
381
- } else if (type === "max" && min !== undefined) {
382
- return {
383
- ...screen,
384
- not: !screen.not
385
- };
386
- }
387
- }).map((screen)=>[
388
- screen.name,
389
- screen
390
- ]));
391
- }
392
- /**
393
- * @param {'min' | 'max'} type
394
- * @returns {(a: { value: string | Screen }, z: { value: string | Screen }) => number}
395
- */ function buildSort(type) {
396
- return (a, z)=>(0, _normalizeScreens.compareScreens)(type, a.value, z.value);
397
- }
398
- let maxSort = buildSort("max");
399
- let minSort = buildSort("min");
400
- /** @param {'min'|'max'} type */ function buildScreenVariant(type) {
401
- return (value)=>{
402
- if (!areSimpleScreens) {
403
- _log.default.warn("complex-screen-config", [
404
- "The `min-*` and `max-*` variants are not supported with a `screens` configuration containing objects."
405
- ]);
406
- return [];
407
- } else if (!screensUseConsistentUnits) {
408
- _log.default.warn("mixed-screen-units", [
409
- "The `min-*` and `max-*` variants are not supported with a `screens` configuration containing mixed units."
410
- ]);
411
- return [];
412
- } else if (typeof value === "string" && !canUseUnits(value)) {
413
- _log.default.warn("minmax-have-mixed-units", [
414
- "The `min-*` and `max-*` variants are not supported with a `screens` configuration containing mixed units."
415
- ]);
416
- return [];
417
- }
418
- return [
419
- `@media ${(0, _buildMediaQuery.default)((0, _normalizeScreens.toScreen)(value, type))}`
420
- ];
421
- };
422
- }
423
- matchVariant("max", buildScreenVariant("max"), {
424
- sort: maxSort,
425
- values: areSimpleScreens ? buildScreenValues("max") : {}
426
- });
427
- // screens and min-* are sorted together when they can be
428
- let id = "min-screens";
429
- for (let screen of screens){
430
- addVariant(screen.name, `@media ${(0, _buildMediaQuery.default)(screen)}`, {
431
- id,
432
- sort: areSimpleScreens && screensUseConsistentUnits ? minSort : undefined,
433
- value: screen
434
- });
435
- }
436
- matchVariant("min", buildScreenVariant("min"), {
437
- id,
438
- sort: minSort
439
- });
440
- },
441
- supportsVariants: ({ matchVariant , theme })=>{
442
- var _theme;
443
- matchVariant("supports", (value = "")=>{
444
- let check = (0, _dataTypes.normalize)(value);
445
- let isRaw = /^\w*\s*\(/.test(check);
446
- // Chrome has a bug where `(condtion1)or(condition2)` is not valid
447
- // But `(condition1) or (condition2)` is supported.
448
- check = isRaw ? check.replace(/\b(and|or|not)\b/g, " $1 ") : check;
449
- if (isRaw) {
450
- return `@supports ${check}`;
451
- }
452
- if (!check.includes(":")) {
453
- check = `${check}: var(--tw)`;
454
- }
455
- if (!(check.startsWith("(") && check.endsWith(")"))) {
456
- check = `(${check})`;
457
- }
458
- return `@supports ${check}`;
459
- }, {
460
- values: (_theme = theme("supports")) !== null && _theme !== void 0 ? _theme : {}
461
- });
462
- },
463
- hasVariants: ({ matchVariant })=>{
464
- matchVariant("has", (value)=>`&:has(${(0, _dataTypes.normalize)(value)})`, {
465
- values: {}
466
- });
467
- matchVariant("group-has", (value, { modifier })=>modifier ? `:merge(.group\\/${modifier}):has(${(0, _dataTypes.normalize)(value)}) &` : `:merge(.group):has(${(0, _dataTypes.normalize)(value)}) &`, {
468
- values: {}
469
- });
470
- matchVariant("peer-has", (value, { modifier })=>modifier ? `:merge(.peer\\/${modifier}):has(${(0, _dataTypes.normalize)(value)}) ~ &` : `:merge(.peer):has(${(0, _dataTypes.normalize)(value)}) ~ &`, {
471
- values: {}
472
- });
473
- },
474
- ariaVariants: ({ matchVariant , theme })=>{
475
- var _theme;
476
- matchVariant("aria", (value)=>`&[aria-${(0, _dataTypes.normalize)(value)}]`, {
477
- values: (_theme = theme("aria")) !== null && _theme !== void 0 ? _theme : {}
478
- });
479
- var _theme1;
480
- matchVariant("group-aria", (value, { modifier })=>modifier ? `:merge(.group\\/${modifier})[aria-${(0, _dataTypes.normalize)(value)}] &` : `:merge(.group)[aria-${(0, _dataTypes.normalize)(value)}] &`, {
481
- values: (_theme1 = theme("aria")) !== null && _theme1 !== void 0 ? _theme1 : {}
482
- });
483
- var _theme2;
484
- matchVariant("peer-aria", (value, { modifier })=>modifier ? `:merge(.peer\\/${modifier})[aria-${(0, _dataTypes.normalize)(value)}] ~ &` : `:merge(.peer)[aria-${(0, _dataTypes.normalize)(value)}] ~ &`, {
485
- values: (_theme2 = theme("aria")) !== null && _theme2 !== void 0 ? _theme2 : {}
486
- });
487
- },
488
- dataVariants: ({ matchVariant , theme })=>{
489
- var _theme;
490
- matchVariant("data", (value)=>`&[data-${(0, _dataTypes.normalize)(value)}]`, {
491
- values: (_theme = theme("data")) !== null && _theme !== void 0 ? _theme : {}
492
- });
493
- var _theme1;
494
- matchVariant("group-data", (value, { modifier })=>modifier ? `:merge(.group\\/${modifier})[data-${(0, _dataTypes.normalize)(value)}] &` : `:merge(.group)[data-${(0, _dataTypes.normalize)(value)}] &`, {
495
- values: (_theme1 = theme("data")) !== null && _theme1 !== void 0 ? _theme1 : {}
496
- });
497
- var _theme2;
498
- matchVariant("peer-data", (value, { modifier })=>modifier ? `:merge(.peer\\/${modifier})[data-${(0, _dataTypes.normalize)(value)}] ~ &` : `:merge(.peer)[data-${(0, _dataTypes.normalize)(value)}] ~ &`, {
499
- values: (_theme2 = theme("data")) !== null && _theme2 !== void 0 ? _theme2 : {}
500
- });
501
- },
502
- orientationVariants: ({ addVariant })=>{
503
- addVariant("portrait", "@media (orientation: portrait)");
504
- addVariant("landscape", "@media (orientation: landscape)");
505
- },
506
- prefersContrastVariants: ({ addVariant })=>{
507
- addVariant("contrast-more", "@media (prefers-contrast: more)");
508
- addVariant("contrast-less", "@media (prefers-contrast: less)");
509
- },
510
- forcedColorsVariants: ({ addVariant })=>{
511
- addVariant("forced-colors", "@media (forced-colors: active)");
512
- }
513
- };
514
- let cssTransformValue = [
515
- "translate(var(--tw-translate-x), var(--tw-translate-y))",
516
- "rotate(var(--tw-rotate))",
517
- "skewX(var(--tw-skew-x))",
518
- "skewY(var(--tw-skew-y))",
519
- "scaleX(var(--tw-scale-x))",
520
- "scaleY(var(--tw-scale-y))"
521
- ].join(" ");
522
- let cssFilterValue = [
523
- "var(--tw-blur)",
524
- "var(--tw-brightness)",
525
- "var(--tw-contrast)",
526
- "var(--tw-grayscale)",
527
- "var(--tw-hue-rotate)",
528
- "var(--tw-invert)",
529
- "var(--tw-saturate)",
530
- "var(--tw-sepia)",
531
- "var(--tw-drop-shadow)"
532
- ].join(" ");
533
- let cssBackdropFilterValue = [
534
- "var(--tw-backdrop-blur)",
535
- "var(--tw-backdrop-brightness)",
536
- "var(--tw-backdrop-contrast)",
537
- "var(--tw-backdrop-grayscale)",
538
- "var(--tw-backdrop-hue-rotate)",
539
- "var(--tw-backdrop-invert)",
540
- "var(--tw-backdrop-opacity)",
541
- "var(--tw-backdrop-saturate)",
542
- "var(--tw-backdrop-sepia)"
543
- ].join(" ");
544
- let corePlugins = {
545
- preflight: ({ addBase })=>{
546
- let preflightStyles = _postcss.default.parse(_fs.default.readFileSync(_path.join(__dirname, "./css/preflight.css"), "utf8"));
547
- addBase([
548
- _postcss.default.comment({
549
- text: `! tailwindcss v${_packagejson.version} | MIT License | https://tailwindcss.com`
550
- }),
551
- ...preflightStyles.nodes
552
- ]);
553
- },
554
- container: (()=>{
555
- function extractMinWidths(breakpoints = []) {
556
- return breakpoints.flatMap((breakpoint)=>breakpoint.values.map((breakpoint)=>breakpoint.min)).filter((v)=>v !== undefined);
557
- }
558
- function mapMinWidthsToPadding(minWidths, screens, paddings) {
559
- if (typeof paddings === "undefined") {
560
- return [];
561
- }
562
- if (!(typeof paddings === "object" && paddings !== null)) {
563
- return [
564
- {
565
- screen: "DEFAULT",
566
- minWidth: 0,
567
- padding: paddings
568
- }
569
- ];
570
- }
571
- let mapping = [];
572
- if (paddings.DEFAULT) {
573
- mapping.push({
574
- screen: "DEFAULT",
575
- minWidth: 0,
576
- padding: paddings.DEFAULT
577
- });
578
- }
579
- for (let minWidth of minWidths){
580
- for (let screen of screens){
581
- for (let { min } of screen.values){
582
- if (min === minWidth) {
583
- mapping.push({
584
- minWidth,
585
- padding: paddings[screen.name]
586
- });
587
- }
588
- }
589
- }
590
- }
591
- return mapping;
592
- }
593
- return function({ addComponents , theme }) {
594
- let screens = (0, _normalizeScreens.normalizeScreens)(theme("container.screens", theme("screens")));
595
- let minWidths = extractMinWidths(screens);
596
- let paddings = mapMinWidthsToPadding(minWidths, screens, theme("container.padding"));
597
- let generatePaddingFor = (minWidth)=>{
598
- let paddingConfig = paddings.find((padding)=>padding.minWidth === minWidth);
599
- if (!paddingConfig) {
600
- return {};
601
- }
602
- return {
603
- paddingRight: paddingConfig.padding,
604
- paddingLeft: paddingConfig.padding
605
- };
606
- };
607
- let atRules = Array.from(new Set(minWidths.slice().sort((a, z)=>parseInt(a) - parseInt(z)))).map((minWidth)=>({
608
- [`@media (min-width: ${minWidth})`]: {
609
- ".container": {
610
- "max-width": minWidth,
611
- ...generatePaddingFor(minWidth)
612
- }
613
- }
614
- }));
615
- addComponents([
616
- {
617
- ".container": Object.assign({
618
- width: "100%"
619
- }, theme("container.center", false) ? {
620
- marginRight: "auto",
621
- marginLeft: "auto"
622
- } : {}, generatePaddingFor(0))
623
- },
624
- ...atRules
625
- ]);
626
- };
627
- })(),
628
- accessibility: ({ addUtilities })=>{
629
- addUtilities({
630
- ".sr-only": {
631
- position: "absolute",
632
- width: "1px",
633
- height: "1px",
634
- padding: "0",
635
- margin: "-1px",
636
- overflow: "hidden",
637
- clip: "rect(0, 0, 0, 0)",
638
- whiteSpace: "nowrap",
639
- borderWidth: "0"
640
- },
641
- ".not-sr-only": {
642
- position: "static",
643
- width: "auto",
644
- height: "auto",
645
- padding: "0",
646
- margin: "0",
647
- overflow: "visible",
648
- clip: "auto",
649
- whiteSpace: "normal"
650
- }
651
- });
652
- },
653
- pointerEvents: ({ addUtilities })=>{
654
- addUtilities({
655
- ".pointer-events-none": {
656
- "pointer-events": "none"
657
- },
658
- ".pointer-events-auto": {
659
- "pointer-events": "auto"
660
- }
661
- });
662
- },
663
- visibility: ({ addUtilities })=>{
664
- addUtilities({
665
- ".visible": {
666
- visibility: "visible"
667
- },
668
- ".invisible": {
669
- visibility: "hidden"
670
- },
671
- ".collapse": {
672
- visibility: "collapse"
673
- }
674
- });
675
- },
676
- position: ({ addUtilities })=>{
677
- addUtilities({
678
- ".static": {
679
- position: "static"
680
- },
681
- ".fixed": {
682
- position: "fixed"
683
- },
684
- ".absolute": {
685
- position: "absolute"
686
- },
687
- ".relative": {
688
- position: "relative"
689
- },
690
- ".sticky": {
691
- position: "sticky"
692
- }
693
- });
694
- },
695
- inset: (0, _createUtilityPlugin.default)("inset", [
696
- [
697
- "inset",
698
- [
699
- "inset"
700
- ]
701
- ],
702
- [
703
- [
704
- "inset-x",
705
- [
706
- "left",
707
- "right"
708
- ]
709
- ],
710
- [
711
- "inset-y",
712
- [
713
- "top",
714
- "bottom"
715
- ]
716
- ]
717
- ],
718
- [
719
- [
720
- "start",
721
- [
722
- "inset-inline-start"
723
- ]
724
- ],
725
- [
726
- "end",
727
- [
728
- "inset-inline-end"
729
- ]
730
- ],
731
- [
732
- "top",
733
- [
734
- "top"
735
- ]
736
- ],
737
- [
738
- "right",
739
- [
740
- "right"
741
- ]
742
- ],
743
- [
744
- "bottom",
745
- [
746
- "bottom"
747
- ]
748
- ],
749
- [
750
- "left",
751
- [
752
- "left"
753
- ]
754
- ]
755
- ]
756
- ], {
757
- supportsNegativeValues: true
758
- }),
759
- isolation: ({ addUtilities })=>{
760
- addUtilities({
761
- ".isolate": {
762
- isolation: "isolate"
763
- },
764
- ".isolation-auto": {
765
- isolation: "auto"
766
- }
767
- });
768
- },
769
- zIndex: (0, _createUtilityPlugin.default)("zIndex", [
770
- [
771
- "z",
772
- [
773
- "zIndex"
774
- ]
775
- ]
776
- ], {
777
- supportsNegativeValues: true
778
- }),
779
- order: (0, _createUtilityPlugin.default)("order", undefined, {
780
- supportsNegativeValues: true
781
- }),
782
- gridColumn: (0, _createUtilityPlugin.default)("gridColumn", [
783
- [
784
- "col",
785
- [
786
- "gridColumn"
787
- ]
788
- ]
789
- ]),
790
- gridColumnStart: (0, _createUtilityPlugin.default)("gridColumnStart", [
791
- [
792
- "col-start",
793
- [
794
- "gridColumnStart"
795
- ]
796
- ]
797
- ]),
798
- gridColumnEnd: (0, _createUtilityPlugin.default)("gridColumnEnd", [
799
- [
800
- "col-end",
801
- [
802
- "gridColumnEnd"
803
- ]
804
- ]
805
- ]),
806
- gridRow: (0, _createUtilityPlugin.default)("gridRow", [
807
- [
808
- "row",
809
- [
810
- "gridRow"
811
- ]
812
- ]
813
- ]),
814
- gridRowStart: (0, _createUtilityPlugin.default)("gridRowStart", [
815
- [
816
- "row-start",
817
- [
818
- "gridRowStart"
819
- ]
820
- ]
821
- ]),
822
- gridRowEnd: (0, _createUtilityPlugin.default)("gridRowEnd", [
823
- [
824
- "row-end",
825
- [
826
- "gridRowEnd"
827
- ]
828
- ]
829
- ]),
830
- float: ({ addUtilities })=>{
831
- addUtilities({
832
- ".float-start": {
833
- float: "inline-start"
834
- },
835
- ".float-end": {
836
- float: "inline-end"
837
- },
838
- ".float-right": {
839
- float: "right"
840
- },
841
- ".float-left": {
842
- float: "left"
843
- },
844
- ".float-none": {
845
- float: "none"
846
- }
847
- });
848
- },
849
- clear: ({ addUtilities })=>{
850
- addUtilities({
851
- ".clear-start": {
852
- clear: "inline-start"
853
- },
854
- ".clear-end": {
855
- clear: "inline-end"
856
- },
857
- ".clear-left": {
858
- clear: "left"
859
- },
860
- ".clear-right": {
861
- clear: "right"
862
- },
863
- ".clear-both": {
864
- clear: "both"
865
- },
866
- ".clear-none": {
867
- clear: "none"
868
- }
869
- });
870
- },
871
- margin: (0, _createUtilityPlugin.default)("margin", [
872
- [
873
- "m",
874
- [
875
- "margin"
876
- ]
877
- ],
878
- [
879
- [
880
- "mx",
881
- [
882
- "margin-left",
883
- "margin-right"
884
- ]
885
- ],
886
- [
887
- "my",
888
- [
889
- "margin-top",
890
- "margin-bottom"
891
- ]
892
- ]
893
- ],
894
- [
895
- [
896
- "ms",
897
- [
898
- "margin-inline-start"
899
- ]
900
- ],
901
- [
902
- "me",
903
- [
904
- "margin-inline-end"
905
- ]
906
- ],
907
- [
908
- "mt",
909
- [
910
- "margin-top"
911
- ]
912
- ],
913
- [
914
- "mr",
915
- [
916
- "margin-right"
917
- ]
918
- ],
919
- [
920
- "mb",
921
- [
922
- "margin-bottom"
923
- ]
924
- ],
925
- [
926
- "ml",
927
- [
928
- "margin-left"
929
- ]
930
- ]
931
- ]
932
- ], {
933
- supportsNegativeValues: true
934
- }),
935
- boxSizing: ({ addUtilities })=>{
936
- addUtilities({
937
- ".box-border": {
938
- "box-sizing": "border-box"
939
- },
940
- ".box-content": {
941
- "box-sizing": "content-box"
942
- }
943
- });
944
- },
945
- lineClamp: ({ matchUtilities , addUtilities , theme })=>{
946
- matchUtilities({
947
- "line-clamp": (value)=>({
948
- overflow: "hidden",
949
- display: "-webkit-box",
950
- "-webkit-box-orient": "vertical",
951
- "-webkit-line-clamp": `${value}`
952
- })
953
- }, {
954
- values: theme("lineClamp")
955
- });
956
- addUtilities({
957
- ".line-clamp-none": {
958
- overflow: "visible",
959
- display: "block",
960
- "-webkit-box-orient": "horizontal",
961
- "-webkit-line-clamp": "none"
962
- }
963
- });
964
- },
965
- display: ({ addUtilities })=>{
966
- addUtilities({
967
- ".block": {
968
- display: "block"
969
- },
970
- ".inline-block": {
971
- display: "inline-block"
972
- },
973
- ".inline": {
974
- display: "inline"
975
- },
976
- ".flex": {
977
- display: "flex"
978
- },
979
- ".inline-flex": {
980
- display: "inline-flex"
981
- },
982
- ".table": {
983
- display: "table"
984
- },
985
- ".inline-table": {
986
- display: "inline-table"
987
- },
988
- ".table-caption": {
989
- display: "table-caption"
990
- },
991
- ".table-cell": {
992
- display: "table-cell"
993
- },
994
- ".table-column": {
995
- display: "table-column"
996
- },
997
- ".table-column-group": {
998
- display: "table-column-group"
999
- },
1000
- ".table-footer-group": {
1001
- display: "table-footer-group"
1002
- },
1003
- ".table-header-group": {
1004
- display: "table-header-group"
1005
- },
1006
- ".table-row-group": {
1007
- display: "table-row-group"
1008
- },
1009
- ".table-row": {
1010
- display: "table-row"
1011
- },
1012
- ".flow-root": {
1013
- display: "flow-root"
1014
- },
1015
- ".grid": {
1016
- display: "grid"
1017
- },
1018
- ".inline-grid": {
1019
- display: "inline-grid"
1020
- },
1021
- ".contents": {
1022
- display: "contents"
1023
- },
1024
- ".list-item": {
1025
- display: "list-item"
1026
- },
1027
- ".hidden": {
1028
- display: "none"
1029
- }
1030
- });
1031
- },
1032
- aspectRatio: (0, _createUtilityPlugin.default)("aspectRatio", [
1033
- [
1034
- "aspect",
1035
- [
1036
- "aspect-ratio"
1037
- ]
1038
- ]
1039
- ]),
1040
- size: (0, _createUtilityPlugin.default)("size", [
1041
- [
1042
- "size",
1043
- [
1044
- "width",
1045
- "height"
1046
- ]
1047
- ]
1048
- ]),
1049
- height: (0, _createUtilityPlugin.default)("height", [
1050
- [
1051
- "h",
1052
- [
1053
- "height"
1054
- ]
1055
- ]
1056
- ]),
1057
- maxHeight: (0, _createUtilityPlugin.default)("maxHeight", [
1058
- [
1059
- "max-h",
1060
- [
1061
- "maxHeight"
1062
- ]
1063
- ]
1064
- ]),
1065
- minHeight: (0, _createUtilityPlugin.default)("minHeight", [
1066
- [
1067
- "min-h",
1068
- [
1069
- "minHeight"
1070
- ]
1071
- ]
1072
- ]),
1073
- width: (0, _createUtilityPlugin.default)("width", [
1074
- [
1075
- "w",
1076
- [
1077
- "width"
1078
- ]
1079
- ]
1080
- ]),
1081
- minWidth: (0, _createUtilityPlugin.default)("minWidth", [
1082
- [
1083
- "min-w",
1084
- [
1085
- "minWidth"
1086
- ]
1087
- ]
1088
- ]),
1089
- maxWidth: (0, _createUtilityPlugin.default)("maxWidth", [
1090
- [
1091
- "max-w",
1092
- [
1093
- "maxWidth"
1094
- ]
1095
- ]
1096
- ]),
1097
- flex: (0, _createUtilityPlugin.default)("flex"),
1098
- flexShrink: (0, _createUtilityPlugin.default)("flexShrink", [
1099
- [
1100
- "flex-shrink",
1101
- [
1102
- "flex-shrink"
1103
- ]
1104
- ],
1105
- [
1106
- "shrink",
1107
- [
1108
- "flex-shrink"
1109
- ]
1110
- ]
1111
- ]),
1112
- flexGrow: (0, _createUtilityPlugin.default)("flexGrow", [
1113
- [
1114
- "flex-grow",
1115
- [
1116
- "flex-grow"
1117
- ]
1118
- ],
1119
- [
1120
- "grow",
1121
- [
1122
- "flex-grow"
1123
- ]
1124
- ]
1125
- ]),
1126
- flexBasis: (0, _createUtilityPlugin.default)("flexBasis", [
1127
- [
1128
- "basis",
1129
- [
1130
- "flex-basis"
1131
- ]
1132
- ]
1133
- ]),
1134
- tableLayout: ({ addUtilities })=>{
1135
- addUtilities({
1136
- ".table-auto": {
1137
- "table-layout": "auto"
1138
- },
1139
- ".table-fixed": {
1140
- "table-layout": "fixed"
1141
- }
1142
- });
1143
- },
1144
- captionSide: ({ addUtilities })=>{
1145
- addUtilities({
1146
- ".caption-top": {
1147
- "caption-side": "top"
1148
- },
1149
- ".caption-bottom": {
1150
- "caption-side": "bottom"
1151
- }
1152
- });
1153
- },
1154
- borderCollapse: ({ addUtilities })=>{
1155
- addUtilities({
1156
- ".border-collapse": {
1157
- "border-collapse": "collapse"
1158
- },
1159
- ".border-separate": {
1160
- "border-collapse": "separate"
1161
- }
1162
- });
1163
- },
1164
- borderSpacing: ({ addDefaults , matchUtilities , theme })=>{
1165
- addDefaults("border-spacing", {
1166
- "--tw-border-spacing-x": 0,
1167
- "--tw-border-spacing-y": 0
1168
- });
1169
- matchUtilities({
1170
- "border-spacing": (value)=>{
1171
- return {
1172
- "--tw-border-spacing-x": value,
1173
- "--tw-border-spacing-y": value,
1174
- "@defaults border-spacing": {},
1175
- "border-spacing": "var(--tw-border-spacing-x) var(--tw-border-spacing-y)"
1176
- };
1177
- },
1178
- "border-spacing-x": (value)=>{
1179
- return {
1180
- "--tw-border-spacing-x": value,
1181
- "@defaults border-spacing": {},
1182
- "border-spacing": "var(--tw-border-spacing-x) var(--tw-border-spacing-y)"
1183
- };
1184
- },
1185
- "border-spacing-y": (value)=>{
1186
- return {
1187
- "--tw-border-spacing-y": value,
1188
- "@defaults border-spacing": {},
1189
- "border-spacing": "var(--tw-border-spacing-x) var(--tw-border-spacing-y)"
1190
- };
1191
- }
1192
- }, {
1193
- values: theme("borderSpacing")
1194
- });
1195
- },
1196
- transformOrigin: (0, _createUtilityPlugin.default)("transformOrigin", [
1197
- [
1198
- "origin",
1199
- [
1200
- "transformOrigin"
1201
- ]
1202
- ]
1203
- ]),
1204
- translate: (0, _createUtilityPlugin.default)("translate", [
1205
- [
1206
- [
1207
- "translate-x",
1208
- [
1209
- [
1210
- "@defaults transform",
1211
- {}
1212
- ],
1213
- "--tw-translate-x",
1214
- [
1215
- "transform",
1216
- cssTransformValue
1217
- ]
1218
- ]
1219
- ],
1220
- [
1221
- "translate-y",
1222
- [
1223
- [
1224
- "@defaults transform",
1225
- {}
1226
- ],
1227
- "--tw-translate-y",
1228
- [
1229
- "transform",
1230
- cssTransformValue
1231
- ]
1232
- ]
1233
- ]
1234
- ]
1235
- ], {
1236
- supportsNegativeValues: true
1237
- }),
1238
- rotate: (0, _createUtilityPlugin.default)("rotate", [
1239
- [
1240
- "rotate",
1241
- [
1242
- [
1243
- "@defaults transform",
1244
- {}
1245
- ],
1246
- "--tw-rotate",
1247
- [
1248
- "transform",
1249
- cssTransformValue
1250
- ]
1251
- ]
1252
- ]
1253
- ], {
1254
- supportsNegativeValues: true
1255
- }),
1256
- skew: (0, _createUtilityPlugin.default)("skew", [
1257
- [
1258
- [
1259
- "skew-x",
1260
- [
1261
- [
1262
- "@defaults transform",
1263
- {}
1264
- ],
1265
- "--tw-skew-x",
1266
- [
1267
- "transform",
1268
- cssTransformValue
1269
- ]
1270
- ]
1271
- ],
1272
- [
1273
- "skew-y",
1274
- [
1275
- [
1276
- "@defaults transform",
1277
- {}
1278
- ],
1279
- "--tw-skew-y",
1280
- [
1281
- "transform",
1282
- cssTransformValue
1283
- ]
1284
- ]
1285
- ]
1286
- ]
1287
- ], {
1288
- supportsNegativeValues: true
1289
- }),
1290
- scale: (0, _createUtilityPlugin.default)("scale", [
1291
- [
1292
- "scale",
1293
- [
1294
- [
1295
- "@defaults transform",
1296
- {}
1297
- ],
1298
- "--tw-scale-x",
1299
- "--tw-scale-y",
1300
- [
1301
- "transform",
1302
- cssTransformValue
1303
- ]
1304
- ]
1305
- ],
1306
- [
1307
- [
1308
- "scale-x",
1309
- [
1310
- [
1311
- "@defaults transform",
1312
- {}
1313
- ],
1314
- "--tw-scale-x",
1315
- [
1316
- "transform",
1317
- cssTransformValue
1318
- ]
1319
- ]
1320
- ],
1321
- [
1322
- "scale-y",
1323
- [
1324
- [
1325
- "@defaults transform",
1326
- {}
1327
- ],
1328
- "--tw-scale-y",
1329
- [
1330
- "transform",
1331
- cssTransformValue
1332
- ]
1333
- ]
1334
- ]
1335
- ]
1336
- ], {
1337
- supportsNegativeValues: true
1338
- }),
1339
- transform: ({ addDefaults , addUtilities })=>{
1340
- addDefaults("transform", {
1341
- "--tw-translate-x": "0",
1342
- "--tw-translate-y": "0",
1343
- "--tw-rotate": "0",
1344
- "--tw-skew-x": "0",
1345
- "--tw-skew-y": "0",
1346
- "--tw-scale-x": "1",
1347
- "--tw-scale-y": "1"
1348
- });
1349
- addUtilities({
1350
- ".transform": {
1351
- "@defaults transform": {},
1352
- transform: cssTransformValue
1353
- },
1354
- ".transform-cpu": {
1355
- transform: cssTransformValue
1356
- },
1357
- ".transform-gpu": {
1358
- transform: cssTransformValue.replace("translate(var(--tw-translate-x), var(--tw-translate-y))", "translate3d(var(--tw-translate-x), var(--tw-translate-y), 0)")
1359
- },
1360
- ".transform-none": {
1361
- transform: "none"
1362
- }
1363
- });
1364
- },
1365
- animation: ({ matchUtilities , theme , config })=>{
1366
- let prefixName = (name)=>(0, _escapeClassName.default)(config("prefix") + name);
1367
- var _theme;
1368
- let keyframes = Object.fromEntries(Object.entries((_theme = theme("keyframes")) !== null && _theme !== void 0 ? _theme : {}).map(([key, value])=>{
1369
- return [
1370
- key,
1371
- {
1372
- [`@keyframes ${prefixName(key)}`]: value
1373
- }
1374
- ];
1375
- }));
1376
- matchUtilities({
1377
- animate: (value)=>{
1378
- let animations = (0, _parseAnimationValue.default)(value);
1379
- return [
1380
- ...animations.flatMap((animation)=>keyframes[animation.name]),
1381
- {
1382
- animation: animations.map(({ name , value })=>{
1383
- if (name === undefined || keyframes[name] === undefined) {
1384
- return value;
1385
- }
1386
- return value.replace(name, prefixName(name));
1387
- }).join(", ")
1388
- }
1389
- ];
1390
- }
1391
- }, {
1392
- values: theme("animation")
1393
- });
1394
- },
1395
- cursor: (0, _createUtilityPlugin.default)("cursor"),
1396
- touchAction: ({ addDefaults , addUtilities })=>{
1397
- addDefaults("touch-action", {
1398
- "--tw-pan-x": " ",
1399
- "--tw-pan-y": " ",
1400
- "--tw-pinch-zoom": " "
1401
- });
1402
- let cssTouchActionValue = "var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)";
1403
- addUtilities({
1404
- ".touch-auto": {
1405
- "touch-action": "auto"
1406
- },
1407
- ".touch-none": {
1408
- "touch-action": "none"
1409
- },
1410
- ".touch-pan-x": {
1411
- "@defaults touch-action": {},
1412
- "--tw-pan-x": "pan-x",
1413
- "touch-action": cssTouchActionValue
1414
- },
1415
- ".touch-pan-left": {
1416
- "@defaults touch-action": {},
1417
- "--tw-pan-x": "pan-left",
1418
- "touch-action": cssTouchActionValue
1419
- },
1420
- ".touch-pan-right": {
1421
- "@defaults touch-action": {},
1422
- "--tw-pan-x": "pan-right",
1423
- "touch-action": cssTouchActionValue
1424
- },
1425
- ".touch-pan-y": {
1426
- "@defaults touch-action": {},
1427
- "--tw-pan-y": "pan-y",
1428
- "touch-action": cssTouchActionValue
1429
- },
1430
- ".touch-pan-up": {
1431
- "@defaults touch-action": {},
1432
- "--tw-pan-y": "pan-up",
1433
- "touch-action": cssTouchActionValue
1434
- },
1435
- ".touch-pan-down": {
1436
- "@defaults touch-action": {},
1437
- "--tw-pan-y": "pan-down",
1438
- "touch-action": cssTouchActionValue
1439
- },
1440
- ".touch-pinch-zoom": {
1441
- "@defaults touch-action": {},
1442
- "--tw-pinch-zoom": "pinch-zoom",
1443
- "touch-action": cssTouchActionValue
1444
- },
1445
- ".touch-manipulation": {
1446
- "touch-action": "manipulation"
1447
- }
1448
- });
1449
- },
1450
- userSelect: ({ addUtilities })=>{
1451
- addUtilities({
1452
- ".select-none": {
1453
- "user-select": "none"
1454
- },
1455
- ".select-text": {
1456
- "user-select": "text"
1457
- },
1458
- ".select-all": {
1459
- "user-select": "all"
1460
- },
1461
- ".select-auto": {
1462
- "user-select": "auto"
1463
- }
1464
- });
1465
- },
1466
- resize: ({ addUtilities })=>{
1467
- addUtilities({
1468
- ".resize-none": {
1469
- resize: "none"
1470
- },
1471
- ".resize-y": {
1472
- resize: "vertical"
1473
- },
1474
- ".resize-x": {
1475
- resize: "horizontal"
1476
- },
1477
- ".resize": {
1478
- resize: "both"
1479
- }
1480
- });
1481
- },
1482
- scrollSnapType: ({ addDefaults , addUtilities })=>{
1483
- addDefaults("scroll-snap-type", {
1484
- "--tw-scroll-snap-strictness": "proximity"
1485
- });
1486
- addUtilities({
1487
- ".snap-none": {
1488
- "scroll-snap-type": "none"
1489
- },
1490
- ".snap-x": {
1491
- "@defaults scroll-snap-type": {},
1492
- "scroll-snap-type": "x var(--tw-scroll-snap-strictness)"
1493
- },
1494
- ".snap-y": {
1495
- "@defaults scroll-snap-type": {},
1496
- "scroll-snap-type": "y var(--tw-scroll-snap-strictness)"
1497
- },
1498
- ".snap-both": {
1499
- "@defaults scroll-snap-type": {},
1500
- "scroll-snap-type": "both var(--tw-scroll-snap-strictness)"
1501
- },
1502
- ".snap-mandatory": {
1503
- "--tw-scroll-snap-strictness": "mandatory"
1504
- },
1505
- ".snap-proximity": {
1506
- "--tw-scroll-snap-strictness": "proximity"
1507
- }
1508
- });
1509
- },
1510
- scrollSnapAlign: ({ addUtilities })=>{
1511
- addUtilities({
1512
- ".snap-start": {
1513
- "scroll-snap-align": "start"
1514
- },
1515
- ".snap-end": {
1516
- "scroll-snap-align": "end"
1517
- },
1518
- ".snap-center": {
1519
- "scroll-snap-align": "center"
1520
- },
1521
- ".snap-align-none": {
1522
- "scroll-snap-align": "none"
1523
- }
1524
- });
1525
- },
1526
- scrollSnapStop: ({ addUtilities })=>{
1527
- addUtilities({
1528
- ".snap-normal": {
1529
- "scroll-snap-stop": "normal"
1530
- },
1531
- ".snap-always": {
1532
- "scroll-snap-stop": "always"
1533
- }
1534
- });
1535
- },
1536
- scrollMargin: (0, _createUtilityPlugin.default)("scrollMargin", [
1537
- [
1538
- "scroll-m",
1539
- [
1540
- "scroll-margin"
1541
- ]
1542
- ],
1543
- [
1544
- [
1545
- "scroll-mx",
1546
- [
1547
- "scroll-margin-left",
1548
- "scroll-margin-right"
1549
- ]
1550
- ],
1551
- [
1552
- "scroll-my",
1553
- [
1554
- "scroll-margin-top",
1555
- "scroll-margin-bottom"
1556
- ]
1557
- ]
1558
- ],
1559
- [
1560
- [
1561
- "scroll-ms",
1562
- [
1563
- "scroll-margin-inline-start"
1564
- ]
1565
- ],
1566
- [
1567
- "scroll-me",
1568
- [
1569
- "scroll-margin-inline-end"
1570
- ]
1571
- ],
1572
- [
1573
- "scroll-mt",
1574
- [
1575
- "scroll-margin-top"
1576
- ]
1577
- ],
1578
- [
1579
- "scroll-mr",
1580
- [
1581
- "scroll-margin-right"
1582
- ]
1583
- ],
1584
- [
1585
- "scroll-mb",
1586
- [
1587
- "scroll-margin-bottom"
1588
- ]
1589
- ],
1590
- [
1591
- "scroll-ml",
1592
- [
1593
- "scroll-margin-left"
1594
- ]
1595
- ]
1596
- ]
1597
- ], {
1598
- supportsNegativeValues: true
1599
- }),
1600
- scrollPadding: (0, _createUtilityPlugin.default)("scrollPadding", [
1601
- [
1602
- "scroll-p",
1603
- [
1604
- "scroll-padding"
1605
- ]
1606
- ],
1607
- [
1608
- [
1609
- "scroll-px",
1610
- [
1611
- "scroll-padding-left",
1612
- "scroll-padding-right"
1613
- ]
1614
- ],
1615
- [
1616
- "scroll-py",
1617
- [
1618
- "scroll-padding-top",
1619
- "scroll-padding-bottom"
1620
- ]
1621
- ]
1622
- ],
1623
- [
1624
- [
1625
- "scroll-ps",
1626
- [
1627
- "scroll-padding-inline-start"
1628
- ]
1629
- ],
1630
- [
1631
- "scroll-pe",
1632
- [
1633
- "scroll-padding-inline-end"
1634
- ]
1635
- ],
1636
- [
1637
- "scroll-pt",
1638
- [
1639
- "scroll-padding-top"
1640
- ]
1641
- ],
1642
- [
1643
- "scroll-pr",
1644
- [
1645
- "scroll-padding-right"
1646
- ]
1647
- ],
1648
- [
1649
- "scroll-pb",
1650
- [
1651
- "scroll-padding-bottom"
1652
- ]
1653
- ],
1654
- [
1655
- "scroll-pl",
1656
- [
1657
- "scroll-padding-left"
1658
- ]
1659
- ]
1660
- ]
1661
- ]),
1662
- listStylePosition: ({ addUtilities })=>{
1663
- addUtilities({
1664
- ".list-inside": {
1665
- "list-style-position": "inside"
1666
- },
1667
- ".list-outside": {
1668
- "list-style-position": "outside"
1669
- }
1670
- });
1671
- },
1672
- listStyleType: (0, _createUtilityPlugin.default)("listStyleType", [
1673
- [
1674
- "list",
1675
- [
1676
- "listStyleType"
1677
- ]
1678
- ]
1679
- ]),
1680
- listStyleImage: (0, _createUtilityPlugin.default)("listStyleImage", [
1681
- [
1682
- "list-image",
1683
- [
1684
- "listStyleImage"
1685
- ]
1686
- ]
1687
- ]),
1688
- appearance: ({ addUtilities })=>{
1689
- addUtilities({
1690
- ".appearance-none": {
1691
- appearance: "none"
1692
- },
1693
- ".appearance-auto": {
1694
- appearance: "auto"
1695
- }
1696
- });
1697
- },
1698
- columns: (0, _createUtilityPlugin.default)("columns", [
1699
- [
1700
- "columns",
1701
- [
1702
- "columns"
1703
- ]
1704
- ]
1705
- ]),
1706
- breakBefore: ({ addUtilities })=>{
1707
- addUtilities({
1708
- ".break-before-auto": {
1709
- "break-before": "auto"
1710
- },
1711
- ".break-before-avoid": {
1712
- "break-before": "avoid"
1713
- },
1714
- ".break-before-all": {
1715
- "break-before": "all"
1716
- },
1717
- ".break-before-avoid-page": {
1718
- "break-before": "avoid-page"
1719
- },
1720
- ".break-before-page": {
1721
- "break-before": "page"
1722
- },
1723
- ".break-before-left": {
1724
- "break-before": "left"
1725
- },
1726
- ".break-before-right": {
1727
- "break-before": "right"
1728
- },
1729
- ".break-before-column": {
1730
- "break-before": "column"
1731
- }
1732
- });
1733
- },
1734
- breakInside: ({ addUtilities })=>{
1735
- addUtilities({
1736
- ".break-inside-auto": {
1737
- "break-inside": "auto"
1738
- },
1739
- ".break-inside-avoid": {
1740
- "break-inside": "avoid"
1741
- },
1742
- ".break-inside-avoid-page": {
1743
- "break-inside": "avoid-page"
1744
- },
1745
- ".break-inside-avoid-column": {
1746
- "break-inside": "avoid-column"
1747
- }
1748
- });
1749
- },
1750
- breakAfter: ({ addUtilities })=>{
1751
- addUtilities({
1752
- ".break-after-auto": {
1753
- "break-after": "auto"
1754
- },
1755
- ".break-after-avoid": {
1756
- "break-after": "avoid"
1757
- },
1758
- ".break-after-all": {
1759
- "break-after": "all"
1760
- },
1761
- ".break-after-avoid-page": {
1762
- "break-after": "avoid-page"
1763
- },
1764
- ".break-after-page": {
1765
- "break-after": "page"
1766
- },
1767
- ".break-after-left": {
1768
- "break-after": "left"
1769
- },
1770
- ".break-after-right": {
1771
- "break-after": "right"
1772
- },
1773
- ".break-after-column": {
1774
- "break-after": "column"
1775
- }
1776
- });
1777
- },
1778
- gridAutoColumns: (0, _createUtilityPlugin.default)("gridAutoColumns", [
1779
- [
1780
- "auto-cols",
1781
- [
1782
- "gridAutoColumns"
1783
- ]
1784
- ]
1785
- ]),
1786
- gridAutoFlow: ({ addUtilities })=>{
1787
- addUtilities({
1788
- ".grid-flow-row": {
1789
- gridAutoFlow: "row"
1790
- },
1791
- ".grid-flow-col": {
1792
- gridAutoFlow: "column"
1793
- },
1794
- ".grid-flow-dense": {
1795
- gridAutoFlow: "dense"
1796
- },
1797
- ".grid-flow-row-dense": {
1798
- gridAutoFlow: "row dense"
1799
- },
1800
- ".grid-flow-col-dense": {
1801
- gridAutoFlow: "column dense"
1802
- }
1803
- });
1804
- },
1805
- gridAutoRows: (0, _createUtilityPlugin.default)("gridAutoRows", [
1806
- [
1807
- "auto-rows",
1808
- [
1809
- "gridAutoRows"
1810
- ]
1811
- ]
1812
- ]),
1813
- gridTemplateColumns: (0, _createUtilityPlugin.default)("gridTemplateColumns", [
1814
- [
1815
- "grid-cols",
1816
- [
1817
- "gridTemplateColumns"
1818
- ]
1819
- ]
1820
- ]),
1821
- gridTemplateRows: (0, _createUtilityPlugin.default)("gridTemplateRows", [
1822
- [
1823
- "grid-rows",
1824
- [
1825
- "gridTemplateRows"
1826
- ]
1827
- ]
1828
- ]),
1829
- flexDirection: ({ addUtilities })=>{
1830
- addUtilities({
1831
- ".flex-row": {
1832
- "flex-direction": "row"
1833
- },
1834
- ".flex-row-reverse": {
1835
- "flex-direction": "row-reverse"
1836
- },
1837
- ".flex-col": {
1838
- "flex-direction": "column"
1839
- },
1840
- ".flex-col-reverse": {
1841
- "flex-direction": "column-reverse"
1842
- }
1843
- });
1844
- },
1845
- flexWrap: ({ addUtilities })=>{
1846
- addUtilities({
1847
- ".flex-wrap": {
1848
- "flex-wrap": "wrap"
1849
- },
1850
- ".flex-wrap-reverse": {
1851
- "flex-wrap": "wrap-reverse"
1852
- },
1853
- ".flex-nowrap": {
1854
- "flex-wrap": "nowrap"
1855
- }
1856
- });
1857
- },
1858
- placeContent: ({ addUtilities })=>{
1859
- addUtilities({
1860
- ".place-content-center": {
1861
- "place-content": "center"
1862
- },
1863
- ".place-content-start": {
1864
- "place-content": "start"
1865
- },
1866
- ".place-content-end": {
1867
- "place-content": "end"
1868
- },
1869
- ".place-content-between": {
1870
- "place-content": "space-between"
1871
- },
1872
- ".place-content-around": {
1873
- "place-content": "space-around"
1874
- },
1875
- ".place-content-evenly": {
1876
- "place-content": "space-evenly"
1877
- },
1878
- ".place-content-baseline": {
1879
- "place-content": "baseline"
1880
- },
1881
- ".place-content-stretch": {
1882
- "place-content": "stretch"
1883
- }
1884
- });
1885
- },
1886
- placeItems: ({ addUtilities })=>{
1887
- addUtilities({
1888
- ".place-items-start": {
1889
- "place-items": "start"
1890
- },
1891
- ".place-items-end": {
1892
- "place-items": "end"
1893
- },
1894
- ".place-items-center": {
1895
- "place-items": "center"
1896
- },
1897
- ".place-items-baseline": {
1898
- "place-items": "baseline"
1899
- },
1900
- ".place-items-stretch": {
1901
- "place-items": "stretch"
1902
- }
1903
- });
1904
- },
1905
- alignContent: ({ addUtilities })=>{
1906
- addUtilities({
1907
- ".content-normal": {
1908
- "align-content": "normal"
1909
- },
1910
- ".content-center": {
1911
- "align-content": "center"
1912
- },
1913
- ".content-start": {
1914
- "align-content": "flex-start"
1915
- },
1916
- ".content-end": {
1917
- "align-content": "flex-end"
1918
- },
1919
- ".content-between": {
1920
- "align-content": "space-between"
1921
- },
1922
- ".content-around": {
1923
- "align-content": "space-around"
1924
- },
1925
- ".content-evenly": {
1926
- "align-content": "space-evenly"
1927
- },
1928
- ".content-baseline": {
1929
- "align-content": "baseline"
1930
- },
1931
- ".content-stretch": {
1932
- "align-content": "stretch"
1933
- }
1934
- });
1935
- },
1936
- alignItems: ({ addUtilities })=>{
1937
- addUtilities({
1938
- ".items-start": {
1939
- "align-items": "flex-start"
1940
- },
1941
- ".items-end": {
1942
- "align-items": "flex-end"
1943
- },
1944
- ".items-center": {
1945
- "align-items": "center"
1946
- },
1947
- ".items-baseline": {
1948
- "align-items": "baseline"
1949
- },
1950
- ".items-stretch": {
1951
- "align-items": "stretch"
1952
- }
1953
- });
1954
- },
1955
- justifyContent: ({ addUtilities })=>{
1956
- addUtilities({
1957
- ".justify-normal": {
1958
- "justify-content": "normal"
1959
- },
1960
- ".justify-start": {
1961
- "justify-content": "flex-start"
1962
- },
1963
- ".justify-end": {
1964
- "justify-content": "flex-end"
1965
- },
1966
- ".justify-center": {
1967
- "justify-content": "center"
1968
- },
1969
- ".justify-between": {
1970
- "justify-content": "space-between"
1971
- },
1972
- ".justify-around": {
1973
- "justify-content": "space-around"
1974
- },
1975
- ".justify-evenly": {
1976
- "justify-content": "space-evenly"
1977
- },
1978
- ".justify-stretch": {
1979
- "justify-content": "stretch"
1980
- }
1981
- });
1982
- },
1983
- justifyItems: ({ addUtilities })=>{
1984
- addUtilities({
1985
- ".justify-items-start": {
1986
- "justify-items": "start"
1987
- },
1988
- ".justify-items-end": {
1989
- "justify-items": "end"
1990
- },
1991
- ".justify-items-center": {
1992
- "justify-items": "center"
1993
- },
1994
- ".justify-items-stretch": {
1995
- "justify-items": "stretch"
1996
- }
1997
- });
1998
- },
1999
- gap: (0, _createUtilityPlugin.default)("gap", [
2000
- [
2001
- "gap",
2002
- [
2003
- "gap"
2004
- ]
2005
- ],
2006
- [
2007
- [
2008
- "gap-x",
2009
- [
2010
- "columnGap"
2011
- ]
2012
- ],
2013
- [
2014
- "gap-y",
2015
- [
2016
- "rowGap"
2017
- ]
2018
- ]
2019
- ]
2020
- ]),
2021
- space: ({ matchUtilities , addUtilities , theme })=>{
2022
- matchUtilities({
2023
- "space-x": (value)=>{
2024
- value = value === "0" ? "0px" : value;
2025
- if (false) {
2026
- return {
2027
- "& > :not([hidden]) ~ :not([hidden])": {
2028
- "--tw-space-x-reverse": "0",
2029
- "margin-inline-end": `calc(${value} * var(--tw-space-x-reverse))`,
2030
- "margin-inline-start": `calc(${value} * calc(1 - var(--tw-space-x-reverse)))`
2031
- }
2032
- };
2033
- }
2034
- return {
2035
- "& > :not([hidden]) ~ :not([hidden])": {
2036
- "--tw-space-x-reverse": "0",
2037
- "margin-right": `calc(${value} * var(--tw-space-x-reverse))`,
2038
- "margin-left": `calc(${value} * calc(1 - var(--tw-space-x-reverse)))`
2039
- }
2040
- };
2041
- },
2042
- "space-y": (value)=>{
2043
- value = value === "0" ? "0px" : value;
2044
- return {
2045
- "& > :not([hidden]) ~ :not([hidden])": {
2046
- "--tw-space-y-reverse": "0",
2047
- "margin-top": `calc(${value} * calc(1 - var(--tw-space-y-reverse)))`,
2048
- "margin-bottom": `calc(${value} * var(--tw-space-y-reverse))`
2049
- }
2050
- };
2051
- }
2052
- }, {
2053
- values: theme("space"),
2054
- supportsNegativeValues: true
2055
- });
2056
- addUtilities({
2057
- ".space-y-reverse > :not([hidden]) ~ :not([hidden])": {
2058
- "--tw-space-y-reverse": "1"
2059
- },
2060
- ".space-x-reverse > :not([hidden]) ~ :not([hidden])": {
2061
- "--tw-space-x-reverse": "1"
2062
- }
2063
- });
2064
- },
2065
- divideWidth: ({ matchUtilities , addUtilities , theme })=>{
2066
- matchUtilities({
2067
- "divide-x": (value)=>{
2068
- value = value === "0" ? "0px" : value;
2069
- if (false) {
2070
- return {
2071
- "& > :not([hidden]) ~ :not([hidden])": {
2072
- "@defaults border-width": {},
2073
- "--tw-divide-x-reverse": "0",
2074
- "border-inline-end-width": `calc(${value} * var(--tw-divide-x-reverse))`,
2075
- "border-inline-start-width": `calc(${value} * calc(1 - var(--tw-divide-x-reverse)))`
2076
- }
2077
- };
2078
- }
2079
- return {
2080
- "& > :not([hidden]) ~ :not([hidden])": {
2081
- "@defaults border-width": {},
2082
- "--tw-divide-x-reverse": "0",
2083
- "border-right-width": `calc(${value} * var(--tw-divide-x-reverse))`,
2084
- "border-left-width": `calc(${value} * calc(1 - var(--tw-divide-x-reverse)))`
2085
- }
2086
- };
2087
- },
2088
- "divide-y": (value)=>{
2089
- value = value === "0" ? "0px" : value;
2090
- return {
2091
- "& > :not([hidden]) ~ :not([hidden])": {
2092
- "@defaults border-width": {},
2093
- "--tw-divide-y-reverse": "0",
2094
- "border-top-width": `calc(${value} * calc(1 - var(--tw-divide-y-reverse)))`,
2095
- "border-bottom-width": `calc(${value} * var(--tw-divide-y-reverse))`
2096
- }
2097
- };
2098
- }
2099
- }, {
2100
- values: theme("divideWidth"),
2101
- type: [
2102
- "line-width",
2103
- "length",
2104
- "any"
2105
- ]
2106
- });
2107
- addUtilities({
2108
- ".divide-y-reverse > :not([hidden]) ~ :not([hidden])": {
2109
- "@defaults border-width": {},
2110
- "--tw-divide-y-reverse": "1"
2111
- },
2112
- ".divide-x-reverse > :not([hidden]) ~ :not([hidden])": {
2113
- "@defaults border-width": {},
2114
- "--tw-divide-x-reverse": "1"
2115
- }
2116
- });
2117
- },
2118
- divideStyle: ({ addUtilities })=>{
2119
- addUtilities({
2120
- ".divide-solid > :not([hidden]) ~ :not([hidden])": {
2121
- "border-style": "solid"
2122
- },
2123
- ".divide-dashed > :not([hidden]) ~ :not([hidden])": {
2124
- "border-style": "dashed"
2125
- },
2126
- ".divide-dotted > :not([hidden]) ~ :not([hidden])": {
2127
- "border-style": "dotted"
2128
- },
2129
- ".divide-double > :not([hidden]) ~ :not([hidden])": {
2130
- "border-style": "double"
2131
- },
2132
- ".divide-none > :not([hidden]) ~ :not([hidden])": {
2133
- "border-style": "none"
2134
- }
2135
- });
2136
- },
2137
- divideColor: ({ matchUtilities , theme , corePlugins })=>{
2138
- matchUtilities({
2139
- divide: (value)=>{
2140
- if (!corePlugins("divideOpacity")) {
2141
- return {
2142
- ["& > :not([hidden]) ~ :not([hidden])"]: {
2143
- "border-color": (0, _toColorValue.default)(value)
2144
- }
2145
- };
2146
- }
2147
- return {
2148
- ["& > :not([hidden]) ~ :not([hidden])"]: (0, _withAlphaVariable.default)({
2149
- color: value,
2150
- property: "border-color",
2151
- variable: "--tw-divide-opacity"
2152
- })
2153
- };
2154
- }
2155
- }, {
2156
- values: (({ DEFAULT: _ , ...colors })=>colors)((0, _flattenColorPalette.default)(theme("divideColor"))),
2157
- type: [
2158
- "color",
2159
- "any"
2160
- ]
2161
- });
2162
- },
2163
- divideOpacity: ({ matchUtilities , theme })=>{
2164
- matchUtilities({
2165
- "divide-opacity": (value)=>{
2166
- return {
2167
- [`& > :not([hidden]) ~ :not([hidden])`]: {
2168
- "--tw-divide-opacity": value
2169
- }
2170
- };
2171
- }
2172
- }, {
2173
- values: theme("divideOpacity")
2174
- });
2175
- },
2176
- placeSelf: ({ addUtilities })=>{
2177
- addUtilities({
2178
- ".place-self-auto": {
2179
- "place-self": "auto"
2180
- },
2181
- ".place-self-start": {
2182
- "place-self": "start"
2183
- },
2184
- ".place-self-end": {
2185
- "place-self": "end"
2186
- },
2187
- ".place-self-center": {
2188
- "place-self": "center"
2189
- },
2190
- ".place-self-stretch": {
2191
- "place-self": "stretch"
2192
- }
2193
- });
2194
- },
2195
- alignSelf: ({ addUtilities })=>{
2196
- addUtilities({
2197
- ".self-auto": {
2198
- "align-self": "auto"
2199
- },
2200
- ".self-start": {
2201
- "align-self": "flex-start"
2202
- },
2203
- ".self-end": {
2204
- "align-self": "flex-end"
2205
- },
2206
- ".self-center": {
2207
- "align-self": "center"
2208
- },
2209
- ".self-stretch": {
2210
- "align-self": "stretch"
2211
- },
2212
- ".self-baseline": {
2213
- "align-self": "baseline"
2214
- }
2215
- });
2216
- },
2217
- justifySelf: ({ addUtilities })=>{
2218
- addUtilities({
2219
- ".justify-self-auto": {
2220
- "justify-self": "auto"
2221
- },
2222
- ".justify-self-start": {
2223
- "justify-self": "start"
2224
- },
2225
- ".justify-self-end": {
2226
- "justify-self": "end"
2227
- },
2228
- ".justify-self-center": {
2229
- "justify-self": "center"
2230
- },
2231
- ".justify-self-stretch": {
2232
- "justify-self": "stretch"
2233
- }
2234
- });
2235
- },
2236
- overflow: ({ addUtilities })=>{
2237
- addUtilities({
2238
- ".overflow-auto": {
2239
- overflow: "auto"
2240
- },
2241
- ".overflow-hidden": {
2242
- overflow: "hidden"
2243
- },
2244
- ".overflow-clip": {
2245
- overflow: "clip"
2246
- },
2247
- ".overflow-visible": {
2248
- overflow: "visible"
2249
- },
2250
- ".overflow-scroll": {
2251
- overflow: "scroll"
2252
- },
2253
- ".overflow-x-auto": {
2254
- "overflow-x": "auto"
2255
- },
2256
- ".overflow-y-auto": {
2257
- "overflow-y": "auto"
2258
- },
2259
- ".overflow-x-hidden": {
2260
- "overflow-x": "hidden"
2261
- },
2262
- ".overflow-y-hidden": {
2263
- "overflow-y": "hidden"
2264
- },
2265
- ".overflow-x-clip": {
2266
- "overflow-x": "clip"
2267
- },
2268
- ".overflow-y-clip": {
2269
- "overflow-y": "clip"
2270
- },
2271
- ".overflow-x-visible": {
2272
- "overflow-x": "visible"
2273
- },
2274
- ".overflow-y-visible": {
2275
- "overflow-y": "visible"
2276
- },
2277
- ".overflow-x-scroll": {
2278
- "overflow-x": "scroll"
2279
- },
2280
- ".overflow-y-scroll": {
2281
- "overflow-y": "scroll"
2282
- }
2283
- });
2284
- },
2285
- overscrollBehavior: ({ addUtilities })=>{
2286
- addUtilities({
2287
- ".overscroll-auto": {
2288
- "overscroll-behavior": "auto"
2289
- },
2290
- ".overscroll-contain": {
2291
- "overscroll-behavior": "contain"
2292
- },
2293
- ".overscroll-none": {
2294
- "overscroll-behavior": "none"
2295
- },
2296
- ".overscroll-y-auto": {
2297
- "overscroll-behavior-y": "auto"
2298
- },
2299
- ".overscroll-y-contain": {
2300
- "overscroll-behavior-y": "contain"
2301
- },
2302
- ".overscroll-y-none": {
2303
- "overscroll-behavior-y": "none"
2304
- },
2305
- ".overscroll-x-auto": {
2306
- "overscroll-behavior-x": "auto"
2307
- },
2308
- ".overscroll-x-contain": {
2309
- "overscroll-behavior-x": "contain"
2310
- },
2311
- ".overscroll-x-none": {
2312
- "overscroll-behavior-x": "none"
2313
- }
2314
- });
2315
- },
2316
- scrollBehavior: ({ addUtilities })=>{
2317
- addUtilities({
2318
- ".scroll-auto": {
2319
- "scroll-behavior": "auto"
2320
- },
2321
- ".scroll-smooth": {
2322
- "scroll-behavior": "smooth"
2323
- }
2324
- });
2325
- },
2326
- textOverflow: ({ addUtilities })=>{
2327
- addUtilities({
2328
- ".truncate": {
2329
- overflow: "hidden",
2330
- "text-overflow": "ellipsis",
2331
- "white-space": "nowrap"
2332
- },
2333
- ".overflow-ellipsis": {
2334
- "text-overflow": "ellipsis"
2335
- },
2336
- ".text-ellipsis": {
2337
- "text-overflow": "ellipsis"
2338
- },
2339
- ".text-clip": {
2340
- "text-overflow": "clip"
2341
- }
2342
- });
2343
- },
2344
- hyphens: ({ addUtilities })=>{
2345
- addUtilities({
2346
- ".hyphens-none": {
2347
- hyphens: "none"
2348
- },
2349
- ".hyphens-manual": {
2350
- hyphens: "manual"
2351
- },
2352
- ".hyphens-auto": {
2353
- hyphens: "auto"
2354
- }
2355
- });
2356
- },
2357
- whitespace: ({ addUtilities })=>{
2358
- addUtilities({
2359
- ".whitespace-normal": {
2360
- "white-space": "normal"
2361
- },
2362
- ".whitespace-nowrap": {
2363
- "white-space": "nowrap"
2364
- },
2365
- ".whitespace-pre": {
2366
- "white-space": "pre"
2367
- },
2368
- ".whitespace-pre-line": {
2369
- "white-space": "pre-line"
2370
- },
2371
- ".whitespace-pre-wrap": {
2372
- "white-space": "pre-wrap"
2373
- },
2374
- ".whitespace-break-spaces": {
2375
- "white-space": "break-spaces"
2376
- }
2377
- });
2378
- },
2379
- textWrap: ({ addUtilities })=>{
2380
- addUtilities({
2381
- ".text-wrap": {
2382
- "text-wrap": "wrap"
2383
- },
2384
- ".text-nowrap": {
2385
- "text-wrap": "nowrap"
2386
- },
2387
- ".text-balance": {
2388
- "text-wrap": "balance"
2389
- },
2390
- ".text-pretty": {
2391
- "text-wrap": "pretty"
2392
- }
2393
- });
2394
- },
2395
- wordBreak: ({ addUtilities })=>{
2396
- addUtilities({
2397
- ".break-normal": {
2398
- "overflow-wrap": "normal",
2399
- "word-break": "normal"
2400
- },
2401
- ".break-words": {
2402
- "overflow-wrap": "break-word"
2403
- },
2404
- ".break-all": {
2405
- "word-break": "break-all"
2406
- },
2407
- ".break-keep": {
2408
- "word-break": "keep-all"
2409
- }
2410
- });
2411
- },
2412
- borderRadius: (0, _createUtilityPlugin.default)("borderRadius", [
2413
- [
2414
- "rounded",
2415
- [
2416
- "border-radius"
2417
- ]
2418
- ],
2419
- [
2420
- [
2421
- "rounded-s",
2422
- [
2423
- "border-start-start-radius",
2424
- "border-end-start-radius"
2425
- ]
2426
- ],
2427
- [
2428
- "rounded-e",
2429
- [
2430
- "border-start-end-radius",
2431
- "border-end-end-radius"
2432
- ]
2433
- ],
2434
- [
2435
- "rounded-t",
2436
- [
2437
- "border-top-left-radius",
2438
- "border-top-right-radius"
2439
- ]
2440
- ],
2441
- [
2442
- "rounded-r",
2443
- [
2444
- "border-top-right-radius",
2445
- "border-bottom-right-radius"
2446
- ]
2447
- ],
2448
- [
2449
- "rounded-b",
2450
- [
2451
- "border-bottom-right-radius",
2452
- "border-bottom-left-radius"
2453
- ]
2454
- ],
2455
- [
2456
- "rounded-l",
2457
- [
2458
- "border-top-left-radius",
2459
- "border-bottom-left-radius"
2460
- ]
2461
- ]
2462
- ],
2463
- [
2464
- [
2465
- "rounded-ss",
2466
- [
2467
- "border-start-start-radius"
2468
- ]
2469
- ],
2470
- [
2471
- "rounded-se",
2472
- [
2473
- "border-start-end-radius"
2474
- ]
2475
- ],
2476
- [
2477
- "rounded-ee",
2478
- [
2479
- "border-end-end-radius"
2480
- ]
2481
- ],
2482
- [
2483
- "rounded-es",
2484
- [
2485
- "border-end-start-radius"
2486
- ]
2487
- ],
2488
- [
2489
- "rounded-tl",
2490
- [
2491
- "border-top-left-radius"
2492
- ]
2493
- ],
2494
- [
2495
- "rounded-tr",
2496
- [
2497
- "border-top-right-radius"
2498
- ]
2499
- ],
2500
- [
2501
- "rounded-br",
2502
- [
2503
- "border-bottom-right-radius"
2504
- ]
2505
- ],
2506
- [
2507
- "rounded-bl",
2508
- [
2509
- "border-bottom-left-radius"
2510
- ]
2511
- ]
2512
- ]
2513
- ]),
2514
- borderWidth: (0, _createUtilityPlugin.default)("borderWidth", [
2515
- [
2516
- "border",
2517
- [
2518
- [
2519
- "@defaults border-width",
2520
- {}
2521
- ],
2522
- "border-width"
2523
- ]
2524
- ],
2525
- [
2526
- [
2527
- "border-x",
2528
- [
2529
- [
2530
- "@defaults border-width",
2531
- {}
2532
- ],
2533
- "border-left-width",
2534
- "border-right-width"
2535
- ]
2536
- ],
2537
- [
2538
- "border-y",
2539
- [
2540
- [
2541
- "@defaults border-width",
2542
- {}
2543
- ],
2544
- "border-top-width",
2545
- "border-bottom-width"
2546
- ]
2547
- ]
2548
- ],
2549
- [
2550
- [
2551
- "border-s",
2552
- [
2553
- [
2554
- "@defaults border-width",
2555
- {}
2556
- ],
2557
- "border-inline-start-width"
2558
- ]
2559
- ],
2560
- [
2561
- "border-e",
2562
- [
2563
- [
2564
- "@defaults border-width",
2565
- {}
2566
- ],
2567
- "border-inline-end-width"
2568
- ]
2569
- ],
2570
- [
2571
- "border-t",
2572
- [
2573
- [
2574
- "@defaults border-width",
2575
- {}
2576
- ],
2577
- "border-top-width"
2578
- ]
2579
- ],
2580
- [
2581
- "border-r",
2582
- [
2583
- [
2584
- "@defaults border-width",
2585
- {}
2586
- ],
2587
- "border-right-width"
2588
- ]
2589
- ],
2590
- [
2591
- "border-b",
2592
- [
2593
- [
2594
- "@defaults border-width",
2595
- {}
2596
- ],
2597
- "border-bottom-width"
2598
- ]
2599
- ],
2600
- [
2601
- "border-l",
2602
- [
2603
- [
2604
- "@defaults border-width",
2605
- {}
2606
- ],
2607
- "border-left-width"
2608
- ]
2609
- ]
2610
- ]
2611
- ], {
2612
- type: [
2613
- "line-width",
2614
- "length"
2615
- ]
2616
- }),
2617
- borderStyle: ({ addUtilities })=>{
2618
- addUtilities({
2619
- ".border-solid": {
2620
- "border-style": "solid"
2621
- },
2622
- ".border-dashed": {
2623
- "border-style": "dashed"
2624
- },
2625
- ".border-dotted": {
2626
- "border-style": "dotted"
2627
- },
2628
- ".border-double": {
2629
- "border-style": "double"
2630
- },
2631
- ".border-hidden": {
2632
- "border-style": "hidden"
2633
- },
2634
- ".border-none": {
2635
- "border-style": "none"
2636
- }
2637
- });
2638
- },
2639
- borderColor: ({ matchUtilities , theme , corePlugins })=>{
2640
- matchUtilities({
2641
- border: (value)=>{
2642
- if (!corePlugins("borderOpacity")) {
2643
- return {
2644
- "border-color": (0, _toColorValue.default)(value)
2645
- };
2646
- }
2647
- return (0, _withAlphaVariable.default)({
2648
- color: value,
2649
- property: "border-color",
2650
- variable: "--tw-border-opacity"
2651
- });
2652
- }
2653
- }, {
2654
- values: (({ DEFAULT: _ , ...colors })=>colors)((0, _flattenColorPalette.default)(theme("borderColor"))),
2655
- type: [
2656
- "color",
2657
- "any"
2658
- ]
2659
- });
2660
- matchUtilities({
2661
- "border-x": (value)=>{
2662
- if (!corePlugins("borderOpacity")) {
2663
- return {
2664
- "border-left-color": (0, _toColorValue.default)(value),
2665
- "border-right-color": (0, _toColorValue.default)(value)
2666
- };
2667
- }
2668
- return (0, _withAlphaVariable.default)({
2669
- color: value,
2670
- property: [
2671
- "border-left-color",
2672
- "border-right-color"
2673
- ],
2674
- variable: "--tw-border-opacity"
2675
- });
2676
- },
2677
- "border-y": (value)=>{
2678
- if (!corePlugins("borderOpacity")) {
2679
- return {
2680
- "border-top-color": (0, _toColorValue.default)(value),
2681
- "border-bottom-color": (0, _toColorValue.default)(value)
2682
- };
2683
- }
2684
- return (0, _withAlphaVariable.default)({
2685
- color: value,
2686
- property: [
2687
- "border-top-color",
2688
- "border-bottom-color"
2689
- ],
2690
- variable: "--tw-border-opacity"
2691
- });
2692
- }
2693
- }, {
2694
- values: (({ DEFAULT: _ , ...colors })=>colors)((0, _flattenColorPalette.default)(theme("borderColor"))),
2695
- type: [
2696
- "color",
2697
- "any"
2698
- ]
2699
- });
2700
- matchUtilities({
2701
- "border-s": (value)=>{
2702
- if (!corePlugins("borderOpacity")) {
2703
- return {
2704
- "border-inline-start-color": (0, _toColorValue.default)(value)
2705
- };
2706
- }
2707
- return (0, _withAlphaVariable.default)({
2708
- color: value,
2709
- property: "border-inline-start-color",
2710
- variable: "--tw-border-opacity"
2711
- });
2712
- },
2713
- "border-e": (value)=>{
2714
- if (!corePlugins("borderOpacity")) {
2715
- return {
2716
- "border-inline-end-color": (0, _toColorValue.default)(value)
2717
- };
2718
- }
2719
- return (0, _withAlphaVariable.default)({
2720
- color: value,
2721
- property: "border-inline-end-color",
2722
- variable: "--tw-border-opacity"
2723
- });
2724
- },
2725
- "border-t": (value)=>{
2726
- if (!corePlugins("borderOpacity")) {
2727
- return {
2728
- "border-top-color": (0, _toColorValue.default)(value)
2729
- };
2730
- }
2731
- return (0, _withAlphaVariable.default)({
2732
- color: value,
2733
- property: "border-top-color",
2734
- variable: "--tw-border-opacity"
2735
- });
2736
- },
2737
- "border-r": (value)=>{
2738
- if (!corePlugins("borderOpacity")) {
2739
- return {
2740
- "border-right-color": (0, _toColorValue.default)(value)
2741
- };
2742
- }
2743
- return (0, _withAlphaVariable.default)({
2744
- color: value,
2745
- property: "border-right-color",
2746
- variable: "--tw-border-opacity"
2747
- });
2748
- },
2749
- "border-b": (value)=>{
2750
- if (!corePlugins("borderOpacity")) {
2751
- return {
2752
- "border-bottom-color": (0, _toColorValue.default)(value)
2753
- };
2754
- }
2755
- return (0, _withAlphaVariable.default)({
2756
- color: value,
2757
- property: "border-bottom-color",
2758
- variable: "--tw-border-opacity"
2759
- });
2760
- },
2761
- "border-l": (value)=>{
2762
- if (!corePlugins("borderOpacity")) {
2763
- return {
2764
- "border-left-color": (0, _toColorValue.default)(value)
2765
- };
2766
- }
2767
- return (0, _withAlphaVariable.default)({
2768
- color: value,
2769
- property: "border-left-color",
2770
- variable: "--tw-border-opacity"
2771
- });
2772
- }
2773
- }, {
2774
- values: (({ DEFAULT: _ , ...colors })=>colors)((0, _flattenColorPalette.default)(theme("borderColor"))),
2775
- type: [
2776
- "color",
2777
- "any"
2778
- ]
2779
- });
2780
- },
2781
- borderOpacity: (0, _createUtilityPlugin.default)("borderOpacity", [
2782
- [
2783
- "border-opacity",
2784
- [
2785
- "--tw-border-opacity"
2786
- ]
2787
- ]
2788
- ]),
2789
- backgroundColor: ({ matchUtilities , theme , corePlugins })=>{
2790
- matchUtilities({
2791
- bg: (value)=>{
2792
- if (!corePlugins("backgroundOpacity")) {
2793
- return {
2794
- "background-color": (0, _toColorValue.default)(value)
2795
- };
2796
- }
2797
- return (0, _withAlphaVariable.default)({
2798
- color: value,
2799
- property: "background-color",
2800
- variable: "--tw-bg-opacity"
2801
- });
2802
- }
2803
- }, {
2804
- values: (0, _flattenColorPalette.default)(theme("backgroundColor")),
2805
- type: [
2806
- "color",
2807
- "any"
2808
- ]
2809
- });
2810
- },
2811
- backgroundOpacity: (0, _createUtilityPlugin.default)("backgroundOpacity", [
2812
- [
2813
- "bg-opacity",
2814
- [
2815
- "--tw-bg-opacity"
2816
- ]
2817
- ]
2818
- ]),
2819
- backgroundImage: (0, _createUtilityPlugin.default)("backgroundImage", [
2820
- [
2821
- "bg",
2822
- [
2823
- "background-image"
2824
- ]
2825
- ]
2826
- ], {
2827
- type: [
2828
- "lookup",
2829
- "image",
2830
- "url"
2831
- ]
2832
- }),
2833
- gradientColorStops: (()=>{
2834
- function transparentTo(value) {
2835
- return (0, _withAlphaVariable.withAlphaValue)(value, 0, "rgb(255 255 255 / 0)");
2836
- }
2837
- return function({ matchUtilities , theme , addDefaults }) {
2838
- addDefaults("gradient-color-stops", {
2839
- "--tw-gradient-from-position": " ",
2840
- "--tw-gradient-via-position": " ",
2841
- "--tw-gradient-to-position": " "
2842
- });
2843
- let options = {
2844
- values: (0, _flattenColorPalette.default)(theme("gradientColorStops")),
2845
- type: [
2846
- "color",
2847
- "any"
2848
- ]
2849
- };
2850
- let positionOptions = {
2851
- values: theme("gradientColorStopPositions"),
2852
- type: [
2853
- "length",
2854
- "percentage"
2855
- ]
2856
- };
2857
- matchUtilities({
2858
- from: (value)=>{
2859
- let transparentToValue = transparentTo(value);
2860
- return {
2861
- "@defaults gradient-color-stops": {},
2862
- "--tw-gradient-from": `${(0, _toColorValue.default)(value)} var(--tw-gradient-from-position)`,
2863
- "--tw-gradient-to": `${transparentToValue} var(--tw-gradient-to-position)`,
2864
- "--tw-gradient-stops": `var(--tw-gradient-from), var(--tw-gradient-to)`
2865
- };
2866
- }
2867
- }, options);
2868
- matchUtilities({
2869
- from: (value)=>{
2870
- return {
2871
- "--tw-gradient-from-position": value
2872
- };
2873
- }
2874
- }, positionOptions);
2875
- matchUtilities({
2876
- via: (value)=>{
2877
- let transparentToValue = transparentTo(value);
2878
- return {
2879
- "@defaults gradient-color-stops": {},
2880
- "--tw-gradient-to": `${transparentToValue} var(--tw-gradient-to-position)`,
2881
- "--tw-gradient-stops": `var(--tw-gradient-from), ${(0, _toColorValue.default)(value)} var(--tw-gradient-via-position), var(--tw-gradient-to)`
2882
- };
2883
- }
2884
- }, options);
2885
- matchUtilities({
2886
- via: (value)=>{
2887
- return {
2888
- "--tw-gradient-via-position": value
2889
- };
2890
- }
2891
- }, positionOptions);
2892
- matchUtilities({
2893
- to: (value)=>({
2894
- "@defaults gradient-color-stops": {},
2895
- "--tw-gradient-to": `${(0, _toColorValue.default)(value)} var(--tw-gradient-to-position)`
2896
- })
2897
- }, options);
2898
- matchUtilities({
2899
- to: (value)=>{
2900
- return {
2901
- "--tw-gradient-to-position": value
2902
- };
2903
- }
2904
- }, positionOptions);
2905
- };
2906
- })(),
2907
- boxDecorationBreak: ({ addUtilities })=>{
2908
- addUtilities({
2909
- ".decoration-slice": {
2910
- "box-decoration-break": "slice"
2911
- },
2912
- ".decoration-clone": {
2913
- "box-decoration-break": "clone"
2914
- },
2915
- ".box-decoration-slice": {
2916
- "box-decoration-break": "slice"
2917
- },
2918
- ".box-decoration-clone": {
2919
- "box-decoration-break": "clone"
2920
- }
2921
- });
2922
- },
2923
- backgroundSize: (0, _createUtilityPlugin.default)("backgroundSize", [
2924
- [
2925
- "bg",
2926
- [
2927
- "background-size"
2928
- ]
2929
- ]
2930
- ], {
2931
- type: [
2932
- "lookup",
2933
- "length",
2934
- "percentage",
2935
- "size"
2936
- ]
2937
- }),
2938
- backgroundAttachment: ({ addUtilities })=>{
2939
- addUtilities({
2940
- ".bg-fixed": {
2941
- "background-attachment": "fixed"
2942
- },
2943
- ".bg-local": {
2944
- "background-attachment": "local"
2945
- },
2946
- ".bg-scroll": {
2947
- "background-attachment": "scroll"
2948
- }
2949
- });
2950
- },
2951
- backgroundClip: ({ addUtilities })=>{
2952
- addUtilities({
2953
- ".bg-clip-border": {
2954
- "background-clip": "border-box"
2955
- },
2956
- ".bg-clip-padding": {
2957
- "background-clip": "padding-box"
2958
- },
2959
- ".bg-clip-content": {
2960
- "background-clip": "content-box"
2961
- },
2962
- ".bg-clip-text": {
2963
- "background-clip": "text"
2964
- }
2965
- });
2966
- },
2967
- backgroundPosition: (0, _createUtilityPlugin.default)("backgroundPosition", [
2968
- [
2969
- "bg",
2970
- [
2971
- "background-position"
2972
- ]
2973
- ]
2974
- ], {
2975
- type: [
2976
- "lookup",
2977
- [
2978
- "position",
2979
- {
2980
- preferOnConflict: true
2981
- }
2982
- ]
2983
- ]
2984
- }),
2985
- backgroundRepeat: ({ addUtilities })=>{
2986
- addUtilities({
2987
- ".bg-repeat": {
2988
- "background-repeat": "repeat"
2989
- },
2990
- ".bg-no-repeat": {
2991
- "background-repeat": "no-repeat"
2992
- },
2993
- ".bg-repeat-x": {
2994
- "background-repeat": "repeat-x"
2995
- },
2996
- ".bg-repeat-y": {
2997
- "background-repeat": "repeat-y"
2998
- },
2999
- ".bg-repeat-round": {
3000
- "background-repeat": "round"
3001
- },
3002
- ".bg-repeat-space": {
3003
- "background-repeat": "space"
3004
- }
3005
- });
3006
- },
3007
- backgroundOrigin: ({ addUtilities })=>{
3008
- addUtilities({
3009
- ".bg-origin-border": {
3010
- "background-origin": "border-box"
3011
- },
3012
- ".bg-origin-padding": {
3013
- "background-origin": "padding-box"
3014
- },
3015
- ".bg-origin-content": {
3016
- "background-origin": "content-box"
3017
- }
3018
- });
3019
- },
3020
- fill: ({ matchUtilities , theme })=>{
3021
- matchUtilities({
3022
- fill: (value)=>{
3023
- return {
3024
- fill: (0, _toColorValue.default)(value)
3025
- };
3026
- }
3027
- }, {
3028
- values: (0, _flattenColorPalette.default)(theme("fill")),
3029
- type: [
3030
- "color",
3031
- "any"
3032
- ]
3033
- });
3034
- },
3035
- stroke: ({ matchUtilities , theme })=>{
3036
- matchUtilities({
3037
- stroke: (value)=>{
3038
- return {
3039
- stroke: (0, _toColorValue.default)(value)
3040
- };
3041
- }
3042
- }, {
3043
- values: (0, _flattenColorPalette.default)(theme("stroke")),
3044
- type: [
3045
- "color",
3046
- "url",
3047
- "any"
3048
- ]
3049
- });
3050
- },
3051
- strokeWidth: (0, _createUtilityPlugin.default)("strokeWidth", [
3052
- [
3053
- "stroke",
3054
- [
3055
- "stroke-width"
3056
- ]
3057
- ]
3058
- ], {
3059
- type: [
3060
- "length",
3061
- "number",
3062
- "percentage"
3063
- ]
3064
- }),
3065
- objectFit: ({ addUtilities })=>{
3066
- addUtilities({
3067
- ".object-contain": {
3068
- "object-fit": "contain"
3069
- },
3070
- ".object-cover": {
3071
- "object-fit": "cover"
3072
- },
3073
- ".object-fill": {
3074
- "object-fit": "fill"
3075
- },
3076
- ".object-none": {
3077
- "object-fit": "none"
3078
- },
3079
- ".object-scale-down": {
3080
- "object-fit": "scale-down"
3081
- }
3082
- });
3083
- },
3084
- objectPosition: (0, _createUtilityPlugin.default)("objectPosition", [
3085
- [
3086
- "object",
3087
- [
3088
- "object-position"
3089
- ]
3090
- ]
3091
- ]),
3092
- padding: (0, _createUtilityPlugin.default)("padding", [
3093
- [
3094
- "p",
3095
- [
3096
- "padding"
3097
- ]
3098
- ],
3099
- [
3100
- [
3101
- "px",
3102
- [
3103
- "padding-left",
3104
- "padding-right"
3105
- ]
3106
- ],
3107
- [
3108
- "py",
3109
- [
3110
- "padding-top",
3111
- "padding-bottom"
3112
- ]
3113
- ]
3114
- ],
3115
- [
3116
- [
3117
- "ps",
3118
- [
3119
- "padding-inline-start"
3120
- ]
3121
- ],
3122
- [
3123
- "pe",
3124
- [
3125
- "padding-inline-end"
3126
- ]
3127
- ],
3128
- [
3129
- "pt",
3130
- [
3131
- "padding-top"
3132
- ]
3133
- ],
3134
- [
3135
- "pr",
3136
- [
3137
- "padding-right"
3138
- ]
3139
- ],
3140
- [
3141
- "pb",
3142
- [
3143
- "padding-bottom"
3144
- ]
3145
- ],
3146
- [
3147
- "pl",
3148
- [
3149
- "padding-left"
3150
- ]
3151
- ]
3152
- ]
3153
- ]),
3154
- textAlign: ({ addUtilities })=>{
3155
- addUtilities({
3156
- ".text-left": {
3157
- "text-align": "left"
3158
- },
3159
- ".text-center": {
3160
- "text-align": "center"
3161
- },
3162
- ".text-right": {
3163
- "text-align": "right"
3164
- },
3165
- ".text-justify": {
3166
- "text-align": "justify"
3167
- },
3168
- ".text-start": {
3169
- "text-align": "start"
3170
- },
3171
- ".text-end": {
3172
- "text-align": "end"
3173
- }
3174
- });
3175
- },
3176
- textIndent: (0, _createUtilityPlugin.default)("textIndent", [
3177
- [
3178
- "indent",
3179
- [
3180
- "text-indent"
3181
- ]
3182
- ]
3183
- ], {
3184
- supportsNegativeValues: true
3185
- }),
3186
- verticalAlign: ({ addUtilities , matchUtilities })=>{
3187
- addUtilities({
3188
- ".align-baseline": {
3189
- "vertical-align": "baseline"
3190
- },
3191
- ".align-top": {
3192
- "vertical-align": "top"
3193
- },
3194
- ".align-middle": {
3195
- "vertical-align": "middle"
3196
- },
3197
- ".align-bottom": {
3198
- "vertical-align": "bottom"
3199
- },
3200
- ".align-text-top": {
3201
- "vertical-align": "text-top"
3202
- },
3203
- ".align-text-bottom": {
3204
- "vertical-align": "text-bottom"
3205
- },
3206
- ".align-sub": {
3207
- "vertical-align": "sub"
3208
- },
3209
- ".align-super": {
3210
- "vertical-align": "super"
3211
- }
3212
- });
3213
- matchUtilities({
3214
- align: (value)=>({
3215
- "vertical-align": value
3216
- })
3217
- });
3218
- },
3219
- fontFamily: ({ matchUtilities , theme })=>{
3220
- matchUtilities({
3221
- font: (value)=>{
3222
- let [families, options = {}] = Array.isArray(value) && (0, _isPlainObject.default)(value[1]) ? value : [
3223
- value
3224
- ];
3225
- let { fontFeatureSettings , fontVariationSettings } = options;
3226
- return {
3227
- "font-family": Array.isArray(families) ? families.join(", ") : families,
3228
- ...fontFeatureSettings === undefined ? {} : {
3229
- "font-feature-settings": fontFeatureSettings
3230
- },
3231
- ...fontVariationSettings === undefined ? {} : {
3232
- "font-variation-settings": fontVariationSettings
3233
- }
3234
- };
3235
- }
3236
- }, {
3237
- values: theme("fontFamily"),
3238
- type: [
3239
- "lookup",
3240
- "generic-name",
3241
- "family-name"
3242
- ]
3243
- });
3244
- },
3245
- fontSize: ({ matchUtilities , theme })=>{
3246
- matchUtilities({
3247
- text: (value, { modifier })=>{
3248
- let [fontSize, options] = Array.isArray(value) ? value : [
3249
- value
3250
- ];
3251
- if (modifier) {
3252
- return {
3253
- "font-size": fontSize,
3254
- "line-height": modifier
3255
- };
3256
- }
3257
- let { lineHeight , letterSpacing , fontWeight } = (0, _isPlainObject.default)(options) ? options : {
3258
- lineHeight: options
3259
- };
3260
- return {
3261
- "font-size": fontSize,
3262
- ...lineHeight === undefined ? {} : {
3263
- "line-height": lineHeight
3264
- },
3265
- ...letterSpacing === undefined ? {} : {
3266
- "letter-spacing": letterSpacing
3267
- },
3268
- ...fontWeight === undefined ? {} : {
3269
- "font-weight": fontWeight
3270
- }
3271
- };
3272
- }
3273
- }, {
3274
- values: theme("fontSize"),
3275
- modifiers: theme("lineHeight"),
3276
- type: [
3277
- "absolute-size",
3278
- "relative-size",
3279
- "length",
3280
- "percentage"
3281
- ]
3282
- });
3283
- },
3284
- fontWeight: (0, _createUtilityPlugin.default)("fontWeight", [
3285
- [
3286
- "font",
3287
- [
3288
- "fontWeight"
3289
- ]
3290
- ]
3291
- ], {
3292
- type: [
3293
- "lookup",
3294
- "number",
3295
- "any"
3296
- ]
3297
- }),
3298
- textTransform: ({ addUtilities })=>{
3299
- addUtilities({
3300
- ".uppercase": {
3301
- "text-transform": "uppercase"
3302
- },
3303
- ".lowercase": {
3304
- "text-transform": "lowercase"
3305
- },
3306
- ".capitalize": {
3307
- "text-transform": "capitalize"
3308
- },
3309
- ".normal-case": {
3310
- "text-transform": "none"
3311
- }
3312
- });
3313
- },
3314
- fontStyle: ({ addUtilities })=>{
3315
- addUtilities({
3316
- ".italic": {
3317
- "font-style": "italic"
3318
- },
3319
- ".not-italic": {
3320
- "font-style": "normal"
3321
- }
3322
- });
3323
- },
3324
- fontVariantNumeric: ({ addDefaults , addUtilities })=>{
3325
- let cssFontVariantNumericValue = "var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)";
3326
- addDefaults("font-variant-numeric", {
3327
- "--tw-ordinal": " ",
3328
- "--tw-slashed-zero": " ",
3329
- "--tw-numeric-figure": " ",
3330
- "--tw-numeric-spacing": " ",
3331
- "--tw-numeric-fraction": " "
3332
- });
3333
- addUtilities({
3334
- ".normal-nums": {
3335
- "font-variant-numeric": "normal"
3336
- },
3337
- ".ordinal": {
3338
- "@defaults font-variant-numeric": {},
3339
- "--tw-ordinal": "ordinal",
3340
- "font-variant-numeric": cssFontVariantNumericValue
3341
- },
3342
- ".slashed-zero": {
3343
- "@defaults font-variant-numeric": {},
3344
- "--tw-slashed-zero": "slashed-zero",
3345
- "font-variant-numeric": cssFontVariantNumericValue
3346
- },
3347
- ".lining-nums": {
3348
- "@defaults font-variant-numeric": {},
3349
- "--tw-numeric-figure": "lining-nums",
3350
- "font-variant-numeric": cssFontVariantNumericValue
3351
- },
3352
- ".oldstyle-nums": {
3353
- "@defaults font-variant-numeric": {},
3354
- "--tw-numeric-figure": "oldstyle-nums",
3355
- "font-variant-numeric": cssFontVariantNumericValue
3356
- },
3357
- ".proportional-nums": {
3358
- "@defaults font-variant-numeric": {},
3359
- "--tw-numeric-spacing": "proportional-nums",
3360
- "font-variant-numeric": cssFontVariantNumericValue
3361
- },
3362
- ".tabular-nums": {
3363
- "@defaults font-variant-numeric": {},
3364
- "--tw-numeric-spacing": "tabular-nums",
3365
- "font-variant-numeric": cssFontVariantNumericValue
3366
- },
3367
- ".diagonal-fractions": {
3368
- "@defaults font-variant-numeric": {},
3369
- "--tw-numeric-fraction": "diagonal-fractions",
3370
- "font-variant-numeric": cssFontVariantNumericValue
3371
- },
3372
- ".stacked-fractions": {
3373
- "@defaults font-variant-numeric": {},
3374
- "--tw-numeric-fraction": "stacked-fractions",
3375
- "font-variant-numeric": cssFontVariantNumericValue
3376
- }
3377
- });
3378
- },
3379
- lineHeight: (0, _createUtilityPlugin.default)("lineHeight", [
3380
- [
3381
- "leading",
3382
- [
3383
- "lineHeight"
3384
- ]
3385
- ]
3386
- ]),
3387
- letterSpacing: (0, _createUtilityPlugin.default)("letterSpacing", [
3388
- [
3389
- "tracking",
3390
- [
3391
- "letterSpacing"
3392
- ]
3393
- ]
3394
- ], {
3395
- supportsNegativeValues: true
3396
- }),
3397
- textColor: ({ matchUtilities , theme , corePlugins })=>{
3398
- matchUtilities({
3399
- text: (value)=>{
3400
- if (!corePlugins("textOpacity")) {
3401
- return {
3402
- color: (0, _toColorValue.default)(value)
3403
- };
3404
- }
3405
- return (0, _withAlphaVariable.default)({
3406
- color: value,
3407
- property: "color",
3408
- variable: "--tw-text-opacity"
3409
- });
3410
- }
3411
- }, {
3412
- values: (0, _flattenColorPalette.default)(theme("textColor")),
3413
- type: [
3414
- "color",
3415
- "any"
3416
- ]
3417
- });
3418
- },
3419
- textOpacity: (0, _createUtilityPlugin.default)("textOpacity", [
3420
- [
3421
- "text-opacity",
3422
- [
3423
- "--tw-text-opacity"
3424
- ]
3425
- ]
3426
- ]),
3427
- textDecoration: ({ addUtilities })=>{
3428
- addUtilities({
3429
- ".underline": {
3430
- "text-decoration-line": "underline"
3431
- },
3432
- ".overline": {
3433
- "text-decoration-line": "overline"
3434
- },
3435
- ".line-through": {
3436
- "text-decoration-line": "line-through"
3437
- },
3438
- ".no-underline": {
3439
- "text-decoration-line": "none"
3440
- }
3441
- });
3442
- },
3443
- textDecorationColor: ({ matchUtilities , theme })=>{
3444
- matchUtilities({
3445
- decoration: (value)=>{
3446
- return {
3447
- "text-decoration-color": (0, _toColorValue.default)(value)
3448
- };
3449
- }
3450
- }, {
3451
- values: (0, _flattenColorPalette.default)(theme("textDecorationColor")),
3452
- type: [
3453
- "color",
3454
- "any"
3455
- ]
3456
- });
3457
- },
3458
- textDecorationStyle: ({ addUtilities })=>{
3459
- addUtilities({
3460
- ".decoration-solid": {
3461
- "text-decoration-style": "solid"
3462
- },
3463
- ".decoration-double": {
3464
- "text-decoration-style": "double"
3465
- },
3466
- ".decoration-dotted": {
3467
- "text-decoration-style": "dotted"
3468
- },
3469
- ".decoration-dashed": {
3470
- "text-decoration-style": "dashed"
3471
- },
3472
- ".decoration-wavy": {
3473
- "text-decoration-style": "wavy"
3474
- }
3475
- });
3476
- },
3477
- textDecorationThickness: (0, _createUtilityPlugin.default)("textDecorationThickness", [
3478
- [
3479
- "decoration",
3480
- [
3481
- "text-decoration-thickness"
3482
- ]
3483
- ]
3484
- ], {
3485
- type: [
3486
- "length",
3487
- "percentage"
3488
- ]
3489
- }),
3490
- textUnderlineOffset: (0, _createUtilityPlugin.default)("textUnderlineOffset", [
3491
- [
3492
- "underline-offset",
3493
- [
3494
- "text-underline-offset"
3495
- ]
3496
- ]
3497
- ], {
3498
- type: [
3499
- "length",
3500
- "percentage",
3501
- "any"
3502
- ]
3503
- }),
3504
- fontSmoothing: ({ addUtilities })=>{
3505
- addUtilities({
3506
- ".antialiased": {
3507
- "-webkit-font-smoothing": "antialiased",
3508
- "-moz-osx-font-smoothing": "grayscale"
3509
- },
3510
- ".subpixel-antialiased": {
3511
- "-webkit-font-smoothing": "auto",
3512
- "-moz-osx-font-smoothing": "auto"
3513
- }
3514
- });
3515
- },
3516
- placeholderColor: ({ matchUtilities , theme , corePlugins })=>{
3517
- matchUtilities({
3518
- placeholder: (value)=>{
3519
- if (!corePlugins("placeholderOpacity")) {
3520
- return {
3521
- "&::placeholder": {
3522
- color: (0, _toColorValue.default)(value)
3523
- }
3524
- };
3525
- }
3526
- return {
3527
- "&::placeholder": (0, _withAlphaVariable.default)({
3528
- color: value,
3529
- property: "color",
3530
- variable: "--tw-placeholder-opacity"
3531
- })
3532
- };
3533
- }
3534
- }, {
3535
- values: (0, _flattenColorPalette.default)(theme("placeholderColor")),
3536
- type: [
3537
- "color",
3538
- "any"
3539
- ]
3540
- });
3541
- },
3542
- placeholderOpacity: ({ matchUtilities , theme })=>{
3543
- matchUtilities({
3544
- "placeholder-opacity": (value)=>{
3545
- return {
3546
- ["&::placeholder"]: {
3547
- "--tw-placeholder-opacity": value
3548
- }
3549
- };
3550
- }
3551
- }, {
3552
- values: theme("placeholderOpacity")
3553
- });
3554
- },
3555
- caretColor: ({ matchUtilities , theme })=>{
3556
- matchUtilities({
3557
- caret: (value)=>{
3558
- return {
3559
- "caret-color": (0, _toColorValue.default)(value)
3560
- };
3561
- }
3562
- }, {
3563
- values: (0, _flattenColorPalette.default)(theme("caretColor")),
3564
- type: [
3565
- "color",
3566
- "any"
3567
- ]
3568
- });
3569
- },
3570
- accentColor: ({ matchUtilities , theme })=>{
3571
- matchUtilities({
3572
- accent: (value)=>{
3573
- return {
3574
- "accent-color": (0, _toColorValue.default)(value)
3575
- };
3576
- }
3577
- }, {
3578
- values: (0, _flattenColorPalette.default)(theme("accentColor")),
3579
- type: [
3580
- "color",
3581
- "any"
3582
- ]
3583
- });
3584
- },
3585
- opacity: (0, _createUtilityPlugin.default)("opacity", [
3586
- [
3587
- "opacity",
3588
- [
3589
- "opacity"
3590
- ]
3591
- ]
3592
- ]),
3593
- backgroundBlendMode: ({ addUtilities })=>{
3594
- addUtilities({
3595
- ".bg-blend-normal": {
3596
- "background-blend-mode": "normal"
3597
- },
3598
- ".bg-blend-multiply": {
3599
- "background-blend-mode": "multiply"
3600
- },
3601
- ".bg-blend-screen": {
3602
- "background-blend-mode": "screen"
3603
- },
3604
- ".bg-blend-overlay": {
3605
- "background-blend-mode": "overlay"
3606
- },
3607
- ".bg-blend-darken": {
3608
- "background-blend-mode": "darken"
3609
- },
3610
- ".bg-blend-lighten": {
3611
- "background-blend-mode": "lighten"
3612
- },
3613
- ".bg-blend-color-dodge": {
3614
- "background-blend-mode": "color-dodge"
3615
- },
3616
- ".bg-blend-color-burn": {
3617
- "background-blend-mode": "color-burn"
3618
- },
3619
- ".bg-blend-hard-light": {
3620
- "background-blend-mode": "hard-light"
3621
- },
3622
- ".bg-blend-soft-light": {
3623
- "background-blend-mode": "soft-light"
3624
- },
3625
- ".bg-blend-difference": {
3626
- "background-blend-mode": "difference"
3627
- },
3628
- ".bg-blend-exclusion": {
3629
- "background-blend-mode": "exclusion"
3630
- },
3631
- ".bg-blend-hue": {
3632
- "background-blend-mode": "hue"
3633
- },
3634
- ".bg-blend-saturation": {
3635
- "background-blend-mode": "saturation"
3636
- },
3637
- ".bg-blend-color": {
3638
- "background-blend-mode": "color"
3639
- },
3640
- ".bg-blend-luminosity": {
3641
- "background-blend-mode": "luminosity"
3642
- }
3643
- });
3644
- },
3645
- mixBlendMode: ({ addUtilities })=>{
3646
- addUtilities({
3647
- ".mix-blend-normal": {
3648
- "mix-blend-mode": "normal"
3649
- },
3650
- ".mix-blend-multiply": {
3651
- "mix-blend-mode": "multiply"
3652
- },
3653
- ".mix-blend-screen": {
3654
- "mix-blend-mode": "screen"
3655
- },
3656
- ".mix-blend-overlay": {
3657
- "mix-blend-mode": "overlay"
3658
- },
3659
- ".mix-blend-darken": {
3660
- "mix-blend-mode": "darken"
3661
- },
3662
- ".mix-blend-lighten": {
3663
- "mix-blend-mode": "lighten"
3664
- },
3665
- ".mix-blend-color-dodge": {
3666
- "mix-blend-mode": "color-dodge"
3667
- },
3668
- ".mix-blend-color-burn": {
3669
- "mix-blend-mode": "color-burn"
3670
- },
3671
- ".mix-blend-hard-light": {
3672
- "mix-blend-mode": "hard-light"
3673
- },
3674
- ".mix-blend-soft-light": {
3675
- "mix-blend-mode": "soft-light"
3676
- },
3677
- ".mix-blend-difference": {
3678
- "mix-blend-mode": "difference"
3679
- },
3680
- ".mix-blend-exclusion": {
3681
- "mix-blend-mode": "exclusion"
3682
- },
3683
- ".mix-blend-hue": {
3684
- "mix-blend-mode": "hue"
3685
- },
3686
- ".mix-blend-saturation": {
3687
- "mix-blend-mode": "saturation"
3688
- },
3689
- ".mix-blend-color": {
3690
- "mix-blend-mode": "color"
3691
- },
3692
- ".mix-blend-luminosity": {
3693
- "mix-blend-mode": "luminosity"
3694
- },
3695
- ".mix-blend-plus-lighter": {
3696
- "mix-blend-mode": "plus-lighter"
3697
- }
3698
- });
3699
- },
3700
- boxShadow: (()=>{
3701
- let transformValue = (0, _transformThemeValue.default)("boxShadow");
3702
- let defaultBoxShadow = [
3703
- `var(--tw-ring-offset-shadow, 0 0 #0000)`,
3704
- `var(--tw-ring-shadow, 0 0 #0000)`,
3705
- `var(--tw-shadow)`
3706
- ].join(", ");
3707
- return function({ matchUtilities , addDefaults , theme }) {
3708
- addDefaults(" box-shadow", {
3709
- "--tw-ring-offset-shadow": "0 0 #0000",
3710
- "--tw-ring-shadow": "0 0 #0000",
3711
- "--tw-shadow": "0 0 #0000",
3712
- "--tw-shadow-colored": "0 0 #0000"
3713
- });
3714
- matchUtilities({
3715
- shadow: (value)=>{
3716
- value = transformValue(value);
3717
- let ast = (0, _parseBoxShadowValue.parseBoxShadowValue)(value);
3718
- for (let shadow of ast){
3719
- // Don't override color if the whole shadow is a variable
3720
- if (!shadow.valid) {
3721
- continue;
3722
- }
3723
- shadow.color = "var(--tw-shadow-color)";
3724
- }
3725
- return {
3726
- "@defaults box-shadow": {},
3727
- "--tw-shadow": value === "none" ? "0 0 #0000" : value,
3728
- "--tw-shadow-colored": value === "none" ? "0 0 #0000" : (0, _parseBoxShadowValue.formatBoxShadowValue)(ast),
3729
- "box-shadow": defaultBoxShadow
3730
- };
3731
- }
3732
- }, {
3733
- values: theme("boxShadow"),
3734
- type: [
3735
- "shadow"
3736
- ]
3737
- });
3738
- };
3739
- })(),
3740
- boxShadowColor: ({ matchUtilities , theme })=>{
3741
- matchUtilities({
3742
- shadow: (value)=>{
3743
- return {
3744
- "--tw-shadow-color": (0, _toColorValue.default)(value),
3745
- "--tw-shadow": "var(--tw-shadow-colored)"
3746
- };
3747
- }
3748
- }, {
3749
- values: (0, _flattenColorPalette.default)(theme("boxShadowColor")),
3750
- type: [
3751
- "color",
3752
- "any"
3753
- ]
3754
- });
3755
- },
3756
- outlineStyle: ({ addUtilities })=>{
3757
- addUtilities({
3758
- ".outline-none": {
3759
- outline: "2px solid transparent",
3760
- "outline-offset": "2px"
3761
- },
3762
- ".outline": {
3763
- "outline-style": "solid"
3764
- },
3765
- ".outline-dashed": {
3766
- "outline-style": "dashed"
3767
- },
3768
- ".outline-dotted": {
3769
- "outline-style": "dotted"
3770
- },
3771
- ".outline-double": {
3772
- "outline-style": "double"
3773
- }
3774
- });
3775
- },
3776
- outlineWidth: (0, _createUtilityPlugin.default)("outlineWidth", [
3777
- [
3778
- "outline",
3779
- [
3780
- "outline-width"
3781
- ]
3782
- ]
3783
- ], {
3784
- type: [
3785
- "length",
3786
- "number",
3787
- "percentage"
3788
- ]
3789
- }),
3790
- outlineOffset: (0, _createUtilityPlugin.default)("outlineOffset", [
3791
- [
3792
- "outline-offset",
3793
- [
3794
- "outline-offset"
3795
- ]
3796
- ]
3797
- ], {
3798
- type: [
3799
- "length",
3800
- "number",
3801
- "percentage",
3802
- "any"
3803
- ],
3804
- supportsNegativeValues: true
3805
- }),
3806
- outlineColor: ({ matchUtilities , theme })=>{
3807
- matchUtilities({
3808
- outline: (value)=>{
3809
- return {
3810
- "outline-color": (0, _toColorValue.default)(value)
3811
- };
3812
- }
3813
- }, {
3814
- values: (0, _flattenColorPalette.default)(theme("outlineColor")),
3815
- type: [
3816
- "color",
3817
- "any"
3818
- ]
3819
- });
3820
- },
3821
- ringWidth: ({ matchUtilities , addDefaults , addUtilities , theme , config })=>{
3822
- let ringColorDefault = (()=>{
3823
- var _theme, _theme1;
3824
- if ((0, _featureFlags.flagEnabled)(config(), "respectDefaultRingColorOpacity")) {
3825
- return theme("ringColor.DEFAULT");
3826
- }
3827
- let ringOpacityDefault = theme("ringOpacity.DEFAULT", "0.5");
3828
- if (!((_theme = theme("ringColor")) === null || _theme === void 0 ? void 0 : _theme.DEFAULT)) {
3829
- return `rgb(147 197 253 / ${ringOpacityDefault})`;
3830
- }
3831
- return (0, _withAlphaVariable.withAlphaValue)((_theme1 = theme("ringColor")) === null || _theme1 === void 0 ? void 0 : _theme1.DEFAULT, ringOpacityDefault, `rgb(147 197 253 / ${ringOpacityDefault})`);
3832
- })();
3833
- addDefaults("ring-width", {
3834
- "--tw-ring-inset": " ",
3835
- "--tw-ring-offset-width": theme("ringOffsetWidth.DEFAULT", "0px"),
3836
- "--tw-ring-offset-color": theme("ringOffsetColor.DEFAULT", "#fff"),
3837
- "--tw-ring-color": ringColorDefault,
3838
- "--tw-ring-offset-shadow": "0 0 #0000",
3839
- "--tw-ring-shadow": "0 0 #0000",
3840
- "--tw-shadow": "0 0 #0000",
3841
- "--tw-shadow-colored": "0 0 #0000"
3842
- });
3843
- matchUtilities({
3844
- ring: (value)=>{
3845
- return {
3846
- "@defaults ring-width": {},
3847
- "--tw-ring-offset-shadow": `var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)`,
3848
- "--tw-ring-shadow": `var(--tw-ring-inset) 0 0 0 calc(${value} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,
3849
- "box-shadow": [
3850
- `var(--tw-ring-offset-shadow)`,
3851
- `var(--tw-ring-shadow)`,
3852
- `var(--tw-shadow, 0 0 #0000)`
3853
- ].join(", ")
3854
- };
3855
- }
3856
- }, {
3857
- values: theme("ringWidth"),
3858
- type: "length"
3859
- });
3860
- addUtilities({
3861
- ".ring-inset": {
3862
- "@defaults ring-width": {},
3863
- "--tw-ring-inset": "inset"
3864
- }
3865
- });
3866
- },
3867
- ringColor: ({ matchUtilities , theme , corePlugins })=>{
3868
- matchUtilities({
3869
- ring: (value)=>{
3870
- if (!corePlugins("ringOpacity")) {
3871
- return {
3872
- "--tw-ring-color": (0, _toColorValue.default)(value)
3873
- };
3874
- }
3875
- return (0, _withAlphaVariable.default)({
3876
- color: value,
3877
- property: "--tw-ring-color",
3878
- variable: "--tw-ring-opacity"
3879
- });
3880
- }
3881
- }, {
3882
- values: Object.fromEntries(Object.entries((0, _flattenColorPalette.default)(theme("ringColor"))).filter(([modifier])=>modifier !== "DEFAULT")),
3883
- type: [
3884
- "color",
3885
- "any"
3886
- ]
3887
- });
3888
- },
3889
- ringOpacity: (helpers)=>{
3890
- let { config } = helpers;
3891
- return (0, _createUtilityPlugin.default)("ringOpacity", [
3892
- [
3893
- "ring-opacity",
3894
- [
3895
- "--tw-ring-opacity"
3896
- ]
3897
- ]
3898
- ], {
3899
- filterDefault: !(0, _featureFlags.flagEnabled)(config(), "respectDefaultRingColorOpacity")
3900
- })(helpers);
3901
- },
3902
- ringOffsetWidth: (0, _createUtilityPlugin.default)("ringOffsetWidth", [
3903
- [
3904
- "ring-offset",
3905
- [
3906
- "--tw-ring-offset-width"
3907
- ]
3908
- ]
3909
- ], {
3910
- type: "length"
3911
- }),
3912
- ringOffsetColor: ({ matchUtilities , theme })=>{
3913
- matchUtilities({
3914
- "ring-offset": (value)=>{
3915
- return {
3916
- "--tw-ring-offset-color": (0, _toColorValue.default)(value)
3917
- };
3918
- }
3919
- }, {
3920
- values: (0, _flattenColorPalette.default)(theme("ringOffsetColor")),
3921
- type: [
3922
- "color",
3923
- "any"
3924
- ]
3925
- });
3926
- },
3927
- blur: ({ matchUtilities , theme })=>{
3928
- matchUtilities({
3929
- blur: (value)=>{
3930
- return {
3931
- "--tw-blur": `blur(${value})`,
3932
- "@defaults filter": {},
3933
- filter: cssFilterValue
3934
- };
3935
- }
3936
- }, {
3937
- values: theme("blur")
3938
- });
3939
- },
3940
- brightness: ({ matchUtilities , theme })=>{
3941
- matchUtilities({
3942
- brightness: (value)=>{
3943
- return {
3944
- "--tw-brightness": `brightness(${value})`,
3945
- "@defaults filter": {},
3946
- filter: cssFilterValue
3947
- };
3948
- }
3949
- }, {
3950
- values: theme("brightness")
3951
- });
3952
- },
3953
- contrast: ({ matchUtilities , theme })=>{
3954
- matchUtilities({
3955
- contrast: (value)=>{
3956
- return {
3957
- "--tw-contrast": `contrast(${value})`,
3958
- "@defaults filter": {},
3959
- filter: cssFilterValue
3960
- };
3961
- }
3962
- }, {
3963
- values: theme("contrast")
3964
- });
3965
- },
3966
- dropShadow: ({ matchUtilities , theme })=>{
3967
- matchUtilities({
3968
- "drop-shadow": (value)=>{
3969
- return {
3970
- "--tw-drop-shadow": Array.isArray(value) ? value.map((v)=>`drop-shadow(${v})`).join(" ") : `drop-shadow(${value})`,
3971
- "@defaults filter": {},
3972
- filter: cssFilterValue
3973
- };
3974
- }
3975
- }, {
3976
- values: theme("dropShadow")
3977
- });
3978
- },
3979
- grayscale: ({ matchUtilities , theme })=>{
3980
- matchUtilities({
3981
- grayscale: (value)=>{
3982
- return {
3983
- "--tw-grayscale": `grayscale(${value})`,
3984
- "@defaults filter": {},
3985
- filter: cssFilterValue
3986
- };
3987
- }
3988
- }, {
3989
- values: theme("grayscale")
3990
- });
3991
- },
3992
- hueRotate: ({ matchUtilities , theme })=>{
3993
- matchUtilities({
3994
- "hue-rotate": (value)=>{
3995
- return {
3996
- "--tw-hue-rotate": `hue-rotate(${value})`,
3997
- "@defaults filter": {},
3998
- filter: cssFilterValue
3999
- };
4000
- }
4001
- }, {
4002
- values: theme("hueRotate"),
4003
- supportsNegativeValues: true
4004
- });
4005
- },
4006
- invert: ({ matchUtilities , theme })=>{
4007
- matchUtilities({
4008
- invert: (value)=>{
4009
- return {
4010
- "--tw-invert": `invert(${value})`,
4011
- "@defaults filter": {},
4012
- filter: cssFilterValue
4013
- };
4014
- }
4015
- }, {
4016
- values: theme("invert")
4017
- });
4018
- },
4019
- saturate: ({ matchUtilities , theme })=>{
4020
- matchUtilities({
4021
- saturate: (value)=>{
4022
- return {
4023
- "--tw-saturate": `saturate(${value})`,
4024
- "@defaults filter": {},
4025
- filter: cssFilterValue
4026
- };
4027
- }
4028
- }, {
4029
- values: theme("saturate")
4030
- });
4031
- },
4032
- sepia: ({ matchUtilities , theme })=>{
4033
- matchUtilities({
4034
- sepia: (value)=>{
4035
- return {
4036
- "--tw-sepia": `sepia(${value})`,
4037
- "@defaults filter": {},
4038
- filter: cssFilterValue
4039
- };
4040
- }
4041
- }, {
4042
- values: theme("sepia")
4043
- });
4044
- },
4045
- filter: ({ addDefaults , addUtilities })=>{
4046
- addDefaults("filter", {
4047
- "--tw-blur": " ",
4048
- "--tw-brightness": " ",
4049
- "--tw-contrast": " ",
4050
- "--tw-grayscale": " ",
4051
- "--tw-hue-rotate": " ",
4052
- "--tw-invert": " ",
4053
- "--tw-saturate": " ",
4054
- "--tw-sepia": " ",
4055
- "--tw-drop-shadow": " "
4056
- });
4057
- addUtilities({
4058
- ".filter": {
4059
- "@defaults filter": {},
4060
- filter: cssFilterValue
4061
- },
4062
- ".filter-none": {
4063
- filter: "none"
4064
- }
4065
- });
4066
- },
4067
- backdropBlur: ({ matchUtilities , theme })=>{
4068
- matchUtilities({
4069
- "backdrop-blur": (value)=>{
4070
- return {
4071
- "--tw-backdrop-blur": `blur(${value})`,
4072
- "@defaults backdrop-filter": {},
4073
- "backdrop-filter": cssBackdropFilterValue
4074
- };
4075
- }
4076
- }, {
4077
- values: theme("backdropBlur")
4078
- });
4079
- },
4080
- backdropBrightness: ({ matchUtilities , theme })=>{
4081
- matchUtilities({
4082
- "backdrop-brightness": (value)=>{
4083
- return {
4084
- "--tw-backdrop-brightness": `brightness(${value})`,
4085
- "@defaults backdrop-filter": {},
4086
- "backdrop-filter": cssBackdropFilterValue
4087
- };
4088
- }
4089
- }, {
4090
- values: theme("backdropBrightness")
4091
- });
4092
- },
4093
- backdropContrast: ({ matchUtilities , theme })=>{
4094
- matchUtilities({
4095
- "backdrop-contrast": (value)=>{
4096
- return {
4097
- "--tw-backdrop-contrast": `contrast(${value})`,
4098
- "@defaults backdrop-filter": {},
4099
- "backdrop-filter": cssBackdropFilterValue
4100
- };
4101
- }
4102
- }, {
4103
- values: theme("backdropContrast")
4104
- });
4105
- },
4106
- backdropGrayscale: ({ matchUtilities , theme })=>{
4107
- matchUtilities({
4108
- "backdrop-grayscale": (value)=>{
4109
- return {
4110
- "--tw-backdrop-grayscale": `grayscale(${value})`,
4111
- "@defaults backdrop-filter": {},
4112
- "backdrop-filter": cssBackdropFilterValue
4113
- };
4114
- }
4115
- }, {
4116
- values: theme("backdropGrayscale")
4117
- });
4118
- },
4119
- backdropHueRotate: ({ matchUtilities , theme })=>{
4120
- matchUtilities({
4121
- "backdrop-hue-rotate": (value)=>{
4122
- return {
4123
- "--tw-backdrop-hue-rotate": `hue-rotate(${value})`,
4124
- "@defaults backdrop-filter": {},
4125
- "backdrop-filter": cssBackdropFilterValue
4126
- };
4127
- }
4128
- }, {
4129
- values: theme("backdropHueRotate"),
4130
- supportsNegativeValues: true
4131
- });
4132
- },
4133
- backdropInvert: ({ matchUtilities , theme })=>{
4134
- matchUtilities({
4135
- "backdrop-invert": (value)=>{
4136
- return {
4137
- "--tw-backdrop-invert": `invert(${value})`,
4138
- "@defaults backdrop-filter": {},
4139
- "backdrop-filter": cssBackdropFilterValue
4140
- };
4141
- }
4142
- }, {
4143
- values: theme("backdropInvert")
4144
- });
4145
- },
4146
- backdropOpacity: ({ matchUtilities , theme })=>{
4147
- matchUtilities({
4148
- "backdrop-opacity": (value)=>{
4149
- return {
4150
- "--tw-backdrop-opacity": `opacity(${value})`,
4151
- "@defaults backdrop-filter": {},
4152
- "backdrop-filter": cssBackdropFilterValue
4153
- };
4154
- }
4155
- }, {
4156
- values: theme("backdropOpacity")
4157
- });
4158
- },
4159
- backdropSaturate: ({ matchUtilities , theme })=>{
4160
- matchUtilities({
4161
- "backdrop-saturate": (value)=>{
4162
- return {
4163
- "--tw-backdrop-saturate": `saturate(${value})`,
4164
- "@defaults backdrop-filter": {},
4165
- "backdrop-filter": cssBackdropFilterValue
4166
- };
4167
- }
4168
- }, {
4169
- values: theme("backdropSaturate")
4170
- });
4171
- },
4172
- backdropSepia: ({ matchUtilities , theme })=>{
4173
- matchUtilities({
4174
- "backdrop-sepia": (value)=>{
4175
- return {
4176
- "--tw-backdrop-sepia": `sepia(${value})`,
4177
- "@defaults backdrop-filter": {},
4178
- "backdrop-filter": cssBackdropFilterValue
4179
- };
4180
- }
4181
- }, {
4182
- values: theme("backdropSepia")
4183
- });
4184
- },
4185
- backdropFilter: ({ addDefaults , addUtilities })=>{
4186
- addDefaults("backdrop-filter", {
4187
- "--tw-backdrop-blur": " ",
4188
- "--tw-backdrop-brightness": " ",
4189
- "--tw-backdrop-contrast": " ",
4190
- "--tw-backdrop-grayscale": " ",
4191
- "--tw-backdrop-hue-rotate": " ",
4192
- "--tw-backdrop-invert": " ",
4193
- "--tw-backdrop-opacity": " ",
4194
- "--tw-backdrop-saturate": " ",
4195
- "--tw-backdrop-sepia": " "
4196
- });
4197
- addUtilities({
4198
- ".backdrop-filter": {
4199
- "@defaults backdrop-filter": {},
4200
- "backdrop-filter": cssBackdropFilterValue
4201
- },
4202
- ".backdrop-filter-none": {
4203
- "backdrop-filter": "none"
4204
- }
4205
- });
4206
- },
4207
- transitionProperty: ({ matchUtilities , theme })=>{
4208
- let defaultTimingFunction = theme("transitionTimingFunction.DEFAULT");
4209
- let defaultDuration = theme("transitionDuration.DEFAULT");
4210
- matchUtilities({
4211
- transition: (value)=>{
4212
- return {
4213
- "transition-property": value,
4214
- ...value === "none" ? {} : {
4215
- "transition-timing-function": defaultTimingFunction,
4216
- "transition-duration": defaultDuration
4217
- }
4218
- };
4219
- }
4220
- }, {
4221
- values: theme("transitionProperty")
4222
- });
4223
- },
4224
- transitionDelay: (0, _createUtilityPlugin.default)("transitionDelay", [
4225
- [
4226
- "delay",
4227
- [
4228
- "transitionDelay"
4229
- ]
4230
- ]
4231
- ]),
4232
- transitionDuration: (0, _createUtilityPlugin.default)("transitionDuration", [
4233
- [
4234
- "duration",
4235
- [
4236
- "transitionDuration"
4237
- ]
4238
- ]
4239
- ], {
4240
- filterDefault: true
4241
- }),
4242
- transitionTimingFunction: (0, _createUtilityPlugin.default)("transitionTimingFunction", [
4243
- [
4244
- "ease",
4245
- [
4246
- "transitionTimingFunction"
4247
- ]
4248
- ]
4249
- ], {
4250
- filterDefault: true
4251
- }),
4252
- willChange: (0, _createUtilityPlugin.default)("willChange", [
4253
- [
4254
- "will-change",
4255
- [
4256
- "will-change"
4257
- ]
4258
- ]
4259
- ]),
4260
- content: (0, _createUtilityPlugin.default)("content", [
4261
- [
4262
- "content",
4263
- [
4264
- "--tw-content",
4265
- [
4266
- "content",
4267
- "var(--tw-content)"
4268
- ]
4269
- ]
4270
- ]
4271
- ]),
4272
- forcedColorAdjust: ({ addUtilities })=>{
4273
- addUtilities({
4274
- ".forced-color-adjust-auto": {
4275
- "forced-color-adjust": "auto"
4276
- },
4277
- ".forced-color-adjust-none": {
4278
- "forced-color-adjust": "none"
4279
- }
4280
- });
4281
- }
4282
- };