@meetreeve/ui 0.25.0 → 0.30.0

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.
@@ -0,0 +1,3436 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/button.tsx
31
+ var button_exports = {};
32
+ __export(button_exports, {
33
+ Button: () => Button,
34
+ buttonVariants: () => buttonVariants
35
+ });
36
+ module.exports = __toCommonJS(button_exports);
37
+ var React = __toESM(require("react"));
38
+ var import_react_slot = require("@radix-ui/react-slot");
39
+
40
+ // node_modules/clsx/dist/clsx.mjs
41
+ function r(e) {
42
+ var t, f, n = "";
43
+ if ("string" == typeof e || "number" == typeof e) n += e;
44
+ else if ("object" == typeof e) if (Array.isArray(e)) {
45
+ var o = e.length;
46
+ for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
47
+ } else for (f in e) e[f] && (n && (n += " "), n += f);
48
+ return n;
49
+ }
50
+ function clsx() {
51
+ for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
52
+ return n;
53
+ }
54
+
55
+ // node_modules/class-variance-authority/dist/index.mjs
56
+ var falsyToString = (value) => typeof value === "boolean" ? `${value}` : value === 0 ? "0" : value;
57
+ var cx = clsx;
58
+ var cva = (base, config) => (props) => {
59
+ var _config_compoundVariants;
60
+ if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
61
+ const { variants, defaultVariants } = config;
62
+ const getVariantClassNames = Object.keys(variants).map((variant) => {
63
+ const variantProp = props === null || props === void 0 ? void 0 : props[variant];
64
+ const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
65
+ if (variantProp === null) return null;
66
+ const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
67
+ return variants[variant][variantKey];
68
+ });
69
+ const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param) => {
70
+ let [key, value] = param;
71
+ if (value === void 0) {
72
+ return acc;
73
+ }
74
+ acc[key] = value;
75
+ return acc;
76
+ }, {});
77
+ const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param) => {
78
+ let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;
79
+ return Object.entries(compoundVariantOptions).every((param2) => {
80
+ let [key, value] = param2;
81
+ return Array.isArray(value) ? value.includes({
82
+ ...defaultVariants,
83
+ ...propsWithoutUndefined
84
+ }[key]) : {
85
+ ...defaultVariants,
86
+ ...propsWithoutUndefined
87
+ }[key] === value;
88
+ }) ? [
89
+ ...acc,
90
+ cvClass,
91
+ cvClassName
92
+ ] : acc;
93
+ }, []);
94
+ return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
95
+ };
96
+
97
+ // src/button.tsx
98
+ var import_button_client = require("@meetreeve/ui/button-client");
99
+
100
+ // node_modules/tailwind-merge/dist/bundle-mjs.mjs
101
+ var concatArrays = (array1, array2) => {
102
+ const combinedArray = new Array(array1.length + array2.length);
103
+ for (let i = 0; i < array1.length; i++) {
104
+ combinedArray[i] = array1[i];
105
+ }
106
+ for (let i = 0; i < array2.length; i++) {
107
+ combinedArray[array1.length + i] = array2[i];
108
+ }
109
+ return combinedArray;
110
+ };
111
+ var createClassValidatorObject = (classGroupId, validator) => ({
112
+ classGroupId,
113
+ validator
114
+ });
115
+ var createClassPartObject = (nextPart = /* @__PURE__ */ new Map(), validators = null, classGroupId) => ({
116
+ nextPart,
117
+ validators,
118
+ classGroupId
119
+ });
120
+ var CLASS_PART_SEPARATOR = "-";
121
+ var EMPTY_CONFLICTS = [];
122
+ var ARBITRARY_PROPERTY_PREFIX = "arbitrary..";
123
+ var createClassGroupUtils = (config) => {
124
+ const classMap = createClassMap(config);
125
+ const {
126
+ conflictingClassGroups,
127
+ conflictingClassGroupModifiers
128
+ } = config;
129
+ const getClassGroupId = (className) => {
130
+ if (className.startsWith("[") && className.endsWith("]")) {
131
+ return getGroupIdForArbitraryProperty(className);
132
+ }
133
+ const classParts = className.split(CLASS_PART_SEPARATOR);
134
+ const startIndex = classParts[0] === "" && classParts.length > 1 ? 1 : 0;
135
+ return getGroupRecursive(classParts, startIndex, classMap);
136
+ };
137
+ const getConflictingClassGroupIds = (classGroupId, hasPostfixModifier) => {
138
+ if (hasPostfixModifier) {
139
+ const modifierConflicts = conflictingClassGroupModifiers[classGroupId];
140
+ const baseConflicts = conflictingClassGroups[classGroupId];
141
+ if (modifierConflicts) {
142
+ if (baseConflicts) {
143
+ return concatArrays(baseConflicts, modifierConflicts);
144
+ }
145
+ return modifierConflicts;
146
+ }
147
+ return baseConflicts || EMPTY_CONFLICTS;
148
+ }
149
+ return conflictingClassGroups[classGroupId] || EMPTY_CONFLICTS;
150
+ };
151
+ return {
152
+ getClassGroupId,
153
+ getConflictingClassGroupIds
154
+ };
155
+ };
156
+ var getGroupRecursive = (classParts, startIndex, classPartObject) => {
157
+ const classPathsLength = classParts.length - startIndex;
158
+ if (classPathsLength === 0) {
159
+ return classPartObject.classGroupId;
160
+ }
161
+ const currentClassPart = classParts[startIndex];
162
+ const nextClassPartObject = classPartObject.nextPart.get(currentClassPart);
163
+ if (nextClassPartObject) {
164
+ const result = getGroupRecursive(classParts, startIndex + 1, nextClassPartObject);
165
+ if (result) return result;
166
+ }
167
+ const validators = classPartObject.validators;
168
+ if (validators === null) {
169
+ return void 0;
170
+ }
171
+ const classRest = startIndex === 0 ? classParts.join(CLASS_PART_SEPARATOR) : classParts.slice(startIndex).join(CLASS_PART_SEPARATOR);
172
+ const validatorsLength = validators.length;
173
+ for (let i = 0; i < validatorsLength; i++) {
174
+ const validatorObj = validators[i];
175
+ if (validatorObj.validator(classRest)) {
176
+ return validatorObj.classGroupId;
177
+ }
178
+ }
179
+ return void 0;
180
+ };
181
+ var getGroupIdForArbitraryProperty = (className) => className.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
182
+ const content = className.slice(1, -1);
183
+ const colonIndex = content.indexOf(":");
184
+ const property = content.slice(0, colonIndex);
185
+ return property ? ARBITRARY_PROPERTY_PREFIX + property : void 0;
186
+ })();
187
+ var createClassMap = (config) => {
188
+ const {
189
+ theme,
190
+ classGroups
191
+ } = config;
192
+ return processClassGroups(classGroups, theme);
193
+ };
194
+ var processClassGroups = (classGroups, theme) => {
195
+ const classMap = createClassPartObject();
196
+ for (const classGroupId in classGroups) {
197
+ const group = classGroups[classGroupId];
198
+ processClassesRecursively(group, classMap, classGroupId, theme);
199
+ }
200
+ return classMap;
201
+ };
202
+ var processClassesRecursively = (classGroup, classPartObject, classGroupId, theme) => {
203
+ const len = classGroup.length;
204
+ for (let i = 0; i < len; i++) {
205
+ const classDefinition = classGroup[i];
206
+ processClassDefinition(classDefinition, classPartObject, classGroupId, theme);
207
+ }
208
+ };
209
+ var processClassDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
210
+ if (typeof classDefinition === "string") {
211
+ processStringDefinition(classDefinition, classPartObject, classGroupId);
212
+ return;
213
+ }
214
+ if (typeof classDefinition === "function") {
215
+ processFunctionDefinition(classDefinition, classPartObject, classGroupId, theme);
216
+ return;
217
+ }
218
+ processObjectDefinition(classDefinition, classPartObject, classGroupId, theme);
219
+ };
220
+ var processStringDefinition = (classDefinition, classPartObject, classGroupId) => {
221
+ const classPartObjectToEdit = classDefinition === "" ? classPartObject : getPart(classPartObject, classDefinition);
222
+ classPartObjectToEdit.classGroupId = classGroupId;
223
+ };
224
+ var processFunctionDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
225
+ if (isThemeGetter(classDefinition)) {
226
+ processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);
227
+ return;
228
+ }
229
+ if (classPartObject.validators === null) {
230
+ classPartObject.validators = [];
231
+ }
232
+ classPartObject.validators.push(createClassValidatorObject(classGroupId, classDefinition));
233
+ };
234
+ var processObjectDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
235
+ const entries = Object.entries(classDefinition);
236
+ const len = entries.length;
237
+ for (let i = 0; i < len; i++) {
238
+ const [key, value] = entries[i];
239
+ processClassesRecursively(value, getPart(classPartObject, key), classGroupId, theme);
240
+ }
241
+ };
242
+ var getPart = (classPartObject, path) => {
243
+ let current = classPartObject;
244
+ const parts = path.split(CLASS_PART_SEPARATOR);
245
+ const len = parts.length;
246
+ for (let i = 0; i < len; i++) {
247
+ const part = parts[i];
248
+ let next = current.nextPart.get(part);
249
+ if (!next) {
250
+ next = createClassPartObject();
251
+ current.nextPart.set(part, next);
252
+ }
253
+ current = next;
254
+ }
255
+ return current;
256
+ };
257
+ var isThemeGetter = (func) => "isThemeGetter" in func && func.isThemeGetter === true;
258
+ var createLruCache = (maxCacheSize) => {
259
+ if (maxCacheSize < 1) {
260
+ return {
261
+ get: () => void 0,
262
+ set: () => {
263
+ }
264
+ };
265
+ }
266
+ let cacheSize = 0;
267
+ let cache = /* @__PURE__ */ Object.create(null);
268
+ let previousCache = /* @__PURE__ */ Object.create(null);
269
+ const update = (key, value) => {
270
+ cache[key] = value;
271
+ cacheSize++;
272
+ if (cacheSize > maxCacheSize) {
273
+ cacheSize = 0;
274
+ previousCache = cache;
275
+ cache = /* @__PURE__ */ Object.create(null);
276
+ }
277
+ };
278
+ return {
279
+ get(key) {
280
+ let value = cache[key];
281
+ if (value !== void 0) {
282
+ return value;
283
+ }
284
+ if ((value = previousCache[key]) !== void 0) {
285
+ update(key, value);
286
+ return value;
287
+ }
288
+ },
289
+ set(key, value) {
290
+ if (key in cache) {
291
+ cache[key] = value;
292
+ } else {
293
+ update(key, value);
294
+ }
295
+ }
296
+ };
297
+ };
298
+ var IMPORTANT_MODIFIER = "!";
299
+ var MODIFIER_SEPARATOR = ":";
300
+ var EMPTY_MODIFIERS = [];
301
+ var createResultObject = (modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition, isExternal) => ({
302
+ modifiers,
303
+ hasImportantModifier,
304
+ baseClassName,
305
+ maybePostfixModifierPosition,
306
+ isExternal
307
+ });
308
+ var createParseClassName = (config) => {
309
+ const {
310
+ prefix,
311
+ experimentalParseClassName
312
+ } = config;
313
+ let parseClassName = (className) => {
314
+ const modifiers = [];
315
+ let bracketDepth = 0;
316
+ let parenDepth = 0;
317
+ let modifierStart = 0;
318
+ let postfixModifierPosition;
319
+ const len = className.length;
320
+ for (let index = 0; index < len; index++) {
321
+ const currentCharacter = className[index];
322
+ if (bracketDepth === 0 && parenDepth === 0) {
323
+ if (currentCharacter === MODIFIER_SEPARATOR) {
324
+ modifiers.push(className.slice(modifierStart, index));
325
+ modifierStart = index + 1;
326
+ continue;
327
+ }
328
+ if (currentCharacter === "/") {
329
+ postfixModifierPosition = index;
330
+ continue;
331
+ }
332
+ }
333
+ if (currentCharacter === "[") bracketDepth++;
334
+ else if (currentCharacter === "]") bracketDepth--;
335
+ else if (currentCharacter === "(") parenDepth++;
336
+ else if (currentCharacter === ")") parenDepth--;
337
+ }
338
+ const baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.slice(modifierStart);
339
+ let baseClassName = baseClassNameWithImportantModifier;
340
+ let hasImportantModifier = false;
341
+ if (baseClassNameWithImportantModifier.endsWith(IMPORTANT_MODIFIER)) {
342
+ baseClassName = baseClassNameWithImportantModifier.slice(0, -1);
343
+ hasImportantModifier = true;
344
+ } else if (
345
+ /**
346
+ * In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
347
+ * @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
348
+ */
349
+ baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER)
350
+ ) {
351
+ baseClassName = baseClassNameWithImportantModifier.slice(1);
352
+ hasImportantModifier = true;
353
+ }
354
+ const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : void 0;
355
+ return createResultObject(modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition);
356
+ };
357
+ if (prefix) {
358
+ const fullPrefix = prefix + MODIFIER_SEPARATOR;
359
+ const parseClassNameOriginal = parseClassName;
360
+ parseClassName = (className) => className.startsWith(fullPrefix) ? parseClassNameOriginal(className.slice(fullPrefix.length)) : createResultObject(EMPTY_MODIFIERS, false, className, void 0, true);
361
+ }
362
+ if (experimentalParseClassName) {
363
+ const parseClassNameOriginal = parseClassName;
364
+ parseClassName = (className) => experimentalParseClassName({
365
+ className,
366
+ parseClassName: parseClassNameOriginal
367
+ });
368
+ }
369
+ return parseClassName;
370
+ };
371
+ var createSortModifiers = (config) => {
372
+ const modifierWeights = /* @__PURE__ */ new Map();
373
+ config.orderSensitiveModifiers.forEach((mod, index) => {
374
+ modifierWeights.set(mod, 1e6 + index);
375
+ });
376
+ return (modifiers) => {
377
+ const result = [];
378
+ let currentSegment = [];
379
+ for (let i = 0; i < modifiers.length; i++) {
380
+ const modifier = modifiers[i];
381
+ const isArbitrary = modifier[0] === "[";
382
+ const isOrderSensitive = modifierWeights.has(modifier);
383
+ if (isArbitrary || isOrderSensitive) {
384
+ if (currentSegment.length > 0) {
385
+ currentSegment.sort();
386
+ result.push(...currentSegment);
387
+ currentSegment = [];
388
+ }
389
+ result.push(modifier);
390
+ } else {
391
+ currentSegment.push(modifier);
392
+ }
393
+ }
394
+ if (currentSegment.length > 0) {
395
+ currentSegment.sort();
396
+ result.push(...currentSegment);
397
+ }
398
+ return result;
399
+ };
400
+ };
401
+ var createConfigUtils = (config) => ({
402
+ cache: createLruCache(config.cacheSize),
403
+ parseClassName: createParseClassName(config),
404
+ sortModifiers: createSortModifiers(config),
405
+ postfixLookupClassGroupIds: createPostfixLookupClassGroupIds(config),
406
+ ...createClassGroupUtils(config)
407
+ });
408
+ var createPostfixLookupClassGroupIds = (config) => {
409
+ const lookup = /* @__PURE__ */ Object.create(null);
410
+ const classGroupIds = config.postfixLookupClassGroups;
411
+ if (classGroupIds) {
412
+ for (let i = 0; i < classGroupIds.length; i++) {
413
+ lookup[classGroupIds[i]] = true;
414
+ }
415
+ }
416
+ return lookup;
417
+ };
418
+ var SPLIT_CLASSES_REGEX = /\s+/;
419
+ var mergeClassList = (classList, configUtils) => {
420
+ const {
421
+ parseClassName,
422
+ getClassGroupId,
423
+ getConflictingClassGroupIds,
424
+ sortModifiers,
425
+ postfixLookupClassGroupIds
426
+ } = configUtils;
427
+ const classGroupsInConflict = [];
428
+ const classNames = classList.trim().split(SPLIT_CLASSES_REGEX);
429
+ let result = "";
430
+ for (let index = classNames.length - 1; index >= 0; index -= 1) {
431
+ const originalClassName = classNames[index];
432
+ const {
433
+ isExternal,
434
+ modifiers,
435
+ hasImportantModifier,
436
+ baseClassName,
437
+ maybePostfixModifierPosition
438
+ } = parseClassName(originalClassName);
439
+ if (isExternal) {
440
+ result = originalClassName + (result.length > 0 ? " " + result : result);
441
+ continue;
442
+ }
443
+ let hasPostfixModifier = !!maybePostfixModifierPosition;
444
+ let classGroupId;
445
+ if (hasPostfixModifier) {
446
+ const baseClassNameWithoutPostfix = baseClassName.substring(0, maybePostfixModifierPosition);
447
+ classGroupId = getClassGroupId(baseClassNameWithoutPostfix);
448
+ const classGroupIdWithPostfix = classGroupId && postfixLookupClassGroupIds[classGroupId] ? getClassGroupId(baseClassName) : void 0;
449
+ if (classGroupIdWithPostfix && classGroupIdWithPostfix !== classGroupId) {
450
+ classGroupId = classGroupIdWithPostfix;
451
+ hasPostfixModifier = false;
452
+ }
453
+ } else {
454
+ classGroupId = getClassGroupId(baseClassName);
455
+ }
456
+ if (!classGroupId) {
457
+ if (!hasPostfixModifier) {
458
+ result = originalClassName + (result.length > 0 ? " " + result : result);
459
+ continue;
460
+ }
461
+ classGroupId = getClassGroupId(baseClassName);
462
+ if (!classGroupId) {
463
+ result = originalClassName + (result.length > 0 ? " " + result : result);
464
+ continue;
465
+ }
466
+ hasPostfixModifier = false;
467
+ }
468
+ const variantModifier = modifiers.length === 0 ? "" : modifiers.length === 1 ? modifiers[0] : sortModifiers(modifiers).join(":");
469
+ const modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;
470
+ const classId = modifierId + classGroupId;
471
+ if (classGroupsInConflict.indexOf(classId) > -1) {
472
+ continue;
473
+ }
474
+ classGroupsInConflict.push(classId);
475
+ const conflictGroups = getConflictingClassGroupIds(classGroupId, hasPostfixModifier);
476
+ for (let i = 0; i < conflictGroups.length; ++i) {
477
+ const group = conflictGroups[i];
478
+ classGroupsInConflict.push(modifierId + group);
479
+ }
480
+ result = originalClassName + (result.length > 0 ? " " + result : result);
481
+ }
482
+ return result;
483
+ };
484
+ var twJoin = (...classLists) => {
485
+ let index = 0;
486
+ let argument;
487
+ let resolvedValue;
488
+ let string = "";
489
+ while (index < classLists.length) {
490
+ if (argument = classLists[index++]) {
491
+ if (resolvedValue = toValue(argument)) {
492
+ string && (string += " ");
493
+ string += resolvedValue;
494
+ }
495
+ }
496
+ }
497
+ return string;
498
+ };
499
+ var toValue = (mix) => {
500
+ if (typeof mix === "string") {
501
+ return mix;
502
+ }
503
+ let resolvedValue;
504
+ let string = "";
505
+ for (let k = 0; k < mix.length; k++) {
506
+ if (mix[k]) {
507
+ if (resolvedValue = toValue(mix[k])) {
508
+ string && (string += " ");
509
+ string += resolvedValue;
510
+ }
511
+ }
512
+ }
513
+ return string;
514
+ };
515
+ var createTailwindMerge = (createConfigFirst, ...createConfigRest) => {
516
+ let configUtils;
517
+ let cacheGet;
518
+ let cacheSet;
519
+ let functionToCall;
520
+ const initTailwindMerge = (classList) => {
521
+ const config = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());
522
+ configUtils = createConfigUtils(config);
523
+ cacheGet = configUtils.cache.get;
524
+ cacheSet = configUtils.cache.set;
525
+ functionToCall = tailwindMerge;
526
+ return tailwindMerge(classList);
527
+ };
528
+ const tailwindMerge = (classList) => {
529
+ const cachedResult = cacheGet(classList);
530
+ if (cachedResult) {
531
+ return cachedResult;
532
+ }
533
+ const result = mergeClassList(classList, configUtils);
534
+ cacheSet(classList, result);
535
+ return result;
536
+ };
537
+ functionToCall = initTailwindMerge;
538
+ return (...args) => functionToCall(twJoin(...args));
539
+ };
540
+ var fallbackThemeArr = [];
541
+ var fromTheme = (key) => {
542
+ const themeGetter = (theme) => theme[key] || fallbackThemeArr;
543
+ themeGetter.isThemeGetter = true;
544
+ return themeGetter;
545
+ };
546
+ var arbitraryValueRegex = /^\[(?:(\w[\w-]*):)?(.+)\]$/i;
547
+ var arbitraryVariableRegex = /^\((?:(\w[\w-]*):)?(.+)\)$/i;
548
+ var fractionRegex = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/;
549
+ var tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
550
+ var lengthUnitRegex = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/;
551
+ var colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/;
552
+ var shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
553
+ var imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
554
+ var isFraction = (value) => fractionRegex.test(value);
555
+ var isNumber = (value) => !!value && !Number.isNaN(Number(value));
556
+ var isInteger = (value) => !!value && Number.isInteger(Number(value));
557
+ var isPercent = (value) => value.endsWith("%") && isNumber(value.slice(0, -1));
558
+ var isTshirtSize = (value) => tshirtUnitRegex.test(value);
559
+ var isAny = () => true;
560
+ var isLengthOnly = (value) => (
561
+ // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
562
+ // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
563
+ // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
564
+ lengthUnitRegex.test(value) && !colorFunctionRegex.test(value)
565
+ );
566
+ var isNever = () => false;
567
+ var isShadow = (value) => shadowRegex.test(value);
568
+ var isImage = (value) => imageRegex.test(value);
569
+ var isAnyNonArbitrary = (value) => !isArbitraryValue(value) && !isArbitraryVariable(value);
570
+ var isNamedContainerQuery = (value) => value.startsWith("@container") && (value[10] === "/" && value[11] !== void 0 || value[11] === "s" && value[16] !== void 0 && value.startsWith("-size/", 10) || value[11] === "n" && value[18] !== void 0 && value.startsWith("-normal/", 10));
571
+ var isArbitrarySize = (value) => getIsArbitraryValue(value, isLabelSize, isNever);
572
+ var isArbitraryValue = (value) => arbitraryValueRegex.test(value);
573
+ var isArbitraryLength = (value) => getIsArbitraryValue(value, isLabelLength, isLengthOnly);
574
+ var isArbitraryNumber = (value) => getIsArbitraryValue(value, isLabelNumber, isNumber);
575
+ var isArbitraryWeight = (value) => getIsArbitraryValue(value, isLabelWeight, isAny);
576
+ var isArbitraryFamilyName = (value) => getIsArbitraryValue(value, isLabelFamilyName, isNever);
577
+ var isArbitraryPosition = (value) => getIsArbitraryValue(value, isLabelPosition, isNever);
578
+ var isArbitraryImage = (value) => getIsArbitraryValue(value, isLabelImage, isImage);
579
+ var isArbitraryShadow = (value) => getIsArbitraryValue(value, isLabelShadow, isShadow);
580
+ var isArbitraryVariable = (value) => arbitraryVariableRegex.test(value);
581
+ var isArbitraryVariableLength = (value) => getIsArbitraryVariable(value, isLabelLength);
582
+ var isArbitraryVariableFamilyName = (value) => getIsArbitraryVariable(value, isLabelFamilyName);
583
+ var isArbitraryVariablePosition = (value) => getIsArbitraryVariable(value, isLabelPosition);
584
+ var isArbitraryVariableSize = (value) => getIsArbitraryVariable(value, isLabelSize);
585
+ var isArbitraryVariableImage = (value) => getIsArbitraryVariable(value, isLabelImage);
586
+ var isArbitraryVariableShadow = (value) => getIsArbitraryVariable(value, isLabelShadow, true);
587
+ var isArbitraryVariableWeight = (value) => getIsArbitraryVariable(value, isLabelWeight, true);
588
+ var getIsArbitraryValue = (value, testLabel, testValue) => {
589
+ const result = arbitraryValueRegex.exec(value);
590
+ if (result) {
591
+ if (result[1]) {
592
+ return testLabel(result[1]);
593
+ }
594
+ return testValue(result[2]);
595
+ }
596
+ return false;
597
+ };
598
+ var getIsArbitraryVariable = (value, testLabel, shouldMatchNoLabel = false) => {
599
+ const result = arbitraryVariableRegex.exec(value);
600
+ if (result) {
601
+ if (result[1]) {
602
+ return testLabel(result[1]);
603
+ }
604
+ return shouldMatchNoLabel;
605
+ }
606
+ return false;
607
+ };
608
+ var isLabelPosition = (label) => label === "position" || label === "percentage";
609
+ var isLabelImage = (label) => label === "image" || label === "url";
610
+ var isLabelSize = (label) => label === "length" || label === "size" || label === "bg-size";
611
+ var isLabelLength = (label) => label === "length";
612
+ var isLabelNumber = (label) => label === "number";
613
+ var isLabelFamilyName = (label) => label === "family-name";
614
+ var isLabelWeight = (label) => label === "number" || label === "weight";
615
+ var isLabelShadow = (label) => label === "shadow";
616
+ var getDefaultConfig = () => {
617
+ const themeColor = fromTheme("color");
618
+ const themeFont = fromTheme("font");
619
+ const themeText = fromTheme("text");
620
+ const themeFontWeight = fromTheme("font-weight");
621
+ const themeTracking = fromTheme("tracking");
622
+ const themeLeading = fromTheme("leading");
623
+ const themeBreakpoint = fromTheme("breakpoint");
624
+ const themeContainer = fromTheme("container");
625
+ const themeSpacing = fromTheme("spacing");
626
+ const themeRadius = fromTheme("radius");
627
+ const themeShadow = fromTheme("shadow");
628
+ const themeInsetShadow = fromTheme("inset-shadow");
629
+ const themeTextShadow = fromTheme("text-shadow");
630
+ const themeDropShadow = fromTheme("drop-shadow");
631
+ const themeBlur = fromTheme("blur");
632
+ const themePerspective = fromTheme("perspective");
633
+ const themeAspect = fromTheme("aspect");
634
+ const themeEase = fromTheme("ease");
635
+ const themeAnimate = fromTheme("animate");
636
+ const scaleBreak = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"];
637
+ const scalePosition = () => [
638
+ "center",
639
+ "top",
640
+ "bottom",
641
+ "left",
642
+ "right",
643
+ "top-left",
644
+ // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
645
+ "left-top",
646
+ "top-right",
647
+ // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
648
+ "right-top",
649
+ "bottom-right",
650
+ // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
651
+ "right-bottom",
652
+ "bottom-left",
653
+ // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
654
+ "left-bottom"
655
+ ];
656
+ const scalePositionWithArbitrary = () => [...scalePosition(), isArbitraryVariable, isArbitraryValue];
657
+ const scaleOverflow = () => ["auto", "hidden", "clip", "visible", "scroll"];
658
+ const scaleOverscroll = () => ["auto", "contain", "none"];
659
+ const scaleUnambiguousSpacing = () => [isArbitraryVariable, isArbitraryValue, themeSpacing];
660
+ const scaleInset = () => [isFraction, "full", "auto", ...scaleUnambiguousSpacing()];
661
+ const scaleGridTemplateColsRows = () => [isInteger, "none", "subgrid", isArbitraryVariable, isArbitraryValue];
662
+ const scaleGridColRowStartAndEnd = () => ["auto", {
663
+ span: ["full", isInteger, isArbitraryVariable, isArbitraryValue]
664
+ }, isInteger, isArbitraryVariable, isArbitraryValue];
665
+ const scaleGridColRowStartOrEnd = () => [isInteger, "auto", isArbitraryVariable, isArbitraryValue];
666
+ const scaleGridAutoColsRows = () => ["auto", "min", "max", "fr", isArbitraryVariable, isArbitraryValue];
667
+ const scaleAlignPrimaryAxis = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"];
668
+ const scaleAlignSecondaryAxis = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"];
669
+ const scaleMargin = () => ["auto", ...scaleUnambiguousSpacing()];
670
+ const scaleSizing = () => [isFraction, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...scaleUnambiguousSpacing()];
671
+ const scaleSizingInline = () => [isFraction, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...scaleUnambiguousSpacing()];
672
+ const scaleSizingBlock = () => [isFraction, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...scaleUnambiguousSpacing()];
673
+ const scaleColor = () => [themeColor, isArbitraryVariable, isArbitraryValue];
674
+ const scaleBgPosition = () => [...scalePosition(), isArbitraryVariablePosition, isArbitraryPosition, {
675
+ position: [isArbitraryVariable, isArbitraryValue]
676
+ }];
677
+ const scaleBgRepeat = () => ["no-repeat", {
678
+ repeat: ["", "x", "y", "space", "round"]
679
+ }];
680
+ const scaleBgSize = () => ["auto", "cover", "contain", isArbitraryVariableSize, isArbitrarySize, {
681
+ size: [isArbitraryVariable, isArbitraryValue]
682
+ }];
683
+ const scaleGradientStopPosition = () => [isPercent, isArbitraryVariableLength, isArbitraryLength];
684
+ const scaleRadius = () => [
685
+ // Deprecated since Tailwind CSS v4.0.0
686
+ "",
687
+ "none",
688
+ "full",
689
+ themeRadius,
690
+ isArbitraryVariable,
691
+ isArbitraryValue
692
+ ];
693
+ const scaleBorderWidth = () => ["", isNumber, isArbitraryVariableLength, isArbitraryLength];
694
+ const scaleLineStyle = () => ["solid", "dashed", "dotted", "double"];
695
+ const scaleBlendMode = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"];
696
+ const scaleMaskImagePosition = () => [isNumber, isPercent, isArbitraryVariablePosition, isArbitraryPosition];
697
+ const scaleBlur = () => [
698
+ // Deprecated since Tailwind CSS v4.0.0
699
+ "",
700
+ "none",
701
+ themeBlur,
702
+ isArbitraryVariable,
703
+ isArbitraryValue
704
+ ];
705
+ const scaleRotate = () => ["none", isNumber, isArbitraryVariable, isArbitraryValue];
706
+ const scaleScale = () => ["none", isNumber, isArbitraryVariable, isArbitraryValue];
707
+ const scaleSkew = () => [isNumber, isArbitraryVariable, isArbitraryValue];
708
+ const scaleTranslate = () => [isFraction, "full", ...scaleUnambiguousSpacing()];
709
+ return {
710
+ cacheSize: 500,
711
+ theme: {
712
+ animate: ["spin", "ping", "pulse", "bounce"],
713
+ aspect: ["video"],
714
+ blur: [isTshirtSize],
715
+ breakpoint: [isTshirtSize],
716
+ color: [isAny],
717
+ container: [isTshirtSize],
718
+ "drop-shadow": [isTshirtSize],
719
+ ease: ["in", "out", "in-out"],
720
+ font: [isAnyNonArbitrary],
721
+ "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
722
+ "inset-shadow": [isTshirtSize],
723
+ leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
724
+ perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
725
+ radius: [isTshirtSize],
726
+ shadow: [isTshirtSize],
727
+ spacing: ["px", isNumber],
728
+ text: [isTshirtSize],
729
+ "text-shadow": [isTshirtSize],
730
+ tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
731
+ },
732
+ classGroups: {
733
+ // --------------
734
+ // --- Layout ---
735
+ // --------------
736
+ /**
737
+ * Aspect Ratio
738
+ * @see https://tailwindcss.com/docs/aspect-ratio
739
+ */
740
+ aspect: [{
741
+ aspect: ["auto", "square", isFraction, isArbitraryValue, isArbitraryVariable, themeAspect]
742
+ }],
743
+ /**
744
+ * Container
745
+ * @see https://tailwindcss.com/docs/container
746
+ * @deprecated since Tailwind CSS v4.0.0
747
+ */
748
+ container: ["container"],
749
+ /**
750
+ * Container Type
751
+ * @see https://tailwindcss.com/docs/responsive-design#container-queries
752
+ */
753
+ "container-type": [{
754
+ "@container": ["", "normal", "size", isArbitraryVariable, isArbitraryValue]
755
+ }],
756
+ /**
757
+ * Container Name
758
+ * @see https://tailwindcss.com/docs/responsive-design#named-containers
759
+ */
760
+ "container-named": [isNamedContainerQuery],
761
+ /**
762
+ * Columns
763
+ * @see https://tailwindcss.com/docs/columns
764
+ */
765
+ columns: [{
766
+ columns: [isNumber, isArbitraryValue, isArbitraryVariable, themeContainer]
767
+ }],
768
+ /**
769
+ * Break After
770
+ * @see https://tailwindcss.com/docs/break-after
771
+ */
772
+ "break-after": [{
773
+ "break-after": scaleBreak()
774
+ }],
775
+ /**
776
+ * Break Before
777
+ * @see https://tailwindcss.com/docs/break-before
778
+ */
779
+ "break-before": [{
780
+ "break-before": scaleBreak()
781
+ }],
782
+ /**
783
+ * Break Inside
784
+ * @see https://tailwindcss.com/docs/break-inside
785
+ */
786
+ "break-inside": [{
787
+ "break-inside": ["auto", "avoid", "avoid-page", "avoid-column"]
788
+ }],
789
+ /**
790
+ * Box Decoration Break
791
+ * @see https://tailwindcss.com/docs/box-decoration-break
792
+ */
793
+ "box-decoration": [{
794
+ "box-decoration": ["slice", "clone"]
795
+ }],
796
+ /**
797
+ * Box Sizing
798
+ * @see https://tailwindcss.com/docs/box-sizing
799
+ */
800
+ box: [{
801
+ box: ["border", "content"]
802
+ }],
803
+ /**
804
+ * Display
805
+ * @see https://tailwindcss.com/docs/display
806
+ */
807
+ display: ["block", "inline-block", "inline", "flex", "inline-flex", "table", "inline-table", "table-caption", "table-cell", "table-column", "table-column-group", "table-footer-group", "table-header-group", "table-row-group", "table-row", "flow-root", "grid", "inline-grid", "contents", "list-item", "hidden"],
808
+ /**
809
+ * Screen Reader Only
810
+ * @see https://tailwindcss.com/docs/display#screen-reader-only
811
+ */
812
+ sr: ["sr-only", "not-sr-only"],
813
+ /**
814
+ * Floats
815
+ * @see https://tailwindcss.com/docs/float
816
+ */
817
+ float: [{
818
+ float: ["right", "left", "none", "start", "end"]
819
+ }],
820
+ /**
821
+ * Clear
822
+ * @see https://tailwindcss.com/docs/clear
823
+ */
824
+ clear: [{
825
+ clear: ["left", "right", "both", "none", "start", "end"]
826
+ }],
827
+ /**
828
+ * Isolation
829
+ * @see https://tailwindcss.com/docs/isolation
830
+ */
831
+ isolation: ["isolate", "isolation-auto"],
832
+ /**
833
+ * Object Fit
834
+ * @see https://tailwindcss.com/docs/object-fit
835
+ */
836
+ "object-fit": [{
837
+ object: ["contain", "cover", "fill", "none", "scale-down"]
838
+ }],
839
+ /**
840
+ * Object Position
841
+ * @see https://tailwindcss.com/docs/object-position
842
+ */
843
+ "object-position": [{
844
+ object: scalePositionWithArbitrary()
845
+ }],
846
+ /**
847
+ * Overflow
848
+ * @see https://tailwindcss.com/docs/overflow
849
+ */
850
+ overflow: [{
851
+ overflow: scaleOverflow()
852
+ }],
853
+ /**
854
+ * Overflow X
855
+ * @see https://tailwindcss.com/docs/overflow
856
+ */
857
+ "overflow-x": [{
858
+ "overflow-x": scaleOverflow()
859
+ }],
860
+ /**
861
+ * Overflow Y
862
+ * @see https://tailwindcss.com/docs/overflow
863
+ */
864
+ "overflow-y": [{
865
+ "overflow-y": scaleOverflow()
866
+ }],
867
+ /**
868
+ * Overscroll Behavior
869
+ * @see https://tailwindcss.com/docs/overscroll-behavior
870
+ */
871
+ overscroll: [{
872
+ overscroll: scaleOverscroll()
873
+ }],
874
+ /**
875
+ * Overscroll Behavior X
876
+ * @see https://tailwindcss.com/docs/overscroll-behavior
877
+ */
878
+ "overscroll-x": [{
879
+ "overscroll-x": scaleOverscroll()
880
+ }],
881
+ /**
882
+ * Overscroll Behavior Y
883
+ * @see https://tailwindcss.com/docs/overscroll-behavior
884
+ */
885
+ "overscroll-y": [{
886
+ "overscroll-y": scaleOverscroll()
887
+ }],
888
+ /**
889
+ * Position
890
+ * @see https://tailwindcss.com/docs/position
891
+ */
892
+ position: ["static", "fixed", "absolute", "relative", "sticky"],
893
+ /**
894
+ * Inset
895
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
896
+ */
897
+ inset: [{
898
+ inset: scaleInset()
899
+ }],
900
+ /**
901
+ * Inset Inline
902
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
903
+ */
904
+ "inset-x": [{
905
+ "inset-x": scaleInset()
906
+ }],
907
+ /**
908
+ * Inset Block
909
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
910
+ */
911
+ "inset-y": [{
912
+ "inset-y": scaleInset()
913
+ }],
914
+ /**
915
+ * Inset Inline Start
916
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
917
+ * @todo class group will be renamed to `inset-s` in next major release
918
+ */
919
+ start: [{
920
+ "inset-s": scaleInset(),
921
+ /**
922
+ * @deprecated since Tailwind CSS v4.2.0 in favor of `inset-s-*` utilities.
923
+ * @see https://github.com/tailwindlabs/tailwindcss/pull/19613
924
+ */
925
+ start: scaleInset()
926
+ }],
927
+ /**
928
+ * Inset Inline End
929
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
930
+ * @todo class group will be renamed to `inset-e` in next major release
931
+ */
932
+ end: [{
933
+ "inset-e": scaleInset(),
934
+ /**
935
+ * @deprecated since Tailwind CSS v4.2.0 in favor of `inset-e-*` utilities.
936
+ * @see https://github.com/tailwindlabs/tailwindcss/pull/19613
937
+ */
938
+ end: scaleInset()
939
+ }],
940
+ /**
941
+ * Inset Block Start
942
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
943
+ */
944
+ "inset-bs": [{
945
+ "inset-bs": scaleInset()
946
+ }],
947
+ /**
948
+ * Inset Block End
949
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
950
+ */
951
+ "inset-be": [{
952
+ "inset-be": scaleInset()
953
+ }],
954
+ /**
955
+ * Top
956
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
957
+ */
958
+ top: [{
959
+ top: scaleInset()
960
+ }],
961
+ /**
962
+ * Right
963
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
964
+ */
965
+ right: [{
966
+ right: scaleInset()
967
+ }],
968
+ /**
969
+ * Bottom
970
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
971
+ */
972
+ bottom: [{
973
+ bottom: scaleInset()
974
+ }],
975
+ /**
976
+ * Left
977
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
978
+ */
979
+ left: [{
980
+ left: scaleInset()
981
+ }],
982
+ /**
983
+ * Visibility
984
+ * @see https://tailwindcss.com/docs/visibility
985
+ */
986
+ visibility: ["visible", "invisible", "collapse"],
987
+ /**
988
+ * Z-Index
989
+ * @see https://tailwindcss.com/docs/z-index
990
+ */
991
+ z: [{
992
+ z: [isInteger, "auto", isArbitraryVariable, isArbitraryValue]
993
+ }],
994
+ // ------------------------
995
+ // --- Flexbox and Grid ---
996
+ // ------------------------
997
+ /**
998
+ * Flex Basis
999
+ * @see https://tailwindcss.com/docs/flex-basis
1000
+ */
1001
+ basis: [{
1002
+ basis: [isFraction, "full", "auto", themeContainer, ...scaleUnambiguousSpacing()]
1003
+ }],
1004
+ /**
1005
+ * Flex Direction
1006
+ * @see https://tailwindcss.com/docs/flex-direction
1007
+ */
1008
+ "flex-direction": [{
1009
+ flex: ["row", "row-reverse", "col", "col-reverse"]
1010
+ }],
1011
+ /**
1012
+ * Flex Wrap
1013
+ * @see https://tailwindcss.com/docs/flex-wrap
1014
+ */
1015
+ "flex-wrap": [{
1016
+ flex: ["nowrap", "wrap", "wrap-reverse"]
1017
+ }],
1018
+ /**
1019
+ * Flex
1020
+ * @see https://tailwindcss.com/docs/flex
1021
+ */
1022
+ flex: [{
1023
+ flex: [isNumber, isFraction, "auto", "initial", "none", isArbitraryValue]
1024
+ }],
1025
+ /**
1026
+ * Flex Grow
1027
+ * @see https://tailwindcss.com/docs/flex-grow
1028
+ */
1029
+ grow: [{
1030
+ grow: ["", isNumber, isArbitraryVariable, isArbitraryValue]
1031
+ }],
1032
+ /**
1033
+ * Flex Shrink
1034
+ * @see https://tailwindcss.com/docs/flex-shrink
1035
+ */
1036
+ shrink: [{
1037
+ shrink: ["", isNumber, isArbitraryVariable, isArbitraryValue]
1038
+ }],
1039
+ /**
1040
+ * Order
1041
+ * @see https://tailwindcss.com/docs/order
1042
+ */
1043
+ order: [{
1044
+ order: [isInteger, "first", "last", "none", isArbitraryVariable, isArbitraryValue]
1045
+ }],
1046
+ /**
1047
+ * Grid Template Columns
1048
+ * @see https://tailwindcss.com/docs/grid-template-columns
1049
+ */
1050
+ "grid-cols": [{
1051
+ "grid-cols": scaleGridTemplateColsRows()
1052
+ }],
1053
+ /**
1054
+ * Grid Column Start / End
1055
+ * @see https://tailwindcss.com/docs/grid-column
1056
+ */
1057
+ "col-start-end": [{
1058
+ col: scaleGridColRowStartAndEnd()
1059
+ }],
1060
+ /**
1061
+ * Grid Column Start
1062
+ * @see https://tailwindcss.com/docs/grid-column
1063
+ */
1064
+ "col-start": [{
1065
+ "col-start": scaleGridColRowStartOrEnd()
1066
+ }],
1067
+ /**
1068
+ * Grid Column End
1069
+ * @see https://tailwindcss.com/docs/grid-column
1070
+ */
1071
+ "col-end": [{
1072
+ "col-end": scaleGridColRowStartOrEnd()
1073
+ }],
1074
+ /**
1075
+ * Grid Template Rows
1076
+ * @see https://tailwindcss.com/docs/grid-template-rows
1077
+ */
1078
+ "grid-rows": [{
1079
+ "grid-rows": scaleGridTemplateColsRows()
1080
+ }],
1081
+ /**
1082
+ * Grid Row Start / End
1083
+ * @see https://tailwindcss.com/docs/grid-row
1084
+ */
1085
+ "row-start-end": [{
1086
+ row: scaleGridColRowStartAndEnd()
1087
+ }],
1088
+ /**
1089
+ * Grid Row Start
1090
+ * @see https://tailwindcss.com/docs/grid-row
1091
+ */
1092
+ "row-start": [{
1093
+ "row-start": scaleGridColRowStartOrEnd()
1094
+ }],
1095
+ /**
1096
+ * Grid Row End
1097
+ * @see https://tailwindcss.com/docs/grid-row
1098
+ */
1099
+ "row-end": [{
1100
+ "row-end": scaleGridColRowStartOrEnd()
1101
+ }],
1102
+ /**
1103
+ * Grid Auto Flow
1104
+ * @see https://tailwindcss.com/docs/grid-auto-flow
1105
+ */
1106
+ "grid-flow": [{
1107
+ "grid-flow": ["row", "col", "dense", "row-dense", "col-dense"]
1108
+ }],
1109
+ /**
1110
+ * Grid Auto Columns
1111
+ * @see https://tailwindcss.com/docs/grid-auto-columns
1112
+ */
1113
+ "auto-cols": [{
1114
+ "auto-cols": scaleGridAutoColsRows()
1115
+ }],
1116
+ /**
1117
+ * Grid Auto Rows
1118
+ * @see https://tailwindcss.com/docs/grid-auto-rows
1119
+ */
1120
+ "auto-rows": [{
1121
+ "auto-rows": scaleGridAutoColsRows()
1122
+ }],
1123
+ /**
1124
+ * Gap
1125
+ * @see https://tailwindcss.com/docs/gap
1126
+ */
1127
+ gap: [{
1128
+ gap: scaleUnambiguousSpacing()
1129
+ }],
1130
+ /**
1131
+ * Gap X
1132
+ * @see https://tailwindcss.com/docs/gap
1133
+ */
1134
+ "gap-x": [{
1135
+ "gap-x": scaleUnambiguousSpacing()
1136
+ }],
1137
+ /**
1138
+ * Gap Y
1139
+ * @see https://tailwindcss.com/docs/gap
1140
+ */
1141
+ "gap-y": [{
1142
+ "gap-y": scaleUnambiguousSpacing()
1143
+ }],
1144
+ /**
1145
+ * Justify Content
1146
+ * @see https://tailwindcss.com/docs/justify-content
1147
+ */
1148
+ "justify-content": [{
1149
+ justify: [...scaleAlignPrimaryAxis(), "normal"]
1150
+ }],
1151
+ /**
1152
+ * Justify Items
1153
+ * @see https://tailwindcss.com/docs/justify-items
1154
+ */
1155
+ "justify-items": [{
1156
+ "justify-items": [...scaleAlignSecondaryAxis(), "normal"]
1157
+ }],
1158
+ /**
1159
+ * Justify Self
1160
+ * @see https://tailwindcss.com/docs/justify-self
1161
+ */
1162
+ "justify-self": [{
1163
+ "justify-self": ["auto", ...scaleAlignSecondaryAxis()]
1164
+ }],
1165
+ /**
1166
+ * Align Content
1167
+ * @see https://tailwindcss.com/docs/align-content
1168
+ */
1169
+ "align-content": [{
1170
+ content: ["normal", ...scaleAlignPrimaryAxis()]
1171
+ }],
1172
+ /**
1173
+ * Align Items
1174
+ * @see https://tailwindcss.com/docs/align-items
1175
+ */
1176
+ "align-items": [{
1177
+ items: [...scaleAlignSecondaryAxis(), {
1178
+ baseline: ["", "last"]
1179
+ }]
1180
+ }],
1181
+ /**
1182
+ * Align Self
1183
+ * @see https://tailwindcss.com/docs/align-self
1184
+ */
1185
+ "align-self": [{
1186
+ self: ["auto", ...scaleAlignSecondaryAxis(), {
1187
+ baseline: ["", "last"]
1188
+ }]
1189
+ }],
1190
+ /**
1191
+ * Place Content
1192
+ * @see https://tailwindcss.com/docs/place-content
1193
+ */
1194
+ "place-content": [{
1195
+ "place-content": scaleAlignPrimaryAxis()
1196
+ }],
1197
+ /**
1198
+ * Place Items
1199
+ * @see https://tailwindcss.com/docs/place-items
1200
+ */
1201
+ "place-items": [{
1202
+ "place-items": [...scaleAlignSecondaryAxis(), "baseline"]
1203
+ }],
1204
+ /**
1205
+ * Place Self
1206
+ * @see https://tailwindcss.com/docs/place-self
1207
+ */
1208
+ "place-self": [{
1209
+ "place-self": ["auto", ...scaleAlignSecondaryAxis()]
1210
+ }],
1211
+ // Spacing
1212
+ /**
1213
+ * Padding
1214
+ * @see https://tailwindcss.com/docs/padding
1215
+ */
1216
+ p: [{
1217
+ p: scaleUnambiguousSpacing()
1218
+ }],
1219
+ /**
1220
+ * Padding Inline
1221
+ * @see https://tailwindcss.com/docs/padding
1222
+ */
1223
+ px: [{
1224
+ px: scaleUnambiguousSpacing()
1225
+ }],
1226
+ /**
1227
+ * Padding Block
1228
+ * @see https://tailwindcss.com/docs/padding
1229
+ */
1230
+ py: [{
1231
+ py: scaleUnambiguousSpacing()
1232
+ }],
1233
+ /**
1234
+ * Padding Inline Start
1235
+ * @see https://tailwindcss.com/docs/padding
1236
+ */
1237
+ ps: [{
1238
+ ps: scaleUnambiguousSpacing()
1239
+ }],
1240
+ /**
1241
+ * Padding Inline End
1242
+ * @see https://tailwindcss.com/docs/padding
1243
+ */
1244
+ pe: [{
1245
+ pe: scaleUnambiguousSpacing()
1246
+ }],
1247
+ /**
1248
+ * Padding Block Start
1249
+ * @see https://tailwindcss.com/docs/padding
1250
+ */
1251
+ pbs: [{
1252
+ pbs: scaleUnambiguousSpacing()
1253
+ }],
1254
+ /**
1255
+ * Padding Block End
1256
+ * @see https://tailwindcss.com/docs/padding
1257
+ */
1258
+ pbe: [{
1259
+ pbe: scaleUnambiguousSpacing()
1260
+ }],
1261
+ /**
1262
+ * Padding Top
1263
+ * @see https://tailwindcss.com/docs/padding
1264
+ */
1265
+ pt: [{
1266
+ pt: scaleUnambiguousSpacing()
1267
+ }],
1268
+ /**
1269
+ * Padding Right
1270
+ * @see https://tailwindcss.com/docs/padding
1271
+ */
1272
+ pr: [{
1273
+ pr: scaleUnambiguousSpacing()
1274
+ }],
1275
+ /**
1276
+ * Padding Bottom
1277
+ * @see https://tailwindcss.com/docs/padding
1278
+ */
1279
+ pb: [{
1280
+ pb: scaleUnambiguousSpacing()
1281
+ }],
1282
+ /**
1283
+ * Padding Left
1284
+ * @see https://tailwindcss.com/docs/padding
1285
+ */
1286
+ pl: [{
1287
+ pl: scaleUnambiguousSpacing()
1288
+ }],
1289
+ /**
1290
+ * Margin
1291
+ * @see https://tailwindcss.com/docs/margin
1292
+ */
1293
+ m: [{
1294
+ m: scaleMargin()
1295
+ }],
1296
+ /**
1297
+ * Margin Inline
1298
+ * @see https://tailwindcss.com/docs/margin
1299
+ */
1300
+ mx: [{
1301
+ mx: scaleMargin()
1302
+ }],
1303
+ /**
1304
+ * Margin Block
1305
+ * @see https://tailwindcss.com/docs/margin
1306
+ */
1307
+ my: [{
1308
+ my: scaleMargin()
1309
+ }],
1310
+ /**
1311
+ * Margin Inline Start
1312
+ * @see https://tailwindcss.com/docs/margin
1313
+ */
1314
+ ms: [{
1315
+ ms: scaleMargin()
1316
+ }],
1317
+ /**
1318
+ * Margin Inline End
1319
+ * @see https://tailwindcss.com/docs/margin
1320
+ */
1321
+ me: [{
1322
+ me: scaleMargin()
1323
+ }],
1324
+ /**
1325
+ * Margin Block Start
1326
+ * @see https://tailwindcss.com/docs/margin
1327
+ */
1328
+ mbs: [{
1329
+ mbs: scaleMargin()
1330
+ }],
1331
+ /**
1332
+ * Margin Block End
1333
+ * @see https://tailwindcss.com/docs/margin
1334
+ */
1335
+ mbe: [{
1336
+ mbe: scaleMargin()
1337
+ }],
1338
+ /**
1339
+ * Margin Top
1340
+ * @see https://tailwindcss.com/docs/margin
1341
+ */
1342
+ mt: [{
1343
+ mt: scaleMargin()
1344
+ }],
1345
+ /**
1346
+ * Margin Right
1347
+ * @see https://tailwindcss.com/docs/margin
1348
+ */
1349
+ mr: [{
1350
+ mr: scaleMargin()
1351
+ }],
1352
+ /**
1353
+ * Margin Bottom
1354
+ * @see https://tailwindcss.com/docs/margin
1355
+ */
1356
+ mb: [{
1357
+ mb: scaleMargin()
1358
+ }],
1359
+ /**
1360
+ * Margin Left
1361
+ * @see https://tailwindcss.com/docs/margin
1362
+ */
1363
+ ml: [{
1364
+ ml: scaleMargin()
1365
+ }],
1366
+ /**
1367
+ * Space Between X
1368
+ * @see https://tailwindcss.com/docs/margin#adding-space-between-children
1369
+ */
1370
+ "space-x": [{
1371
+ "space-x": scaleUnambiguousSpacing()
1372
+ }],
1373
+ /**
1374
+ * Space Between X Reverse
1375
+ * @see https://tailwindcss.com/docs/margin#adding-space-between-children
1376
+ */
1377
+ "space-x-reverse": ["space-x-reverse"],
1378
+ /**
1379
+ * Space Between Y
1380
+ * @see https://tailwindcss.com/docs/margin#adding-space-between-children
1381
+ */
1382
+ "space-y": [{
1383
+ "space-y": scaleUnambiguousSpacing()
1384
+ }],
1385
+ /**
1386
+ * Space Between Y Reverse
1387
+ * @see https://tailwindcss.com/docs/margin#adding-space-between-children
1388
+ */
1389
+ "space-y-reverse": ["space-y-reverse"],
1390
+ // --------------
1391
+ // --- Sizing ---
1392
+ // --------------
1393
+ /**
1394
+ * Size
1395
+ * @see https://tailwindcss.com/docs/width#setting-both-width-and-height
1396
+ */
1397
+ size: [{
1398
+ size: scaleSizing()
1399
+ }],
1400
+ /**
1401
+ * Inline Size
1402
+ * @see https://tailwindcss.com/docs/width
1403
+ */
1404
+ "inline-size": [{
1405
+ inline: ["auto", ...scaleSizingInline()]
1406
+ }],
1407
+ /**
1408
+ * Min-Inline Size
1409
+ * @see https://tailwindcss.com/docs/min-width
1410
+ */
1411
+ "min-inline-size": [{
1412
+ "min-inline": ["auto", ...scaleSizingInline()]
1413
+ }],
1414
+ /**
1415
+ * Max-Inline Size
1416
+ * @see https://tailwindcss.com/docs/max-width
1417
+ */
1418
+ "max-inline-size": [{
1419
+ "max-inline": ["none", ...scaleSizingInline()]
1420
+ }],
1421
+ /**
1422
+ * Block Size
1423
+ * @see https://tailwindcss.com/docs/height
1424
+ */
1425
+ "block-size": [{
1426
+ block: ["auto", ...scaleSizingBlock()]
1427
+ }],
1428
+ /**
1429
+ * Min-Block Size
1430
+ * @see https://tailwindcss.com/docs/min-height
1431
+ */
1432
+ "min-block-size": [{
1433
+ "min-block": ["auto", ...scaleSizingBlock()]
1434
+ }],
1435
+ /**
1436
+ * Max-Block Size
1437
+ * @see https://tailwindcss.com/docs/max-height
1438
+ */
1439
+ "max-block-size": [{
1440
+ "max-block": ["none", ...scaleSizingBlock()]
1441
+ }],
1442
+ /**
1443
+ * Width
1444
+ * @see https://tailwindcss.com/docs/width
1445
+ */
1446
+ w: [{
1447
+ w: [themeContainer, "screen", ...scaleSizing()]
1448
+ }],
1449
+ /**
1450
+ * Min-Width
1451
+ * @see https://tailwindcss.com/docs/min-width
1452
+ */
1453
+ "min-w": [{
1454
+ "min-w": [
1455
+ themeContainer,
1456
+ "screen",
1457
+ /** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
1458
+ "none",
1459
+ ...scaleSizing()
1460
+ ]
1461
+ }],
1462
+ /**
1463
+ * Max-Width
1464
+ * @see https://tailwindcss.com/docs/max-width
1465
+ */
1466
+ "max-w": [{
1467
+ "max-w": [
1468
+ themeContainer,
1469
+ "screen",
1470
+ "none",
1471
+ /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
1472
+ "prose",
1473
+ /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
1474
+ {
1475
+ screen: [themeBreakpoint]
1476
+ },
1477
+ ...scaleSizing()
1478
+ ]
1479
+ }],
1480
+ /**
1481
+ * Height
1482
+ * @see https://tailwindcss.com/docs/height
1483
+ */
1484
+ h: [{
1485
+ h: ["screen", "lh", ...scaleSizing()]
1486
+ }],
1487
+ /**
1488
+ * Min-Height
1489
+ * @see https://tailwindcss.com/docs/min-height
1490
+ */
1491
+ "min-h": [{
1492
+ "min-h": ["screen", "lh", "none", ...scaleSizing()]
1493
+ }],
1494
+ /**
1495
+ * Max-Height
1496
+ * @see https://tailwindcss.com/docs/max-height
1497
+ */
1498
+ "max-h": [{
1499
+ "max-h": ["screen", "lh", ...scaleSizing()]
1500
+ }],
1501
+ // ------------------
1502
+ // --- Typography ---
1503
+ // ------------------
1504
+ /**
1505
+ * Font Size
1506
+ * @see https://tailwindcss.com/docs/font-size
1507
+ */
1508
+ "font-size": [{
1509
+ text: ["base", themeText, isArbitraryVariableLength, isArbitraryLength]
1510
+ }],
1511
+ /**
1512
+ * Font Smoothing
1513
+ * @see https://tailwindcss.com/docs/font-smoothing
1514
+ */
1515
+ "font-smoothing": ["antialiased", "subpixel-antialiased"],
1516
+ /**
1517
+ * Font Style
1518
+ * @see https://tailwindcss.com/docs/font-style
1519
+ */
1520
+ "font-style": ["italic", "not-italic"],
1521
+ /**
1522
+ * Font Weight
1523
+ * @see https://tailwindcss.com/docs/font-weight
1524
+ */
1525
+ "font-weight": [{
1526
+ font: [themeFontWeight, isArbitraryVariableWeight, isArbitraryWeight]
1527
+ }],
1528
+ /**
1529
+ * Font Stretch
1530
+ * @see https://tailwindcss.com/docs/font-stretch
1531
+ */
1532
+ "font-stretch": [{
1533
+ "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", isPercent, isArbitraryValue]
1534
+ }],
1535
+ /**
1536
+ * Font Family
1537
+ * @see https://tailwindcss.com/docs/font-family
1538
+ */
1539
+ "font-family": [{
1540
+ font: [isArbitraryVariableFamilyName, isArbitraryFamilyName, themeFont]
1541
+ }],
1542
+ /**
1543
+ * Font Feature Settings
1544
+ * @see https://tailwindcss.com/docs/font-feature-settings
1545
+ */
1546
+ "font-features": [{
1547
+ "font-features": [isArbitraryValue]
1548
+ }],
1549
+ /**
1550
+ * Font Variant Numeric
1551
+ * @see https://tailwindcss.com/docs/font-variant-numeric
1552
+ */
1553
+ "fvn-normal": ["normal-nums"],
1554
+ /**
1555
+ * Font Variant Numeric
1556
+ * @see https://tailwindcss.com/docs/font-variant-numeric
1557
+ */
1558
+ "fvn-ordinal": ["ordinal"],
1559
+ /**
1560
+ * Font Variant Numeric
1561
+ * @see https://tailwindcss.com/docs/font-variant-numeric
1562
+ */
1563
+ "fvn-slashed-zero": ["slashed-zero"],
1564
+ /**
1565
+ * Font Variant Numeric
1566
+ * @see https://tailwindcss.com/docs/font-variant-numeric
1567
+ */
1568
+ "fvn-figure": ["lining-nums", "oldstyle-nums"],
1569
+ /**
1570
+ * Font Variant Numeric
1571
+ * @see https://tailwindcss.com/docs/font-variant-numeric
1572
+ */
1573
+ "fvn-spacing": ["proportional-nums", "tabular-nums"],
1574
+ /**
1575
+ * Font Variant Numeric
1576
+ * @see https://tailwindcss.com/docs/font-variant-numeric
1577
+ */
1578
+ "fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
1579
+ /**
1580
+ * Letter Spacing
1581
+ * @see https://tailwindcss.com/docs/letter-spacing
1582
+ */
1583
+ tracking: [{
1584
+ tracking: [themeTracking, isArbitraryVariable, isArbitraryValue]
1585
+ }],
1586
+ /**
1587
+ * Line Clamp
1588
+ * @see https://tailwindcss.com/docs/line-clamp
1589
+ */
1590
+ "line-clamp": [{
1591
+ "line-clamp": [isNumber, "none", isArbitraryVariable, isArbitraryNumber]
1592
+ }],
1593
+ /**
1594
+ * Line Height
1595
+ * @see https://tailwindcss.com/docs/line-height
1596
+ */
1597
+ leading: [{
1598
+ leading: [
1599
+ /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
1600
+ themeLeading,
1601
+ ...scaleUnambiguousSpacing()
1602
+ ]
1603
+ }],
1604
+ /**
1605
+ * List Style Image
1606
+ * @see https://tailwindcss.com/docs/list-style-image
1607
+ */
1608
+ "list-image": [{
1609
+ "list-image": ["none", isArbitraryVariable, isArbitraryValue]
1610
+ }],
1611
+ /**
1612
+ * List Style Position
1613
+ * @see https://tailwindcss.com/docs/list-style-position
1614
+ */
1615
+ "list-style-position": [{
1616
+ list: ["inside", "outside"]
1617
+ }],
1618
+ /**
1619
+ * List Style Type
1620
+ * @see https://tailwindcss.com/docs/list-style-type
1621
+ */
1622
+ "list-style-type": [{
1623
+ list: ["disc", "decimal", "none", isArbitraryVariable, isArbitraryValue]
1624
+ }],
1625
+ /**
1626
+ * Text Alignment
1627
+ * @see https://tailwindcss.com/docs/text-align
1628
+ */
1629
+ "text-alignment": [{
1630
+ text: ["left", "center", "right", "justify", "start", "end"]
1631
+ }],
1632
+ /**
1633
+ * Placeholder Color
1634
+ * @deprecated since Tailwind CSS v3.0.0
1635
+ * @see https://v3.tailwindcss.com/docs/placeholder-color
1636
+ */
1637
+ "placeholder-color": [{
1638
+ placeholder: scaleColor()
1639
+ }],
1640
+ /**
1641
+ * Text Color
1642
+ * @see https://tailwindcss.com/docs/text-color
1643
+ */
1644
+ "text-color": [{
1645
+ text: scaleColor()
1646
+ }],
1647
+ /**
1648
+ * Text Decoration
1649
+ * @see https://tailwindcss.com/docs/text-decoration
1650
+ */
1651
+ "text-decoration": ["underline", "overline", "line-through", "no-underline"],
1652
+ /**
1653
+ * Text Decoration Style
1654
+ * @see https://tailwindcss.com/docs/text-decoration-style
1655
+ */
1656
+ "text-decoration-style": [{
1657
+ decoration: [...scaleLineStyle(), "wavy"]
1658
+ }],
1659
+ /**
1660
+ * Text Decoration Thickness
1661
+ * @see https://tailwindcss.com/docs/text-decoration-thickness
1662
+ */
1663
+ "text-decoration-thickness": [{
1664
+ decoration: [isNumber, "from-font", "auto", isArbitraryVariable, isArbitraryLength]
1665
+ }],
1666
+ /**
1667
+ * Text Decoration Color
1668
+ * @see https://tailwindcss.com/docs/text-decoration-color
1669
+ */
1670
+ "text-decoration-color": [{
1671
+ decoration: scaleColor()
1672
+ }],
1673
+ /**
1674
+ * Text Underline Offset
1675
+ * @see https://tailwindcss.com/docs/text-underline-offset
1676
+ */
1677
+ "underline-offset": [{
1678
+ "underline-offset": [isNumber, "auto", isArbitraryVariable, isArbitraryValue]
1679
+ }],
1680
+ /**
1681
+ * Text Transform
1682
+ * @see https://tailwindcss.com/docs/text-transform
1683
+ */
1684
+ "text-transform": ["uppercase", "lowercase", "capitalize", "normal-case"],
1685
+ /**
1686
+ * Text Overflow
1687
+ * @see https://tailwindcss.com/docs/text-overflow
1688
+ */
1689
+ "text-overflow": ["truncate", "text-ellipsis", "text-clip"],
1690
+ /**
1691
+ * Text Wrap
1692
+ * @see https://tailwindcss.com/docs/text-wrap
1693
+ */
1694
+ "text-wrap": [{
1695
+ text: ["wrap", "nowrap", "balance", "pretty"]
1696
+ }],
1697
+ /**
1698
+ * Text Indent
1699
+ * @see https://tailwindcss.com/docs/text-indent
1700
+ */
1701
+ indent: [{
1702
+ indent: scaleUnambiguousSpacing()
1703
+ }],
1704
+ /**
1705
+ * Tab Size
1706
+ * @see https://tailwindcss.com/docs/tab-size
1707
+ */
1708
+ "tab-size": [{
1709
+ tab: [isInteger, isArbitraryVariable, isArbitraryValue]
1710
+ }],
1711
+ /**
1712
+ * Vertical Alignment
1713
+ * @see https://tailwindcss.com/docs/vertical-align
1714
+ */
1715
+ "vertical-align": [{
1716
+ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", isArbitraryVariable, isArbitraryValue]
1717
+ }],
1718
+ /**
1719
+ * Whitespace
1720
+ * @see https://tailwindcss.com/docs/whitespace
1721
+ */
1722
+ whitespace: [{
1723
+ whitespace: ["normal", "nowrap", "pre", "pre-line", "pre-wrap", "break-spaces"]
1724
+ }],
1725
+ /**
1726
+ * Word Break
1727
+ * @see https://tailwindcss.com/docs/word-break
1728
+ */
1729
+ break: [{
1730
+ break: ["normal", "words", "all", "keep"]
1731
+ }],
1732
+ /**
1733
+ * Overflow Wrap
1734
+ * @see https://tailwindcss.com/docs/overflow-wrap
1735
+ */
1736
+ wrap: [{
1737
+ wrap: ["break-word", "anywhere", "normal"]
1738
+ }],
1739
+ /**
1740
+ * Hyphens
1741
+ * @see https://tailwindcss.com/docs/hyphens
1742
+ */
1743
+ hyphens: [{
1744
+ hyphens: ["none", "manual", "auto"]
1745
+ }],
1746
+ /**
1747
+ * Content
1748
+ * @see https://tailwindcss.com/docs/content
1749
+ */
1750
+ content: [{
1751
+ content: ["none", isArbitraryVariable, isArbitraryValue]
1752
+ }],
1753
+ // -------------------
1754
+ // --- Backgrounds ---
1755
+ // -------------------
1756
+ /**
1757
+ * Background Attachment
1758
+ * @see https://tailwindcss.com/docs/background-attachment
1759
+ */
1760
+ "bg-attachment": [{
1761
+ bg: ["fixed", "local", "scroll"]
1762
+ }],
1763
+ /**
1764
+ * Background Clip
1765
+ * @see https://tailwindcss.com/docs/background-clip
1766
+ */
1767
+ "bg-clip": [{
1768
+ "bg-clip": ["border", "padding", "content", "text"]
1769
+ }],
1770
+ /**
1771
+ * Background Origin
1772
+ * @see https://tailwindcss.com/docs/background-origin
1773
+ */
1774
+ "bg-origin": [{
1775
+ "bg-origin": ["border", "padding", "content"]
1776
+ }],
1777
+ /**
1778
+ * Background Position
1779
+ * @see https://tailwindcss.com/docs/background-position
1780
+ */
1781
+ "bg-position": [{
1782
+ bg: scaleBgPosition()
1783
+ }],
1784
+ /**
1785
+ * Background Repeat
1786
+ * @see https://tailwindcss.com/docs/background-repeat
1787
+ */
1788
+ "bg-repeat": [{
1789
+ bg: scaleBgRepeat()
1790
+ }],
1791
+ /**
1792
+ * Background Size
1793
+ * @see https://tailwindcss.com/docs/background-size
1794
+ */
1795
+ "bg-size": [{
1796
+ bg: scaleBgSize()
1797
+ }],
1798
+ /**
1799
+ * Background Image
1800
+ * @see https://tailwindcss.com/docs/background-image
1801
+ */
1802
+ "bg-image": [{
1803
+ bg: ["none", {
1804
+ linear: [{
1805
+ to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
1806
+ }, isInteger, isArbitraryVariable, isArbitraryValue],
1807
+ radial: ["", isArbitraryVariable, isArbitraryValue],
1808
+ conic: [isInteger, isArbitraryVariable, isArbitraryValue]
1809
+ }, isArbitraryVariableImage, isArbitraryImage]
1810
+ }],
1811
+ /**
1812
+ * Background Color
1813
+ * @see https://tailwindcss.com/docs/background-color
1814
+ */
1815
+ "bg-color": [{
1816
+ bg: scaleColor()
1817
+ }],
1818
+ /**
1819
+ * Gradient Color Stops From Position
1820
+ * @see https://tailwindcss.com/docs/gradient-color-stops
1821
+ */
1822
+ "gradient-from-pos": [{
1823
+ from: scaleGradientStopPosition()
1824
+ }],
1825
+ /**
1826
+ * Gradient Color Stops Via Position
1827
+ * @see https://tailwindcss.com/docs/gradient-color-stops
1828
+ */
1829
+ "gradient-via-pos": [{
1830
+ via: scaleGradientStopPosition()
1831
+ }],
1832
+ /**
1833
+ * Gradient Color Stops To Position
1834
+ * @see https://tailwindcss.com/docs/gradient-color-stops
1835
+ */
1836
+ "gradient-to-pos": [{
1837
+ to: scaleGradientStopPosition()
1838
+ }],
1839
+ /**
1840
+ * Gradient Color Stops From
1841
+ * @see https://tailwindcss.com/docs/gradient-color-stops
1842
+ */
1843
+ "gradient-from": [{
1844
+ from: scaleColor()
1845
+ }],
1846
+ /**
1847
+ * Gradient Color Stops Via
1848
+ * @see https://tailwindcss.com/docs/gradient-color-stops
1849
+ */
1850
+ "gradient-via": [{
1851
+ via: scaleColor()
1852
+ }],
1853
+ /**
1854
+ * Gradient Color Stops To
1855
+ * @see https://tailwindcss.com/docs/gradient-color-stops
1856
+ */
1857
+ "gradient-to": [{
1858
+ to: scaleColor()
1859
+ }],
1860
+ // ---------------
1861
+ // --- Borders ---
1862
+ // ---------------
1863
+ /**
1864
+ * Border Radius
1865
+ * @see https://tailwindcss.com/docs/border-radius
1866
+ */
1867
+ rounded: [{
1868
+ rounded: scaleRadius()
1869
+ }],
1870
+ /**
1871
+ * Border Radius Start
1872
+ * @see https://tailwindcss.com/docs/border-radius
1873
+ */
1874
+ "rounded-s": [{
1875
+ "rounded-s": scaleRadius()
1876
+ }],
1877
+ /**
1878
+ * Border Radius End
1879
+ * @see https://tailwindcss.com/docs/border-radius
1880
+ */
1881
+ "rounded-e": [{
1882
+ "rounded-e": scaleRadius()
1883
+ }],
1884
+ /**
1885
+ * Border Radius Top
1886
+ * @see https://tailwindcss.com/docs/border-radius
1887
+ */
1888
+ "rounded-t": [{
1889
+ "rounded-t": scaleRadius()
1890
+ }],
1891
+ /**
1892
+ * Border Radius Right
1893
+ * @see https://tailwindcss.com/docs/border-radius
1894
+ */
1895
+ "rounded-r": [{
1896
+ "rounded-r": scaleRadius()
1897
+ }],
1898
+ /**
1899
+ * Border Radius Bottom
1900
+ * @see https://tailwindcss.com/docs/border-radius
1901
+ */
1902
+ "rounded-b": [{
1903
+ "rounded-b": scaleRadius()
1904
+ }],
1905
+ /**
1906
+ * Border Radius Left
1907
+ * @see https://tailwindcss.com/docs/border-radius
1908
+ */
1909
+ "rounded-l": [{
1910
+ "rounded-l": scaleRadius()
1911
+ }],
1912
+ /**
1913
+ * Border Radius Start Start
1914
+ * @see https://tailwindcss.com/docs/border-radius
1915
+ */
1916
+ "rounded-ss": [{
1917
+ "rounded-ss": scaleRadius()
1918
+ }],
1919
+ /**
1920
+ * Border Radius Start End
1921
+ * @see https://tailwindcss.com/docs/border-radius
1922
+ */
1923
+ "rounded-se": [{
1924
+ "rounded-se": scaleRadius()
1925
+ }],
1926
+ /**
1927
+ * Border Radius End End
1928
+ * @see https://tailwindcss.com/docs/border-radius
1929
+ */
1930
+ "rounded-ee": [{
1931
+ "rounded-ee": scaleRadius()
1932
+ }],
1933
+ /**
1934
+ * Border Radius End Start
1935
+ * @see https://tailwindcss.com/docs/border-radius
1936
+ */
1937
+ "rounded-es": [{
1938
+ "rounded-es": scaleRadius()
1939
+ }],
1940
+ /**
1941
+ * Border Radius Top Left
1942
+ * @see https://tailwindcss.com/docs/border-radius
1943
+ */
1944
+ "rounded-tl": [{
1945
+ "rounded-tl": scaleRadius()
1946
+ }],
1947
+ /**
1948
+ * Border Radius Top Right
1949
+ * @see https://tailwindcss.com/docs/border-radius
1950
+ */
1951
+ "rounded-tr": [{
1952
+ "rounded-tr": scaleRadius()
1953
+ }],
1954
+ /**
1955
+ * Border Radius Bottom Right
1956
+ * @see https://tailwindcss.com/docs/border-radius
1957
+ */
1958
+ "rounded-br": [{
1959
+ "rounded-br": scaleRadius()
1960
+ }],
1961
+ /**
1962
+ * Border Radius Bottom Left
1963
+ * @see https://tailwindcss.com/docs/border-radius
1964
+ */
1965
+ "rounded-bl": [{
1966
+ "rounded-bl": scaleRadius()
1967
+ }],
1968
+ /**
1969
+ * Border Width
1970
+ * @see https://tailwindcss.com/docs/border-width
1971
+ */
1972
+ "border-w": [{
1973
+ border: scaleBorderWidth()
1974
+ }],
1975
+ /**
1976
+ * Border Width Inline
1977
+ * @see https://tailwindcss.com/docs/border-width
1978
+ */
1979
+ "border-w-x": [{
1980
+ "border-x": scaleBorderWidth()
1981
+ }],
1982
+ /**
1983
+ * Border Width Block
1984
+ * @see https://tailwindcss.com/docs/border-width
1985
+ */
1986
+ "border-w-y": [{
1987
+ "border-y": scaleBorderWidth()
1988
+ }],
1989
+ /**
1990
+ * Border Width Inline Start
1991
+ * @see https://tailwindcss.com/docs/border-width
1992
+ */
1993
+ "border-w-s": [{
1994
+ "border-s": scaleBorderWidth()
1995
+ }],
1996
+ /**
1997
+ * Border Width Inline End
1998
+ * @see https://tailwindcss.com/docs/border-width
1999
+ */
2000
+ "border-w-e": [{
2001
+ "border-e": scaleBorderWidth()
2002
+ }],
2003
+ /**
2004
+ * Border Width Block Start
2005
+ * @see https://tailwindcss.com/docs/border-width
2006
+ */
2007
+ "border-w-bs": [{
2008
+ "border-bs": scaleBorderWidth()
2009
+ }],
2010
+ /**
2011
+ * Border Width Block End
2012
+ * @see https://tailwindcss.com/docs/border-width
2013
+ */
2014
+ "border-w-be": [{
2015
+ "border-be": scaleBorderWidth()
2016
+ }],
2017
+ /**
2018
+ * Border Width Top
2019
+ * @see https://tailwindcss.com/docs/border-width
2020
+ */
2021
+ "border-w-t": [{
2022
+ "border-t": scaleBorderWidth()
2023
+ }],
2024
+ /**
2025
+ * Border Width Right
2026
+ * @see https://tailwindcss.com/docs/border-width
2027
+ */
2028
+ "border-w-r": [{
2029
+ "border-r": scaleBorderWidth()
2030
+ }],
2031
+ /**
2032
+ * Border Width Bottom
2033
+ * @see https://tailwindcss.com/docs/border-width
2034
+ */
2035
+ "border-w-b": [{
2036
+ "border-b": scaleBorderWidth()
2037
+ }],
2038
+ /**
2039
+ * Border Width Left
2040
+ * @see https://tailwindcss.com/docs/border-width
2041
+ */
2042
+ "border-w-l": [{
2043
+ "border-l": scaleBorderWidth()
2044
+ }],
2045
+ /**
2046
+ * Divide Width X
2047
+ * @see https://tailwindcss.com/docs/border-width#between-children
2048
+ */
2049
+ "divide-x": [{
2050
+ "divide-x": scaleBorderWidth()
2051
+ }],
2052
+ /**
2053
+ * Divide Width X Reverse
2054
+ * @see https://tailwindcss.com/docs/border-width#between-children
2055
+ */
2056
+ "divide-x-reverse": ["divide-x-reverse"],
2057
+ /**
2058
+ * Divide Width Y
2059
+ * @see https://tailwindcss.com/docs/border-width#between-children
2060
+ */
2061
+ "divide-y": [{
2062
+ "divide-y": scaleBorderWidth()
2063
+ }],
2064
+ /**
2065
+ * Divide Width Y Reverse
2066
+ * @see https://tailwindcss.com/docs/border-width#between-children
2067
+ */
2068
+ "divide-y-reverse": ["divide-y-reverse"],
2069
+ /**
2070
+ * Border Style
2071
+ * @see https://tailwindcss.com/docs/border-style
2072
+ */
2073
+ "border-style": [{
2074
+ border: [...scaleLineStyle(), "hidden", "none"]
2075
+ }],
2076
+ /**
2077
+ * Divide Style
2078
+ * @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
2079
+ */
2080
+ "divide-style": [{
2081
+ divide: [...scaleLineStyle(), "hidden", "none"]
2082
+ }],
2083
+ /**
2084
+ * Border Color
2085
+ * @see https://tailwindcss.com/docs/border-color
2086
+ */
2087
+ "border-color": [{
2088
+ border: scaleColor()
2089
+ }],
2090
+ /**
2091
+ * Border Color Inline
2092
+ * @see https://tailwindcss.com/docs/border-color
2093
+ */
2094
+ "border-color-x": [{
2095
+ "border-x": scaleColor()
2096
+ }],
2097
+ /**
2098
+ * Border Color Block
2099
+ * @see https://tailwindcss.com/docs/border-color
2100
+ */
2101
+ "border-color-y": [{
2102
+ "border-y": scaleColor()
2103
+ }],
2104
+ /**
2105
+ * Border Color Inline Start
2106
+ * @see https://tailwindcss.com/docs/border-color
2107
+ */
2108
+ "border-color-s": [{
2109
+ "border-s": scaleColor()
2110
+ }],
2111
+ /**
2112
+ * Border Color Inline End
2113
+ * @see https://tailwindcss.com/docs/border-color
2114
+ */
2115
+ "border-color-e": [{
2116
+ "border-e": scaleColor()
2117
+ }],
2118
+ /**
2119
+ * Border Color Block Start
2120
+ * @see https://tailwindcss.com/docs/border-color
2121
+ */
2122
+ "border-color-bs": [{
2123
+ "border-bs": scaleColor()
2124
+ }],
2125
+ /**
2126
+ * Border Color Block End
2127
+ * @see https://tailwindcss.com/docs/border-color
2128
+ */
2129
+ "border-color-be": [{
2130
+ "border-be": scaleColor()
2131
+ }],
2132
+ /**
2133
+ * Border Color Top
2134
+ * @see https://tailwindcss.com/docs/border-color
2135
+ */
2136
+ "border-color-t": [{
2137
+ "border-t": scaleColor()
2138
+ }],
2139
+ /**
2140
+ * Border Color Right
2141
+ * @see https://tailwindcss.com/docs/border-color
2142
+ */
2143
+ "border-color-r": [{
2144
+ "border-r": scaleColor()
2145
+ }],
2146
+ /**
2147
+ * Border Color Bottom
2148
+ * @see https://tailwindcss.com/docs/border-color
2149
+ */
2150
+ "border-color-b": [{
2151
+ "border-b": scaleColor()
2152
+ }],
2153
+ /**
2154
+ * Border Color Left
2155
+ * @see https://tailwindcss.com/docs/border-color
2156
+ */
2157
+ "border-color-l": [{
2158
+ "border-l": scaleColor()
2159
+ }],
2160
+ /**
2161
+ * Divide Color
2162
+ * @see https://tailwindcss.com/docs/divide-color
2163
+ */
2164
+ "divide-color": [{
2165
+ divide: scaleColor()
2166
+ }],
2167
+ /**
2168
+ * Outline Style
2169
+ * @see https://tailwindcss.com/docs/outline-style
2170
+ */
2171
+ "outline-style": [{
2172
+ outline: [...scaleLineStyle(), "none", "hidden"]
2173
+ }],
2174
+ /**
2175
+ * Outline Offset
2176
+ * @see https://tailwindcss.com/docs/outline-offset
2177
+ */
2178
+ "outline-offset": [{
2179
+ "outline-offset": [isNumber, isArbitraryVariable, isArbitraryValue]
2180
+ }],
2181
+ /**
2182
+ * Outline Width
2183
+ * @see https://tailwindcss.com/docs/outline-width
2184
+ */
2185
+ "outline-w": [{
2186
+ outline: ["", isNumber, isArbitraryVariableLength, isArbitraryLength]
2187
+ }],
2188
+ /**
2189
+ * Outline Color
2190
+ * @see https://tailwindcss.com/docs/outline-color
2191
+ */
2192
+ "outline-color": [{
2193
+ outline: scaleColor()
2194
+ }],
2195
+ // ---------------
2196
+ // --- Effects ---
2197
+ // ---------------
2198
+ /**
2199
+ * Box Shadow
2200
+ * @see https://tailwindcss.com/docs/box-shadow
2201
+ */
2202
+ shadow: [{
2203
+ shadow: [
2204
+ // Deprecated since Tailwind CSS v4.0.0
2205
+ "",
2206
+ "none",
2207
+ themeShadow,
2208
+ isArbitraryVariableShadow,
2209
+ isArbitraryShadow
2210
+ ]
2211
+ }],
2212
+ /**
2213
+ * Box Shadow Color
2214
+ * @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
2215
+ */
2216
+ "shadow-color": [{
2217
+ shadow: scaleColor()
2218
+ }],
2219
+ /**
2220
+ * Inset Box Shadow
2221
+ * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
2222
+ */
2223
+ "inset-shadow": [{
2224
+ "inset-shadow": ["none", themeInsetShadow, isArbitraryVariableShadow, isArbitraryShadow]
2225
+ }],
2226
+ /**
2227
+ * Inset Box Shadow Color
2228
+ * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
2229
+ */
2230
+ "inset-shadow-color": [{
2231
+ "inset-shadow": scaleColor()
2232
+ }],
2233
+ /**
2234
+ * Ring Width
2235
+ * @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
2236
+ */
2237
+ "ring-w": [{
2238
+ ring: scaleBorderWidth()
2239
+ }],
2240
+ /**
2241
+ * Ring Width Inset
2242
+ * @see https://v3.tailwindcss.com/docs/ring-width#inset-rings
2243
+ * @deprecated since Tailwind CSS v4.0.0
2244
+ * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
2245
+ */
2246
+ "ring-w-inset": ["ring-inset"],
2247
+ /**
2248
+ * Ring Color
2249
+ * @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
2250
+ */
2251
+ "ring-color": [{
2252
+ ring: scaleColor()
2253
+ }],
2254
+ /**
2255
+ * Ring Offset Width
2256
+ * @see https://v3.tailwindcss.com/docs/ring-offset-width
2257
+ * @deprecated since Tailwind CSS v4.0.0
2258
+ * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
2259
+ */
2260
+ "ring-offset-w": [{
2261
+ "ring-offset": [isNumber, isArbitraryLength]
2262
+ }],
2263
+ /**
2264
+ * Ring Offset Color
2265
+ * @see https://v3.tailwindcss.com/docs/ring-offset-color
2266
+ * @deprecated since Tailwind CSS v4.0.0
2267
+ * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
2268
+ */
2269
+ "ring-offset-color": [{
2270
+ "ring-offset": scaleColor()
2271
+ }],
2272
+ /**
2273
+ * Inset Ring Width
2274
+ * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
2275
+ */
2276
+ "inset-ring-w": [{
2277
+ "inset-ring": scaleBorderWidth()
2278
+ }],
2279
+ /**
2280
+ * Inset Ring Color
2281
+ * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
2282
+ */
2283
+ "inset-ring-color": [{
2284
+ "inset-ring": scaleColor()
2285
+ }],
2286
+ /**
2287
+ * Text Shadow
2288
+ * @see https://tailwindcss.com/docs/text-shadow
2289
+ */
2290
+ "text-shadow": [{
2291
+ "text-shadow": ["none", themeTextShadow, isArbitraryVariableShadow, isArbitraryShadow]
2292
+ }],
2293
+ /**
2294
+ * Text Shadow Color
2295
+ * @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
2296
+ */
2297
+ "text-shadow-color": [{
2298
+ "text-shadow": scaleColor()
2299
+ }],
2300
+ /**
2301
+ * Opacity
2302
+ * @see https://tailwindcss.com/docs/opacity
2303
+ */
2304
+ opacity: [{
2305
+ opacity: [isNumber, isArbitraryVariable, isArbitraryValue]
2306
+ }],
2307
+ /**
2308
+ * Mix Blend Mode
2309
+ * @see https://tailwindcss.com/docs/mix-blend-mode
2310
+ */
2311
+ "mix-blend": [{
2312
+ "mix-blend": [...scaleBlendMode(), "plus-darker", "plus-lighter"]
2313
+ }],
2314
+ /**
2315
+ * Background Blend Mode
2316
+ * @see https://tailwindcss.com/docs/background-blend-mode
2317
+ */
2318
+ "bg-blend": [{
2319
+ "bg-blend": scaleBlendMode()
2320
+ }],
2321
+ /**
2322
+ * Mask Clip
2323
+ * @see https://tailwindcss.com/docs/mask-clip
2324
+ */
2325
+ "mask-clip": [{
2326
+ "mask-clip": ["border", "padding", "content", "fill", "stroke", "view"]
2327
+ }, "mask-no-clip"],
2328
+ /**
2329
+ * Mask Composite
2330
+ * @see https://tailwindcss.com/docs/mask-composite
2331
+ */
2332
+ "mask-composite": [{
2333
+ mask: ["add", "subtract", "intersect", "exclude"]
2334
+ }],
2335
+ /**
2336
+ * Mask Image
2337
+ * @see https://tailwindcss.com/docs/mask-image
2338
+ */
2339
+ "mask-image-linear-pos": [{
2340
+ "mask-linear": [isNumber]
2341
+ }],
2342
+ "mask-image-linear-from-pos": [{
2343
+ "mask-linear-from": scaleMaskImagePosition()
2344
+ }],
2345
+ "mask-image-linear-to-pos": [{
2346
+ "mask-linear-to": scaleMaskImagePosition()
2347
+ }],
2348
+ "mask-image-linear-from-color": [{
2349
+ "mask-linear-from": scaleColor()
2350
+ }],
2351
+ "mask-image-linear-to-color": [{
2352
+ "mask-linear-to": scaleColor()
2353
+ }],
2354
+ "mask-image-t-from-pos": [{
2355
+ "mask-t-from": scaleMaskImagePosition()
2356
+ }],
2357
+ "mask-image-t-to-pos": [{
2358
+ "mask-t-to": scaleMaskImagePosition()
2359
+ }],
2360
+ "mask-image-t-from-color": [{
2361
+ "mask-t-from": scaleColor()
2362
+ }],
2363
+ "mask-image-t-to-color": [{
2364
+ "mask-t-to": scaleColor()
2365
+ }],
2366
+ "mask-image-r-from-pos": [{
2367
+ "mask-r-from": scaleMaskImagePosition()
2368
+ }],
2369
+ "mask-image-r-to-pos": [{
2370
+ "mask-r-to": scaleMaskImagePosition()
2371
+ }],
2372
+ "mask-image-r-from-color": [{
2373
+ "mask-r-from": scaleColor()
2374
+ }],
2375
+ "mask-image-r-to-color": [{
2376
+ "mask-r-to": scaleColor()
2377
+ }],
2378
+ "mask-image-b-from-pos": [{
2379
+ "mask-b-from": scaleMaskImagePosition()
2380
+ }],
2381
+ "mask-image-b-to-pos": [{
2382
+ "mask-b-to": scaleMaskImagePosition()
2383
+ }],
2384
+ "mask-image-b-from-color": [{
2385
+ "mask-b-from": scaleColor()
2386
+ }],
2387
+ "mask-image-b-to-color": [{
2388
+ "mask-b-to": scaleColor()
2389
+ }],
2390
+ "mask-image-l-from-pos": [{
2391
+ "mask-l-from": scaleMaskImagePosition()
2392
+ }],
2393
+ "mask-image-l-to-pos": [{
2394
+ "mask-l-to": scaleMaskImagePosition()
2395
+ }],
2396
+ "mask-image-l-from-color": [{
2397
+ "mask-l-from": scaleColor()
2398
+ }],
2399
+ "mask-image-l-to-color": [{
2400
+ "mask-l-to": scaleColor()
2401
+ }],
2402
+ "mask-image-x-from-pos": [{
2403
+ "mask-x-from": scaleMaskImagePosition()
2404
+ }],
2405
+ "mask-image-x-to-pos": [{
2406
+ "mask-x-to": scaleMaskImagePosition()
2407
+ }],
2408
+ "mask-image-x-from-color": [{
2409
+ "mask-x-from": scaleColor()
2410
+ }],
2411
+ "mask-image-x-to-color": [{
2412
+ "mask-x-to": scaleColor()
2413
+ }],
2414
+ "mask-image-y-from-pos": [{
2415
+ "mask-y-from": scaleMaskImagePosition()
2416
+ }],
2417
+ "mask-image-y-to-pos": [{
2418
+ "mask-y-to": scaleMaskImagePosition()
2419
+ }],
2420
+ "mask-image-y-from-color": [{
2421
+ "mask-y-from": scaleColor()
2422
+ }],
2423
+ "mask-image-y-to-color": [{
2424
+ "mask-y-to": scaleColor()
2425
+ }],
2426
+ "mask-image-radial": [{
2427
+ "mask-radial": [isArbitraryVariable, isArbitraryValue]
2428
+ }],
2429
+ "mask-image-radial-from-pos": [{
2430
+ "mask-radial-from": scaleMaskImagePosition()
2431
+ }],
2432
+ "mask-image-radial-to-pos": [{
2433
+ "mask-radial-to": scaleMaskImagePosition()
2434
+ }],
2435
+ "mask-image-radial-from-color": [{
2436
+ "mask-radial-from": scaleColor()
2437
+ }],
2438
+ "mask-image-radial-to-color": [{
2439
+ "mask-radial-to": scaleColor()
2440
+ }],
2441
+ "mask-image-radial-shape": [{
2442
+ "mask-radial": ["circle", "ellipse"]
2443
+ }],
2444
+ "mask-image-radial-size": [{
2445
+ "mask-radial": [{
2446
+ closest: ["side", "corner"],
2447
+ farthest: ["side", "corner"]
2448
+ }]
2449
+ }],
2450
+ "mask-image-radial-pos": [{
2451
+ "mask-radial-at": scalePosition()
2452
+ }],
2453
+ "mask-image-conic-pos": [{
2454
+ "mask-conic": [isNumber]
2455
+ }],
2456
+ "mask-image-conic-from-pos": [{
2457
+ "mask-conic-from": scaleMaskImagePosition()
2458
+ }],
2459
+ "mask-image-conic-to-pos": [{
2460
+ "mask-conic-to": scaleMaskImagePosition()
2461
+ }],
2462
+ "mask-image-conic-from-color": [{
2463
+ "mask-conic-from": scaleColor()
2464
+ }],
2465
+ "mask-image-conic-to-color": [{
2466
+ "mask-conic-to": scaleColor()
2467
+ }],
2468
+ /**
2469
+ * Mask Mode
2470
+ * @see https://tailwindcss.com/docs/mask-mode
2471
+ */
2472
+ "mask-mode": [{
2473
+ mask: ["alpha", "luminance", "match"]
2474
+ }],
2475
+ /**
2476
+ * Mask Origin
2477
+ * @see https://tailwindcss.com/docs/mask-origin
2478
+ */
2479
+ "mask-origin": [{
2480
+ "mask-origin": ["border", "padding", "content", "fill", "stroke", "view"]
2481
+ }],
2482
+ /**
2483
+ * Mask Position
2484
+ * @see https://tailwindcss.com/docs/mask-position
2485
+ */
2486
+ "mask-position": [{
2487
+ mask: scaleBgPosition()
2488
+ }],
2489
+ /**
2490
+ * Mask Repeat
2491
+ * @see https://tailwindcss.com/docs/mask-repeat
2492
+ */
2493
+ "mask-repeat": [{
2494
+ mask: scaleBgRepeat()
2495
+ }],
2496
+ /**
2497
+ * Mask Size
2498
+ * @see https://tailwindcss.com/docs/mask-size
2499
+ */
2500
+ "mask-size": [{
2501
+ mask: scaleBgSize()
2502
+ }],
2503
+ /**
2504
+ * Mask Type
2505
+ * @see https://tailwindcss.com/docs/mask-type
2506
+ */
2507
+ "mask-type": [{
2508
+ "mask-type": ["alpha", "luminance"]
2509
+ }],
2510
+ /**
2511
+ * Mask Image
2512
+ * @see https://tailwindcss.com/docs/mask-image
2513
+ */
2514
+ "mask-image": [{
2515
+ mask: ["none", isArbitraryVariable, isArbitraryValue]
2516
+ }],
2517
+ // ---------------
2518
+ // --- Filters ---
2519
+ // ---------------
2520
+ /**
2521
+ * Filter
2522
+ * @see https://tailwindcss.com/docs/filter
2523
+ */
2524
+ filter: [{
2525
+ filter: [
2526
+ // Deprecated since Tailwind CSS v3.0.0
2527
+ "",
2528
+ "none",
2529
+ isArbitraryVariable,
2530
+ isArbitraryValue
2531
+ ]
2532
+ }],
2533
+ /**
2534
+ * Blur
2535
+ * @see https://tailwindcss.com/docs/blur
2536
+ */
2537
+ blur: [{
2538
+ blur: scaleBlur()
2539
+ }],
2540
+ /**
2541
+ * Brightness
2542
+ * @see https://tailwindcss.com/docs/brightness
2543
+ */
2544
+ brightness: [{
2545
+ brightness: [isNumber, isArbitraryVariable, isArbitraryValue]
2546
+ }],
2547
+ /**
2548
+ * Contrast
2549
+ * @see https://tailwindcss.com/docs/contrast
2550
+ */
2551
+ contrast: [{
2552
+ contrast: [isNumber, isArbitraryVariable, isArbitraryValue]
2553
+ }],
2554
+ /**
2555
+ * Drop Shadow
2556
+ * @see https://tailwindcss.com/docs/drop-shadow
2557
+ */
2558
+ "drop-shadow": [{
2559
+ "drop-shadow": [
2560
+ // Deprecated since Tailwind CSS v4.0.0
2561
+ "",
2562
+ "none",
2563
+ themeDropShadow,
2564
+ isArbitraryVariableShadow,
2565
+ isArbitraryShadow
2566
+ ]
2567
+ }],
2568
+ /**
2569
+ * Drop Shadow Color
2570
+ * @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
2571
+ */
2572
+ "drop-shadow-color": [{
2573
+ "drop-shadow": scaleColor()
2574
+ }],
2575
+ /**
2576
+ * Grayscale
2577
+ * @see https://tailwindcss.com/docs/grayscale
2578
+ */
2579
+ grayscale: [{
2580
+ grayscale: ["", isNumber, isArbitraryVariable, isArbitraryValue]
2581
+ }],
2582
+ /**
2583
+ * Hue Rotate
2584
+ * @see https://tailwindcss.com/docs/hue-rotate
2585
+ */
2586
+ "hue-rotate": [{
2587
+ "hue-rotate": [isNumber, isArbitraryVariable, isArbitraryValue]
2588
+ }],
2589
+ /**
2590
+ * Invert
2591
+ * @see https://tailwindcss.com/docs/invert
2592
+ */
2593
+ invert: [{
2594
+ invert: ["", isNumber, isArbitraryVariable, isArbitraryValue]
2595
+ }],
2596
+ /**
2597
+ * Saturate
2598
+ * @see https://tailwindcss.com/docs/saturate
2599
+ */
2600
+ saturate: [{
2601
+ saturate: [isNumber, isArbitraryVariable, isArbitraryValue]
2602
+ }],
2603
+ /**
2604
+ * Sepia
2605
+ * @see https://tailwindcss.com/docs/sepia
2606
+ */
2607
+ sepia: [{
2608
+ sepia: ["", isNumber, isArbitraryVariable, isArbitraryValue]
2609
+ }],
2610
+ /**
2611
+ * Backdrop Filter
2612
+ * @see https://tailwindcss.com/docs/backdrop-filter
2613
+ */
2614
+ "backdrop-filter": [{
2615
+ "backdrop-filter": [
2616
+ // Deprecated since Tailwind CSS v3.0.0
2617
+ "",
2618
+ "none",
2619
+ isArbitraryVariable,
2620
+ isArbitraryValue
2621
+ ]
2622
+ }],
2623
+ /**
2624
+ * Backdrop Blur
2625
+ * @see https://tailwindcss.com/docs/backdrop-blur
2626
+ */
2627
+ "backdrop-blur": [{
2628
+ "backdrop-blur": scaleBlur()
2629
+ }],
2630
+ /**
2631
+ * Backdrop Brightness
2632
+ * @see https://tailwindcss.com/docs/backdrop-brightness
2633
+ */
2634
+ "backdrop-brightness": [{
2635
+ "backdrop-brightness": [isNumber, isArbitraryVariable, isArbitraryValue]
2636
+ }],
2637
+ /**
2638
+ * Backdrop Contrast
2639
+ * @see https://tailwindcss.com/docs/backdrop-contrast
2640
+ */
2641
+ "backdrop-contrast": [{
2642
+ "backdrop-contrast": [isNumber, isArbitraryVariable, isArbitraryValue]
2643
+ }],
2644
+ /**
2645
+ * Backdrop Grayscale
2646
+ * @see https://tailwindcss.com/docs/backdrop-grayscale
2647
+ */
2648
+ "backdrop-grayscale": [{
2649
+ "backdrop-grayscale": ["", isNumber, isArbitraryVariable, isArbitraryValue]
2650
+ }],
2651
+ /**
2652
+ * Backdrop Hue Rotate
2653
+ * @see https://tailwindcss.com/docs/backdrop-hue-rotate
2654
+ */
2655
+ "backdrop-hue-rotate": [{
2656
+ "backdrop-hue-rotate": [isNumber, isArbitraryVariable, isArbitraryValue]
2657
+ }],
2658
+ /**
2659
+ * Backdrop Invert
2660
+ * @see https://tailwindcss.com/docs/backdrop-invert
2661
+ */
2662
+ "backdrop-invert": [{
2663
+ "backdrop-invert": ["", isNumber, isArbitraryVariable, isArbitraryValue]
2664
+ }],
2665
+ /**
2666
+ * Backdrop Opacity
2667
+ * @see https://tailwindcss.com/docs/backdrop-opacity
2668
+ */
2669
+ "backdrop-opacity": [{
2670
+ "backdrop-opacity": [isNumber, isArbitraryVariable, isArbitraryValue]
2671
+ }],
2672
+ /**
2673
+ * Backdrop Saturate
2674
+ * @see https://tailwindcss.com/docs/backdrop-saturate
2675
+ */
2676
+ "backdrop-saturate": [{
2677
+ "backdrop-saturate": [isNumber, isArbitraryVariable, isArbitraryValue]
2678
+ }],
2679
+ /**
2680
+ * Backdrop Sepia
2681
+ * @see https://tailwindcss.com/docs/backdrop-sepia
2682
+ */
2683
+ "backdrop-sepia": [{
2684
+ "backdrop-sepia": ["", isNumber, isArbitraryVariable, isArbitraryValue]
2685
+ }],
2686
+ // --------------
2687
+ // --- Tables ---
2688
+ // --------------
2689
+ /**
2690
+ * Border Collapse
2691
+ * @see https://tailwindcss.com/docs/border-collapse
2692
+ */
2693
+ "border-collapse": [{
2694
+ border: ["collapse", "separate"]
2695
+ }],
2696
+ /**
2697
+ * Border Spacing
2698
+ * @see https://tailwindcss.com/docs/border-spacing
2699
+ */
2700
+ "border-spacing": [{
2701
+ "border-spacing": scaleUnambiguousSpacing()
2702
+ }],
2703
+ /**
2704
+ * Border Spacing X
2705
+ * @see https://tailwindcss.com/docs/border-spacing
2706
+ */
2707
+ "border-spacing-x": [{
2708
+ "border-spacing-x": scaleUnambiguousSpacing()
2709
+ }],
2710
+ /**
2711
+ * Border Spacing Y
2712
+ * @see https://tailwindcss.com/docs/border-spacing
2713
+ */
2714
+ "border-spacing-y": [{
2715
+ "border-spacing-y": scaleUnambiguousSpacing()
2716
+ }],
2717
+ /**
2718
+ * Table Layout
2719
+ * @see https://tailwindcss.com/docs/table-layout
2720
+ */
2721
+ "table-layout": [{
2722
+ table: ["auto", "fixed"]
2723
+ }],
2724
+ /**
2725
+ * Caption Side
2726
+ * @see https://tailwindcss.com/docs/caption-side
2727
+ */
2728
+ caption: [{
2729
+ caption: ["top", "bottom"]
2730
+ }],
2731
+ // ---------------------------------
2732
+ // --- Transitions and Animation ---
2733
+ // ---------------------------------
2734
+ /**
2735
+ * Transition Property
2736
+ * @see https://tailwindcss.com/docs/transition-property
2737
+ */
2738
+ transition: [{
2739
+ transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", isArbitraryVariable, isArbitraryValue]
2740
+ }],
2741
+ /**
2742
+ * Transition Behavior
2743
+ * @see https://tailwindcss.com/docs/transition-behavior
2744
+ */
2745
+ "transition-behavior": [{
2746
+ transition: ["normal", "discrete"]
2747
+ }],
2748
+ /**
2749
+ * Transition Duration
2750
+ * @see https://tailwindcss.com/docs/transition-duration
2751
+ */
2752
+ duration: [{
2753
+ duration: [isNumber, "initial", isArbitraryVariable, isArbitraryValue]
2754
+ }],
2755
+ /**
2756
+ * Transition Timing Function
2757
+ * @see https://tailwindcss.com/docs/transition-timing-function
2758
+ */
2759
+ ease: [{
2760
+ ease: ["linear", "initial", themeEase, isArbitraryVariable, isArbitraryValue]
2761
+ }],
2762
+ /**
2763
+ * Transition Delay
2764
+ * @see https://tailwindcss.com/docs/transition-delay
2765
+ */
2766
+ delay: [{
2767
+ delay: [isNumber, isArbitraryVariable, isArbitraryValue]
2768
+ }],
2769
+ /**
2770
+ * Animation
2771
+ * @see https://tailwindcss.com/docs/animation
2772
+ */
2773
+ animate: [{
2774
+ animate: ["none", themeAnimate, isArbitraryVariable, isArbitraryValue]
2775
+ }],
2776
+ // ------------------
2777
+ // --- Transforms ---
2778
+ // ------------------
2779
+ /**
2780
+ * Backface Visibility
2781
+ * @see https://tailwindcss.com/docs/backface-visibility
2782
+ */
2783
+ backface: [{
2784
+ backface: ["hidden", "visible"]
2785
+ }],
2786
+ /**
2787
+ * Perspective
2788
+ * @see https://tailwindcss.com/docs/perspective
2789
+ */
2790
+ perspective: [{
2791
+ perspective: [themePerspective, isArbitraryVariable, isArbitraryValue]
2792
+ }],
2793
+ /**
2794
+ * Perspective Origin
2795
+ * @see https://tailwindcss.com/docs/perspective-origin
2796
+ */
2797
+ "perspective-origin": [{
2798
+ "perspective-origin": scalePositionWithArbitrary()
2799
+ }],
2800
+ /**
2801
+ * Rotate
2802
+ * @see https://tailwindcss.com/docs/rotate
2803
+ */
2804
+ rotate: [{
2805
+ rotate: scaleRotate()
2806
+ }],
2807
+ /**
2808
+ * Rotate X
2809
+ * @see https://tailwindcss.com/docs/rotate
2810
+ */
2811
+ "rotate-x": [{
2812
+ "rotate-x": scaleRotate()
2813
+ }],
2814
+ /**
2815
+ * Rotate Y
2816
+ * @see https://tailwindcss.com/docs/rotate
2817
+ */
2818
+ "rotate-y": [{
2819
+ "rotate-y": scaleRotate()
2820
+ }],
2821
+ /**
2822
+ * Rotate Z
2823
+ * @see https://tailwindcss.com/docs/rotate
2824
+ */
2825
+ "rotate-z": [{
2826
+ "rotate-z": scaleRotate()
2827
+ }],
2828
+ /**
2829
+ * Scale
2830
+ * @see https://tailwindcss.com/docs/scale
2831
+ */
2832
+ scale: [{
2833
+ scale: scaleScale()
2834
+ }],
2835
+ /**
2836
+ * Scale X
2837
+ * @see https://tailwindcss.com/docs/scale
2838
+ */
2839
+ "scale-x": [{
2840
+ "scale-x": scaleScale()
2841
+ }],
2842
+ /**
2843
+ * Scale Y
2844
+ * @see https://tailwindcss.com/docs/scale
2845
+ */
2846
+ "scale-y": [{
2847
+ "scale-y": scaleScale()
2848
+ }],
2849
+ /**
2850
+ * Scale Z
2851
+ * @see https://tailwindcss.com/docs/scale
2852
+ */
2853
+ "scale-z": [{
2854
+ "scale-z": scaleScale()
2855
+ }],
2856
+ /**
2857
+ * Scale 3D
2858
+ * @see https://tailwindcss.com/docs/scale
2859
+ */
2860
+ "scale-3d": ["scale-3d"],
2861
+ /**
2862
+ * Skew
2863
+ * @see https://tailwindcss.com/docs/skew
2864
+ */
2865
+ skew: [{
2866
+ skew: scaleSkew()
2867
+ }],
2868
+ /**
2869
+ * Skew X
2870
+ * @see https://tailwindcss.com/docs/skew
2871
+ */
2872
+ "skew-x": [{
2873
+ "skew-x": scaleSkew()
2874
+ }],
2875
+ /**
2876
+ * Skew Y
2877
+ * @see https://tailwindcss.com/docs/skew
2878
+ */
2879
+ "skew-y": [{
2880
+ "skew-y": scaleSkew()
2881
+ }],
2882
+ /**
2883
+ * Transform
2884
+ * @see https://tailwindcss.com/docs/transform
2885
+ */
2886
+ transform: [{
2887
+ transform: [isArbitraryVariable, isArbitraryValue, "", "none", "gpu", "cpu"]
2888
+ }],
2889
+ /**
2890
+ * Transform Origin
2891
+ * @see https://tailwindcss.com/docs/transform-origin
2892
+ */
2893
+ "transform-origin": [{
2894
+ origin: scalePositionWithArbitrary()
2895
+ }],
2896
+ /**
2897
+ * Transform Style
2898
+ * @see https://tailwindcss.com/docs/transform-style
2899
+ */
2900
+ "transform-style": [{
2901
+ transform: ["3d", "flat"]
2902
+ }],
2903
+ /**
2904
+ * Translate
2905
+ * @see https://tailwindcss.com/docs/translate
2906
+ */
2907
+ translate: [{
2908
+ translate: scaleTranslate()
2909
+ }],
2910
+ /**
2911
+ * Translate X
2912
+ * @see https://tailwindcss.com/docs/translate
2913
+ */
2914
+ "translate-x": [{
2915
+ "translate-x": scaleTranslate()
2916
+ }],
2917
+ /**
2918
+ * Translate Y
2919
+ * @see https://tailwindcss.com/docs/translate
2920
+ */
2921
+ "translate-y": [{
2922
+ "translate-y": scaleTranslate()
2923
+ }],
2924
+ /**
2925
+ * Translate Z
2926
+ * @see https://tailwindcss.com/docs/translate
2927
+ */
2928
+ "translate-z": [{
2929
+ "translate-z": scaleTranslate()
2930
+ }],
2931
+ /**
2932
+ * Translate None
2933
+ * @see https://tailwindcss.com/docs/translate
2934
+ */
2935
+ "translate-none": ["translate-none"],
2936
+ /**
2937
+ * Zoom
2938
+ * @see https://tailwindcss.com/docs/zoom
2939
+ */
2940
+ zoom: [{
2941
+ zoom: [isInteger, isArbitraryVariable, isArbitraryValue]
2942
+ }],
2943
+ // ---------------------
2944
+ // --- Interactivity ---
2945
+ // ---------------------
2946
+ /**
2947
+ * Accent Color
2948
+ * @see https://tailwindcss.com/docs/accent-color
2949
+ */
2950
+ accent: [{
2951
+ accent: scaleColor()
2952
+ }],
2953
+ /**
2954
+ * Appearance
2955
+ * @see https://tailwindcss.com/docs/appearance
2956
+ */
2957
+ appearance: [{
2958
+ appearance: ["none", "auto"]
2959
+ }],
2960
+ /**
2961
+ * Caret Color
2962
+ * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
2963
+ */
2964
+ "caret-color": [{
2965
+ caret: scaleColor()
2966
+ }],
2967
+ /**
2968
+ * Color Scheme
2969
+ * @see https://tailwindcss.com/docs/color-scheme
2970
+ */
2971
+ "color-scheme": [{
2972
+ scheme: ["normal", "dark", "light", "light-dark", "only-dark", "only-light"]
2973
+ }],
2974
+ /**
2975
+ * Cursor
2976
+ * @see https://tailwindcss.com/docs/cursor
2977
+ */
2978
+ cursor: [{
2979
+ cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", isArbitraryVariable, isArbitraryValue]
2980
+ }],
2981
+ /**
2982
+ * Field Sizing
2983
+ * @see https://tailwindcss.com/docs/field-sizing
2984
+ */
2985
+ "field-sizing": [{
2986
+ "field-sizing": ["fixed", "content"]
2987
+ }],
2988
+ /**
2989
+ * Pointer Events
2990
+ * @see https://tailwindcss.com/docs/pointer-events
2991
+ */
2992
+ "pointer-events": [{
2993
+ "pointer-events": ["auto", "none"]
2994
+ }],
2995
+ /**
2996
+ * Resize
2997
+ * @see https://tailwindcss.com/docs/resize
2998
+ */
2999
+ resize: [{
3000
+ resize: ["none", "", "y", "x"]
3001
+ }],
3002
+ /**
3003
+ * Scroll Behavior
3004
+ * @see https://tailwindcss.com/docs/scroll-behavior
3005
+ */
3006
+ "scroll-behavior": [{
3007
+ scroll: ["auto", "smooth"]
3008
+ }],
3009
+ /**
3010
+ * Scrollbar Thumb Color
3011
+ * @see https://tailwindcss.com/docs/scrollbar-color
3012
+ */
3013
+ "scrollbar-thumb-color": [{
3014
+ "scrollbar-thumb": scaleColor()
3015
+ }],
3016
+ /**
3017
+ * Scrollbar Track Color
3018
+ * @see https://tailwindcss.com/docs/scrollbar-color
3019
+ */
3020
+ "scrollbar-track-color": [{
3021
+ "scrollbar-track": scaleColor()
3022
+ }],
3023
+ /**
3024
+ * Scrollbar Gutter
3025
+ * @see https://tailwindcss.com/docs/scrollbar-gutter
3026
+ */
3027
+ "scrollbar-gutter": [{
3028
+ "scrollbar-gutter": ["auto", "stable", "both"]
3029
+ }],
3030
+ /**
3031
+ * Scrollbar Width
3032
+ * @see https://tailwindcss.com/docs/scrollbar-width
3033
+ */
3034
+ "scrollbar-w": [{
3035
+ scrollbar: ["auto", "thin", "none"]
3036
+ }],
3037
+ /**
3038
+ * Scroll Margin
3039
+ * @see https://tailwindcss.com/docs/scroll-margin
3040
+ */
3041
+ "scroll-m": [{
3042
+ "scroll-m": scaleUnambiguousSpacing()
3043
+ }],
3044
+ /**
3045
+ * Scroll Margin Inline
3046
+ * @see https://tailwindcss.com/docs/scroll-margin
3047
+ */
3048
+ "scroll-mx": [{
3049
+ "scroll-mx": scaleUnambiguousSpacing()
3050
+ }],
3051
+ /**
3052
+ * Scroll Margin Block
3053
+ * @see https://tailwindcss.com/docs/scroll-margin
3054
+ */
3055
+ "scroll-my": [{
3056
+ "scroll-my": scaleUnambiguousSpacing()
3057
+ }],
3058
+ /**
3059
+ * Scroll Margin Inline Start
3060
+ * @see https://tailwindcss.com/docs/scroll-margin
3061
+ */
3062
+ "scroll-ms": [{
3063
+ "scroll-ms": scaleUnambiguousSpacing()
3064
+ }],
3065
+ /**
3066
+ * Scroll Margin Inline End
3067
+ * @see https://tailwindcss.com/docs/scroll-margin
3068
+ */
3069
+ "scroll-me": [{
3070
+ "scroll-me": scaleUnambiguousSpacing()
3071
+ }],
3072
+ /**
3073
+ * Scroll Margin Block Start
3074
+ * @see https://tailwindcss.com/docs/scroll-margin
3075
+ */
3076
+ "scroll-mbs": [{
3077
+ "scroll-mbs": scaleUnambiguousSpacing()
3078
+ }],
3079
+ /**
3080
+ * Scroll Margin Block End
3081
+ * @see https://tailwindcss.com/docs/scroll-margin
3082
+ */
3083
+ "scroll-mbe": [{
3084
+ "scroll-mbe": scaleUnambiguousSpacing()
3085
+ }],
3086
+ /**
3087
+ * Scroll Margin Top
3088
+ * @see https://tailwindcss.com/docs/scroll-margin
3089
+ */
3090
+ "scroll-mt": [{
3091
+ "scroll-mt": scaleUnambiguousSpacing()
3092
+ }],
3093
+ /**
3094
+ * Scroll Margin Right
3095
+ * @see https://tailwindcss.com/docs/scroll-margin
3096
+ */
3097
+ "scroll-mr": [{
3098
+ "scroll-mr": scaleUnambiguousSpacing()
3099
+ }],
3100
+ /**
3101
+ * Scroll Margin Bottom
3102
+ * @see https://tailwindcss.com/docs/scroll-margin
3103
+ */
3104
+ "scroll-mb": [{
3105
+ "scroll-mb": scaleUnambiguousSpacing()
3106
+ }],
3107
+ /**
3108
+ * Scroll Margin Left
3109
+ * @see https://tailwindcss.com/docs/scroll-margin
3110
+ */
3111
+ "scroll-ml": [{
3112
+ "scroll-ml": scaleUnambiguousSpacing()
3113
+ }],
3114
+ /**
3115
+ * Scroll Padding
3116
+ * @see https://tailwindcss.com/docs/scroll-padding
3117
+ */
3118
+ "scroll-p": [{
3119
+ "scroll-p": scaleUnambiguousSpacing()
3120
+ }],
3121
+ /**
3122
+ * Scroll Padding Inline
3123
+ * @see https://tailwindcss.com/docs/scroll-padding
3124
+ */
3125
+ "scroll-px": [{
3126
+ "scroll-px": scaleUnambiguousSpacing()
3127
+ }],
3128
+ /**
3129
+ * Scroll Padding Block
3130
+ * @see https://tailwindcss.com/docs/scroll-padding
3131
+ */
3132
+ "scroll-py": [{
3133
+ "scroll-py": scaleUnambiguousSpacing()
3134
+ }],
3135
+ /**
3136
+ * Scroll Padding Inline Start
3137
+ * @see https://tailwindcss.com/docs/scroll-padding
3138
+ */
3139
+ "scroll-ps": [{
3140
+ "scroll-ps": scaleUnambiguousSpacing()
3141
+ }],
3142
+ /**
3143
+ * Scroll Padding Inline End
3144
+ * @see https://tailwindcss.com/docs/scroll-padding
3145
+ */
3146
+ "scroll-pe": [{
3147
+ "scroll-pe": scaleUnambiguousSpacing()
3148
+ }],
3149
+ /**
3150
+ * Scroll Padding Block Start
3151
+ * @see https://tailwindcss.com/docs/scroll-padding
3152
+ */
3153
+ "scroll-pbs": [{
3154
+ "scroll-pbs": scaleUnambiguousSpacing()
3155
+ }],
3156
+ /**
3157
+ * Scroll Padding Block End
3158
+ * @see https://tailwindcss.com/docs/scroll-padding
3159
+ */
3160
+ "scroll-pbe": [{
3161
+ "scroll-pbe": scaleUnambiguousSpacing()
3162
+ }],
3163
+ /**
3164
+ * Scroll Padding Top
3165
+ * @see https://tailwindcss.com/docs/scroll-padding
3166
+ */
3167
+ "scroll-pt": [{
3168
+ "scroll-pt": scaleUnambiguousSpacing()
3169
+ }],
3170
+ /**
3171
+ * Scroll Padding Right
3172
+ * @see https://tailwindcss.com/docs/scroll-padding
3173
+ */
3174
+ "scroll-pr": [{
3175
+ "scroll-pr": scaleUnambiguousSpacing()
3176
+ }],
3177
+ /**
3178
+ * Scroll Padding Bottom
3179
+ * @see https://tailwindcss.com/docs/scroll-padding
3180
+ */
3181
+ "scroll-pb": [{
3182
+ "scroll-pb": scaleUnambiguousSpacing()
3183
+ }],
3184
+ /**
3185
+ * Scroll Padding Left
3186
+ * @see https://tailwindcss.com/docs/scroll-padding
3187
+ */
3188
+ "scroll-pl": [{
3189
+ "scroll-pl": scaleUnambiguousSpacing()
3190
+ }],
3191
+ /**
3192
+ * Scroll Snap Align
3193
+ * @see https://tailwindcss.com/docs/scroll-snap-align
3194
+ */
3195
+ "snap-align": [{
3196
+ snap: ["start", "end", "center", "align-none"]
3197
+ }],
3198
+ /**
3199
+ * Scroll Snap Stop
3200
+ * @see https://tailwindcss.com/docs/scroll-snap-stop
3201
+ */
3202
+ "snap-stop": [{
3203
+ snap: ["normal", "always"]
3204
+ }],
3205
+ /**
3206
+ * Scroll Snap Type
3207
+ * @see https://tailwindcss.com/docs/scroll-snap-type
3208
+ */
3209
+ "snap-type": [{
3210
+ snap: ["none", "x", "y", "both"]
3211
+ }],
3212
+ /**
3213
+ * Scroll Snap Type Strictness
3214
+ * @see https://tailwindcss.com/docs/scroll-snap-type
3215
+ */
3216
+ "snap-strictness": [{
3217
+ snap: ["mandatory", "proximity"]
3218
+ }],
3219
+ /**
3220
+ * Touch Action
3221
+ * @see https://tailwindcss.com/docs/touch-action
3222
+ */
3223
+ touch: [{
3224
+ touch: ["auto", "none", "manipulation"]
3225
+ }],
3226
+ /**
3227
+ * Touch Action X
3228
+ * @see https://tailwindcss.com/docs/touch-action
3229
+ */
3230
+ "touch-x": [{
3231
+ "touch-pan": ["x", "left", "right"]
3232
+ }],
3233
+ /**
3234
+ * Touch Action Y
3235
+ * @see https://tailwindcss.com/docs/touch-action
3236
+ */
3237
+ "touch-y": [{
3238
+ "touch-pan": ["y", "up", "down"]
3239
+ }],
3240
+ /**
3241
+ * Touch Action Pinch Zoom
3242
+ * @see https://tailwindcss.com/docs/touch-action
3243
+ */
3244
+ "touch-pz": ["touch-pinch-zoom"],
3245
+ /**
3246
+ * User Select
3247
+ * @see https://tailwindcss.com/docs/user-select
3248
+ */
3249
+ select: [{
3250
+ select: ["none", "text", "all", "auto"]
3251
+ }],
3252
+ /**
3253
+ * Will Change
3254
+ * @see https://tailwindcss.com/docs/will-change
3255
+ */
3256
+ "will-change": [{
3257
+ "will-change": ["auto", "scroll", "contents", "transform", isArbitraryVariable, isArbitraryValue]
3258
+ }],
3259
+ // -----------
3260
+ // --- SVG ---
3261
+ // -----------
3262
+ /**
3263
+ * Fill
3264
+ * @see https://tailwindcss.com/docs/fill
3265
+ */
3266
+ fill: [{
3267
+ fill: ["none", ...scaleColor()]
3268
+ }],
3269
+ /**
3270
+ * Stroke Width
3271
+ * @see https://tailwindcss.com/docs/stroke-width
3272
+ */
3273
+ "stroke-w": [{
3274
+ stroke: [isNumber, isArbitraryVariableLength, isArbitraryLength, isArbitraryNumber]
3275
+ }],
3276
+ /**
3277
+ * Stroke
3278
+ * @see https://tailwindcss.com/docs/stroke
3279
+ */
3280
+ stroke: [{
3281
+ stroke: ["none", ...scaleColor()]
3282
+ }],
3283
+ // ---------------------
3284
+ // --- Accessibility ---
3285
+ // ---------------------
3286
+ /**
3287
+ * Forced Color Adjust
3288
+ * @see https://tailwindcss.com/docs/forced-color-adjust
3289
+ */
3290
+ "forced-color-adjust": [{
3291
+ "forced-color-adjust": ["auto", "none"]
3292
+ }]
3293
+ },
3294
+ conflictingClassGroups: {
3295
+ "container-named": ["container-type"],
3296
+ overflow: ["overflow-x", "overflow-y"],
3297
+ overscroll: ["overscroll-x", "overscroll-y"],
3298
+ inset: ["inset-x", "inset-y", "inset-bs", "inset-be", "start", "end", "top", "right", "bottom", "left"],
3299
+ "inset-x": ["right", "left"],
3300
+ "inset-y": ["top", "bottom"],
3301
+ flex: ["basis", "grow", "shrink"],
3302
+ gap: ["gap-x", "gap-y"],
3303
+ p: ["px", "py", "ps", "pe", "pbs", "pbe", "pt", "pr", "pb", "pl"],
3304
+ px: ["pr", "pl"],
3305
+ py: ["pt", "pb"],
3306
+ m: ["mx", "my", "ms", "me", "mbs", "mbe", "mt", "mr", "mb", "ml"],
3307
+ mx: ["mr", "ml"],
3308
+ my: ["mt", "mb"],
3309
+ size: ["w", "h"],
3310
+ "font-size": ["leading"],
3311
+ "fvn-normal": ["fvn-ordinal", "fvn-slashed-zero", "fvn-figure", "fvn-spacing", "fvn-fraction"],
3312
+ "fvn-ordinal": ["fvn-normal"],
3313
+ "fvn-slashed-zero": ["fvn-normal"],
3314
+ "fvn-figure": ["fvn-normal"],
3315
+ "fvn-spacing": ["fvn-normal"],
3316
+ "fvn-fraction": ["fvn-normal"],
3317
+ "line-clamp": ["display", "overflow"],
3318
+ rounded: ["rounded-s", "rounded-e", "rounded-t", "rounded-r", "rounded-b", "rounded-l", "rounded-ss", "rounded-se", "rounded-ee", "rounded-es", "rounded-tl", "rounded-tr", "rounded-br", "rounded-bl"],
3319
+ "rounded-s": ["rounded-ss", "rounded-es"],
3320
+ "rounded-e": ["rounded-se", "rounded-ee"],
3321
+ "rounded-t": ["rounded-tl", "rounded-tr"],
3322
+ "rounded-r": ["rounded-tr", "rounded-br"],
3323
+ "rounded-b": ["rounded-br", "rounded-bl"],
3324
+ "rounded-l": ["rounded-tl", "rounded-bl"],
3325
+ "border-spacing": ["border-spacing-x", "border-spacing-y"],
3326
+ "border-w": ["border-w-x", "border-w-y", "border-w-s", "border-w-e", "border-w-bs", "border-w-be", "border-w-t", "border-w-r", "border-w-b", "border-w-l"],
3327
+ "border-w-x": ["border-w-r", "border-w-l"],
3328
+ "border-w-y": ["border-w-t", "border-w-b"],
3329
+ "border-color": ["border-color-x", "border-color-y", "border-color-s", "border-color-e", "border-color-bs", "border-color-be", "border-color-t", "border-color-r", "border-color-b", "border-color-l"],
3330
+ "border-color-x": ["border-color-r", "border-color-l"],
3331
+ "border-color-y": ["border-color-t", "border-color-b"],
3332
+ translate: ["translate-x", "translate-y", "translate-none"],
3333
+ "translate-none": ["translate", "translate-x", "translate-y", "translate-z"],
3334
+ "scroll-m": ["scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mbs", "scroll-mbe", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml"],
3335
+ "scroll-mx": ["scroll-mr", "scroll-ml"],
3336
+ "scroll-my": ["scroll-mt", "scroll-mb"],
3337
+ "scroll-p": ["scroll-px", "scroll-py", "scroll-ps", "scroll-pe", "scroll-pbs", "scroll-pbe", "scroll-pt", "scroll-pr", "scroll-pb", "scroll-pl"],
3338
+ "scroll-px": ["scroll-pr", "scroll-pl"],
3339
+ "scroll-py": ["scroll-pt", "scroll-pb"],
3340
+ touch: ["touch-x", "touch-y", "touch-pz"],
3341
+ "touch-x": ["touch"],
3342
+ "touch-y": ["touch"],
3343
+ "touch-pz": ["touch"]
3344
+ },
3345
+ conflictingClassGroupModifiers: {
3346
+ "font-size": ["leading"]
3347
+ },
3348
+ postfixLookupClassGroups: ["container-type"],
3349
+ orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
3350
+ };
3351
+ };
3352
+ var twMerge = /* @__PURE__ */ createTailwindMerge(getDefaultConfig);
3353
+
3354
+ // src/console/cn.ts
3355
+ function cn(...inputs) {
3356
+ return twMerge(clsx(inputs));
3357
+ }
3358
+
3359
+ // src/button.tsx
3360
+ var import_jsx_runtime = require("react/jsx-runtime");
3361
+ var HIT_AREA = "relative after:absolute after:left-1/2 after:top-1/2 after:size-full after:min-h-11 after:min-w-11 after:-translate-x-1/2 after:-translate-y-1/2";
3362
+ var SIZE = {
3363
+ sm: "h-8 gap-1.5 px-3 has-[>svg]:px-2.5",
3364
+ default: "h-9 px-4 py-2 has-[>svg]:px-3",
3365
+ icon: "size-8",
3366
+ "icon-sm": "size-7 rounded-md"
3367
+ };
3368
+ var buttonVariants = cva(
3369
+ `inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium transition-colors duration-150 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive ${HIT_AREA}`,
3370
+ {
3371
+ variants: {
3372
+ variant: {
3373
+ // The neutral default: navy in light, inverted in dark.
3374
+ default: "bg-primary text-primary-foreground hover:bg-primary/90",
3375
+ // The one dominant action of a task region: the dot orange, ink text.
3376
+ action: "bg-action text-action-foreground hover:bg-action/90",
3377
+ // Hover moves toward the foreground (darker in light, lighter in
3378
+ // dark): destructive/90 over white would drop white text to 4.30:1.
3379
+ destructive: "bg-destructive text-destructive-foreground hover:bg-[color-mix(in_srgb,var(--destructive)_88%,var(--foreground))]",
3380
+ outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
3381
+ secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
3382
+ ghost: "hover:bg-accent hover:text-accent-foreground",
3383
+ link: "text-link underline-offset-4 hover:underline after:hidden"
3384
+ },
3385
+ size: {
3386
+ ...SIZE,
3387
+ /** @deprecated Use `sm`. */
3388
+ xs: SIZE.sm,
3389
+ /** @deprecated Use `default`. */
3390
+ lg: SIZE.default,
3391
+ /** @deprecated Use `icon-sm`. */
3392
+ "icon-xs": SIZE["icon-sm"],
3393
+ /** @deprecated Use `icon`. */
3394
+ "icon-lg": SIZE.icon
3395
+ }
3396
+ },
3397
+ defaultVariants: {
3398
+ variant: "default",
3399
+ size: "sm"
3400
+ }
3401
+ }
3402
+ );
3403
+ var Button = React.forwardRef(function Button2({ className, variant = "default", size = "sm", asChild = false, disabled, onClick, ...props }, ref) {
3404
+ if (asChild && disabled) {
3405
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
3406
+ import_button_client.DisabledSlot,
3407
+ {
3408
+ ref,
3409
+ "data-slot": "button",
3410
+ "data-variant": variant,
3411
+ "data-size": size,
3412
+ className: cn(buttonVariants({ variant, size }), "pointer-events-none opacity-50", className),
3413
+ ...props
3414
+ }
3415
+ );
3416
+ }
3417
+ const Comp = asChild ? import_react_slot.Slot : "button";
3418
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
3419
+ Comp,
3420
+ {
3421
+ ref,
3422
+ "data-slot": "button",
3423
+ "data-variant": variant,
3424
+ "data-size": size,
3425
+ className: cn(buttonVariants({ variant, size, className })),
3426
+ disabled,
3427
+ onClick,
3428
+ ...props
3429
+ }
3430
+ );
3431
+ });
3432
+ // Annotate the CommonJS export names for ESM import in node:
3433
+ 0 && (module.exports = {
3434
+ Button,
3435
+ buttonVariants
3436
+ });