You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3669 lines
108 KiB

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