@unocss/preset-mini 0.57.5 → 0.57.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/colors.d.cts +1 -1
  2. package/dist/colors.d.mts +1 -1
  3. package/dist/colors.d.ts +1 -1
  4. package/dist/index.cjs +2 -2
  5. package/dist/index.d.cts +4 -4
  6. package/dist/index.d.mts +4 -4
  7. package/dist/index.d.ts +4 -4
  8. package/dist/index.mjs +3 -3
  9. package/dist/rules.cjs +13 -13
  10. package/dist/rules.d.cts +1 -1
  11. package/dist/rules.d.mts +1 -1
  12. package/dist/rules.d.ts +1 -1
  13. package/dist/rules.mjs +14 -14
  14. package/dist/shared/{preset-mini.zdwLl6RJ.d.mts → preset-mini.4DxDu2I8.d.mts} +1 -1
  15. package/dist/shared/{preset-mini.kcLG2qdT.d.cts → preset-mini.5-XKlNyK.d.cts} +1 -1
  16. package/dist/shared/{preset-mini.xS10lyTI.d.ts → preset-mini.5daNC9yh.d.ts} +1 -1
  17. package/dist/shared/{preset-mini.XbONgpj9.d.ts → preset-mini.7XoWRZIl.d.cts} +5 -0
  18. package/dist/shared/{preset-mini.XbONgpj9.d.cts → preset-mini.7XoWRZIl.d.mts} +5 -0
  19. package/dist/shared/{preset-mini.XbONgpj9.d.mts → preset-mini.7XoWRZIl.d.ts} +5 -0
  20. package/dist/shared/{preset-mini.ZU_IpTeH.cjs → preset-mini.ImRm63ih.cjs} +14 -11
  21. package/dist/shared/{preset-mini.I6gBcB-0.d.ts → preset-mini.Jpc0QYPj.d.cts} +5 -4
  22. package/dist/shared/{preset-mini.rQZBqEvF.cjs → preset-mini.MACvs-wn.cjs} +5 -5
  23. package/dist/shared/{preset-mini.k2FJE6fu.d.mts → preset-mini.QW22c5Df.d.ts} +5 -4
  24. package/dist/shared/{preset-mini.FlSC5Qpy.mjs → preset-mini.Stl9mkMB.mjs} +14 -11
  25. package/dist/shared/{preset-mini.lNfhAyxn.d.cts → preset-mini.XmVozI6N.d.mts} +5 -4
  26. package/dist/shared/{preset-mini.eC889yOr.mjs → preset-mini.dPVVIvNm.mjs} +5 -5
  27. package/dist/theme.cjs +2 -2
  28. package/dist/theme.d.cts +3 -3
  29. package/dist/theme.d.mts +3 -3
  30. package/dist/theme.d.ts +3 -3
  31. package/dist/theme.mjs +2 -2
  32. package/dist/utils.cjs +1 -1
  33. package/dist/utils.d.cts +4 -4
  34. package/dist/utils.d.mts +4 -4
  35. package/dist/utils.d.ts +4 -4
  36. package/dist/utils.mjs +1 -1
  37. package/dist/variants.cjs +1 -1
  38. package/dist/variants.d.cts +3 -3
  39. package/dist/variants.d.mts +3 -3
  40. package/dist/variants.d.ts +3 -3
  41. package/dist/variants.mjs +1 -1
  42. package/package.json +4 -4
package/dist/colors.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { C as Colors } from './shared/preset-mini.XbONgpj9.cjs';
1
+ import { C as Colors } from './shared/preset-mini.7XoWRZIl.cjs';
2
2
  import '@unocss/core';
3
3
 
4
4
  declare const colors: {
package/dist/colors.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { C as Colors } from './shared/preset-mini.XbONgpj9.mjs';
1
+ import { C as Colors } from './shared/preset-mini.7XoWRZIl.mjs';
2
2
  import '@unocss/core';
3
3
 
4
4
  declare const colors: {
package/dist/colors.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { C as Colors } from './shared/preset-mini.XbONgpj9.js';
1
+ import { C as Colors } from './shared/preset-mini.7XoWRZIl.js';
2
2
  import '@unocss/core';
3
3
 
4
4
  declare const colors: {
package/dist/index.cjs CHANGED
@@ -4,13 +4,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const core = require('@unocss/core');
6
6
  const extractorArbitraryVariants = require('@unocss/extractor-arbitrary-variants');
7
- const utils = require('./shared/preset-mini.ZU_IpTeH.cjs');
7
+ const utils = require('./shared/preset-mini.ImRm63ih.cjs');
8
8
  const theme = require('./theme.cjs');
9
9
  const rules = require('./rules.cjs');
10
10
  const variants = require('./variants.cjs');
11
11
  const colors = require('./colors.cjs');
12
12
  require('@unocss/rule-utils');
13
- require('./shared/preset-mini.rQZBqEvF.cjs');
13
+ require('./shared/preset-mini.MACvs-wn.cjs');
14
14
 
15
15
  const preflights = [
16
16
  {
package/dist/index.d.cts CHANGED
@@ -1,10 +1,10 @@
1
1
  import * as _unocss_core from '@unocss/core';
2
2
  import { Preflight, PresetOptions, Postprocessor } from '@unocss/core';
3
- import { T as Theme } from './shared/preset-mini.XbONgpj9.cjs';
4
- export { a as ThemeAnimation } from './shared/preset-mini.XbONgpj9.cjs';
5
- export { t as theme } from './shared/preset-mini.kcLG2qdT.cjs';
3
+ import { T as Theme } from './shared/preset-mini.7XoWRZIl.cjs';
4
+ export { a as ThemeAnimation } from './shared/preset-mini.7XoWRZIl.cjs';
5
+ export { t as theme } from './shared/preset-mini.5-XKlNyK.cjs';
6
6
  export { colors } from './colors.cjs';
7
- export { p as parseColor } from './shared/preset-mini.lNfhAyxn.cjs';
7
+ export { p as parseColor } from './shared/preset-mini.Jpc0QYPj.cjs';
8
8
 
9
9
  declare const preflights: Preflight<Theme>[];
10
10
 
package/dist/index.d.mts CHANGED
@@ -1,10 +1,10 @@
1
1
  import * as _unocss_core from '@unocss/core';
2
2
  import { Preflight, PresetOptions, Postprocessor } from '@unocss/core';
3
- import { T as Theme } from './shared/preset-mini.XbONgpj9.mjs';
4
- export { a as ThemeAnimation } from './shared/preset-mini.XbONgpj9.mjs';
5
- export { t as theme } from './shared/preset-mini.zdwLl6RJ.mjs';
3
+ import { T as Theme } from './shared/preset-mini.7XoWRZIl.mjs';
4
+ export { a as ThemeAnimation } from './shared/preset-mini.7XoWRZIl.mjs';
5
+ export { t as theme } from './shared/preset-mini.4DxDu2I8.mjs';
6
6
  export { colors } from './colors.mjs';
7
- export { p as parseColor } from './shared/preset-mini.k2FJE6fu.mjs';
7
+ export { p as parseColor } from './shared/preset-mini.XmVozI6N.mjs';
8
8
 
9
9
  declare const preflights: Preflight<Theme>[];
10
10
 
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import * as _unocss_core from '@unocss/core';
2
2
  import { Preflight, PresetOptions, Postprocessor } from '@unocss/core';
3
- import { T as Theme } from './shared/preset-mini.XbONgpj9.js';
4
- export { a as ThemeAnimation } from './shared/preset-mini.XbONgpj9.js';
5
- export { t as theme } from './shared/preset-mini.xS10lyTI.js';
3
+ import { T as Theme } from './shared/preset-mini.7XoWRZIl.js';
4
+ export { a as ThemeAnimation } from './shared/preset-mini.7XoWRZIl.js';
5
+ export { t as theme } from './shared/preset-mini.5daNC9yh.js';
6
6
  export { colors } from './colors.js';
7
- export { p as parseColor } from './shared/preset-mini.I6gBcB-0.js';
7
+ export { p as parseColor } from './shared/preset-mini.QW22c5Df.js';
8
8
 
9
9
  declare const preflights: Preflight<Theme>[];
10
10
 
package/dist/index.mjs CHANGED
@@ -1,13 +1,13 @@
1
1
  import { entriesToCss, toArray, definePreset } from '@unocss/core';
2
2
  import { extractorArbitraryVariants } from '@unocss/extractor-arbitrary-variants';
3
- import { g as globalKeywords } from './shared/preset-mini.FlSC5Qpy.mjs';
4
- export { p as parseColor } from './shared/preset-mini.FlSC5Qpy.mjs';
3
+ import { g as globalKeywords } from './shared/preset-mini.Stl9mkMB.mjs';
4
+ export { p as parseColor } from './shared/preset-mini.Stl9mkMB.mjs';
5
5
  import { theme } from './theme.mjs';
6
6
  import { rules } from './rules.mjs';
7
7
  import { variants } from './variants.mjs';
8
8
  export { colors } from './colors.mjs';
9
9
  import '@unocss/rule-utils';
10
- import './shared/preset-mini.eC889yOr.mjs';
10
+ import './shared/preset-mini.dPVVIvNm.mjs';
11
11
 
12
12
  const preflights = [
13
13
  {
package/dist/rules.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- const utils = require('./shared/preset-mini.ZU_IpTeH.cjs');
3
+ const utils = require('./shared/preset-mini.ImRm63ih.cjs');
4
4
  const ruleUtils = require('@unocss/rule-utils');
5
5
  const core = require('@unocss/core');
6
- const transform = require('./shared/preset-mini.rQZBqEvF.cjs');
6
+ const transform = require('./shared/preset-mini.MACvs-wn.cjs');
7
7
 
8
8
  const verticalAlignAlias = {
9
9
  "mid": "middle",
@@ -39,7 +39,7 @@ const outline = [
39
39
  // size
40
40
  [/^outline-(?:width-|size-)?(.+)$/, ([, d], { theme }) => ({ "outline-width": theme.lineWidth?.[d] ?? utils.h.bracket.cssvar.global.px(d) }), { autocomplete: "outline-(width|size)-<num>" }],
41
41
  // color
42
- [/^outline-(?:color-)?(.+)$/, utils.colorResolver("outline-color", "outline-color"), { autocomplete: "outline-$colors" }],
42
+ [/^outline-(?:color-)?(.+)$/, utils.colorResolver("outline-color", "outline-color", "borderColor"), { autocomplete: "outline-$colors" }],
43
43
  // offset
44
44
  [/^outline-offset-(.+)$/, ([, d], { theme }) => ({ "outline-offset": theme.lineWidth?.[d] ?? utils.h.bracket.cssvar.global.px(d) }), { autocomplete: "outline-(offset)-<num>" }],
45
45
  // style
@@ -104,7 +104,7 @@ const borders = [
104
104
  ];
105
105
  function borderColorResolver(direction) {
106
106
  return ([, body], theme) => {
107
- const data = utils.parseColor(body, theme);
107
+ const data = utils.parseColor(body, theme, "borderColor");
108
108
  if (!data)
109
109
  return;
110
110
  const { alpha, color, cssColor } = data;
@@ -148,7 +148,7 @@ function handlerBorderSize([, a = "", b], { theme }) {
148
148
  return utils.directionMap[a].map((i) => [`border${i}-width`, v]);
149
149
  }
150
150
  function handlerBorderColor([, a = "", c], { theme }) {
151
- if (a in utils.directionMap && utils.hasParseableColor(c, theme)) {
151
+ if (a in utils.directionMap && utils.hasParseableColor(c, theme, "borderColor")) {
152
152
  return Object.assign(
153
153
  {},
154
154
  ...utils.directionMap[a].map((i) => borderColorResolver(i)(["", c], theme))
@@ -174,14 +174,14 @@ const opacity = [
174
174
  [/^op(?:acity)?-?(.+)$/, ([, d]) => ({ opacity: utils.h.bracket.percent.cssvar(d) })]
175
175
  ];
176
176
  const textColors = [
177
- [/^(?:color|c)-(.+)$/, utils.colorResolver("color", "text"), { autocomplete: "(color|c)-$colors" }],
177
+ [/^(?:color|c)-(.+)$/, utils.colorResolver("color", "text", "textColor"), { autocomplete: "(color|c)-$colors" }],
178
178
  // auto detection and fallback to font-size if the content looks like a size
179
- [/^text-(.+)$/, utils.colorResolver("color", "text", (css) => !css.color?.toString().match(utils.numberWithUnitRE)), { autocomplete: "text-$colors" }],
179
+ [/^text-(.+)$/, utils.colorResolver("color", "text", "textColor", (css) => !css.color?.toString().match(utils.numberWithUnitRE)), { autocomplete: "text-$colors" }],
180
180
  [/^(?:text|color|c)-(.+)$/, ([, v]) => utils.globalKeywords.includes(v) ? { color: v } : void 0, { autocomplete: `(text|color|c)-(${utils.globalKeywords.join("|")})` }],
181
181
  [/^(?:text|color|c)-op(?:acity)?-?(.+)$/, ([, opacity2]) => ({ "--un-text-opacity": utils.h.bracket.percent.cssvar(opacity2) }), { autocomplete: "(text|color|c)-(op|opacity)-<percent>" }]
182
182
  ];
183
183
  const bgColors = [
184
- [/^bg-(.+)$/, (...args) => utils.isSize(args[0][1]) ? void 0 : utils.colorResolver("background-color", "bg")(...args), { autocomplete: "bg-$colors" }],
184
+ [/^bg-(.+)$/, (...args) => utils.isSize(args[0][1]) ? void 0 : utils.colorResolver("background-color", "bg", "backgroundColor")(...args), { autocomplete: "bg-$colors" }],
185
185
  [/^bg-op(?:acity)?-?(.+)$/, ([, opacity2]) => ({ "--un-bg-opacity": utils.h.bracket.percent.cssvar(opacity2) }), { autocomplete: "bg-(op|opacity)-<percent>" }]
186
186
  ];
187
187
  const colorScheme = [
@@ -206,7 +206,7 @@ const textDecorations = [
206
206
  [/^(?:underline|decoration)-(auto|from-font)$/, ([, s]) => ({ "text-decoration-thickness": s }), { autocomplete: "(underline|decoration)-(auto|from-font)" }],
207
207
  // colors
208
208
  [/^(?:underline|decoration)-(.+)$/, (match, ctx) => {
209
- const result = utils.colorResolver("text-decoration-color", "line")(match, ctx);
209
+ const result = utils.colorResolver("text-decoration-color", "line", "borderColor")(match, ctx);
210
210
  if (result) {
211
211
  return {
212
212
  "-webkit-text-decoration-color": result["text-decoration-color"],
@@ -408,7 +408,7 @@ const textStrokes = [
408
408
  // widths
409
409
  [/^text-stroke(?:-(.+))?$/, ([, s], { theme }) => ({ "-webkit-text-stroke-width": theme.textStrokeWidth?.[s || "DEFAULT"] || utils.h.bracket.cssvar.px(s) }), { autocomplete: "text-stroke-$textStrokeWidth" }],
410
410
  // colors
411
- [/^text-stroke-(.+)$/, utils.colorResolver("-webkit-text-stroke-color", "text-stroke"), { autocomplete: "text-stroke-$colors" }],
411
+ [/^text-stroke-(.+)$/, utils.colorResolver("-webkit-text-stroke-color", "text-stroke", "borderColor"), { autocomplete: "text-stroke-$colors" }],
412
412
  [/^text-stroke-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-text-stroke-opacity": utils.h.bracket.percent.cssvar(opacity) }), { autocomplete: "text-stroke-(op|opacity)-<percent>" }]
413
413
  ];
414
414
  const textShadows = [
@@ -423,7 +423,7 @@ const textShadows = [
423
423
  return { "text-shadow": utils.h.bracket.cssvar.global(s) };
424
424
  }, { autocomplete: "text-shadow-$textShadow" }],
425
425
  // colors
426
- [/^text-shadow-color-(.+)$/, utils.colorResolver("--un-text-shadow-color", "text-shadow"), { autocomplete: "text-shadow-color-$colors" }],
426
+ [/^text-shadow-color-(.+)$/, utils.colorResolver("--un-text-shadow-color", "text-shadow", "shadowColor"), { autocomplete: "text-shadow-color-$colors" }],
427
427
  [/^text-shadow-color-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-text-shadow-opacity": utils.h.bracket.percent.cssvar(opacity) }), { autocomplete: "text-shadow-color-(op|opacity)-<percent>" }]
428
428
  ];
429
429
 
@@ -841,7 +841,7 @@ ${constructCSS({ animation: "__un_qm 0.5s ease-in-out alternate infinite" })}`;
841
841
 
842
842
  const svgUtilities = [
843
843
  // fills
844
- [/^fill-(.+)$/, utils.colorResolver("fill", "fill"), { autocomplete: "fill-$colors" }],
844
+ [/^fill-(.+)$/, utils.colorResolver("fill", "fill", "backgroundColor"), { autocomplete: "fill-$colors" }],
845
845
  [/^fill-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-fill-opacity": utils.h.bracket.percent.cssvar(opacity) }), { autocomplete: "fill-(op|opacity)-<percent>" }],
846
846
  ["fill-none", { fill: "none" }],
847
847
  // stroke size
@@ -850,7 +850,7 @@ const svgUtilities = [
850
850
  [/^stroke-dash-(.+)$/, ([, s]) => ({ "stroke-dasharray": utils.h.bracket.cssvar.number(s) }), { autocomplete: "stroke-dash-<num>" }],
851
851
  [/^stroke-offset-(.+)$/, ([, s], { theme }) => ({ "stroke-dashoffset": theme.lineWidth?.[s] ?? utils.h.bracket.cssvar.px.numberWithUnit(s) }), { autocomplete: "stroke-offset-$lineWidth" }],
852
852
  // stroke colors
853
- [/^stroke-(.+)$/, utils.colorResolver("stroke", "stroke"), { autocomplete: "stroke-$colors" }],
853
+ [/^stroke-(.+)$/, utils.colorResolver("stroke", "stroke", "borderColor"), { autocomplete: "stroke-$colors" }],
854
854
  [/^stroke-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-stroke-opacity": utils.h.bracket.percent.cssvar(opacity) }), { autocomplete: "stroke-(op|opacity)-<percent>" }],
855
855
  // line cap
856
856
  ["stroke-cap-square", { "stroke-linecap": "square" }],
package/dist/rules.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Rule, CSSEntries, StaticRule } from '@unocss/core';
2
- import { T as Theme } from './shared/preset-mini.XbONgpj9.cjs';
2
+ import { T as Theme } from './shared/preset-mini.7XoWRZIl.cjs';
3
3
 
4
4
  declare const verticalAligns: Rule[];
5
5
  declare const textAligns: Rule[];
package/dist/rules.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Rule, CSSEntries, StaticRule } from '@unocss/core';
2
- import { T as Theme } from './shared/preset-mini.XbONgpj9.mjs';
2
+ import { T as Theme } from './shared/preset-mini.7XoWRZIl.mjs';
3
3
 
4
4
  declare const verticalAligns: Rule[];
5
5
  declare const textAligns: Rule[];
package/dist/rules.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Rule, CSSEntries, StaticRule } from '@unocss/core';
2
- import { T as Theme } from './shared/preset-mini.XbONgpj9.js';
2
+ import { T as Theme } from './shared/preset-mini.7XoWRZIl.js';
3
3
 
4
4
  declare const verticalAligns: Rule[];
5
5
  declare const textAligns: Rule[];
package/dist/rules.mjs CHANGED
@@ -1,8 +1,8 @@
1
- import { g as globalKeywords, h, c as colorResolver, e as directionMap, a as hasParseableColor, f as cornerMap, p as parseColor, i as isCSSMathFn, n as numberWithUnitRE, j as isSize, m as makeGlobalStaticRules, s as splitShorthand, b as colorableShadows, k as insetMap, r as resolveBreakpoints, l as directionSize } from './shared/preset-mini.FlSC5Qpy.mjs';
1
+ import { g as globalKeywords, h, c as colorResolver, e as directionMap, a as hasParseableColor, f as cornerMap, p as parseColor, i as isCSSMathFn, n as numberWithUnitRE, j as isSize, m as makeGlobalStaticRules, s as splitShorthand, b as colorableShadows, k as insetMap, r as resolveBreakpoints, l as directionSize } from './shared/preset-mini.Stl9mkMB.mjs';
2
2
  import { colorToString, colorOpacityToString, hasThemeFn, transformThemeFn } from '@unocss/rule-utils';
3
3
  import { warnOnce, toArray } from '@unocss/core';
4
- import { d as displays, c as contentVisibility, a as contents, e as textOverflows, f as textTransforms, g as fontStyles, h as fontSmoothings, i as boxShadows, j as rings, k as cursors, l as appearances, p as pointerEvents, m as resizes, u as userSelects, w as whitespaces, n as breaks, o as transforms, q as contains, s as textWraps } from './shared/preset-mini.eC889yOr.mjs';
5
- export { b as boxShadowsBase, r as ringBase, t as transformBase, v as varEmpty } from './shared/preset-mini.eC889yOr.mjs';
4
+ import { d as displays, c as contentVisibility, a as contents, e as textOverflows, f as textTransforms, g as fontStyles, h as fontSmoothings, i as boxShadows, j as rings, k as cursors, l as appearances, p as pointerEvents, m as resizes, u as userSelects, w as whitespaces, n as breaks, o as transforms, q as contains, s as textWraps } from './shared/preset-mini.dPVVIvNm.mjs';
5
+ export { b as boxShadowsBase, r as ringBase, t as transformBase, v as varEmpty } from './shared/preset-mini.dPVVIvNm.mjs';
6
6
 
7
7
  const verticalAlignAlias = {
8
8
  "mid": "middle",
@@ -38,7 +38,7 @@ const outline = [
38
38
  // size
39
39
  [/^outline-(?:width-|size-)?(.+)$/, ([, d], { theme }) => ({ "outline-width": theme.lineWidth?.[d] ?? h.bracket.cssvar.global.px(d) }), { autocomplete: "outline-(width|size)-<num>" }],
40
40
  // color
41
- [/^outline-(?:color-)?(.+)$/, colorResolver("outline-color", "outline-color"), { autocomplete: "outline-$colors" }],
41
+ [/^outline-(?:color-)?(.+)$/, colorResolver("outline-color", "outline-color", "borderColor"), { autocomplete: "outline-$colors" }],
42
42
  // offset
43
43
  [/^outline-offset-(.+)$/, ([, d], { theme }) => ({ "outline-offset": theme.lineWidth?.[d] ?? h.bracket.cssvar.global.px(d) }), { autocomplete: "outline-(offset)-<num>" }],
44
44
  // style
@@ -103,7 +103,7 @@ const borders = [
103
103
  ];
104
104
  function borderColorResolver(direction) {
105
105
  return ([, body], theme) => {
106
- const data = parseColor(body, theme);
106
+ const data = parseColor(body, theme, "borderColor");
107
107
  if (!data)
108
108
  return;
109
109
  const { alpha, color, cssColor } = data;
@@ -147,7 +147,7 @@ function handlerBorderSize([, a = "", b], { theme }) {
147
147
  return directionMap[a].map((i) => [`border${i}-width`, v]);
148
148
  }
149
149
  function handlerBorderColor([, a = "", c], { theme }) {
150
- if (a in directionMap && hasParseableColor(c, theme)) {
150
+ if (a in directionMap && hasParseableColor(c, theme, "borderColor")) {
151
151
  return Object.assign(
152
152
  {},
153
153
  ...directionMap[a].map((i) => borderColorResolver(i)(["", c], theme))
@@ -173,14 +173,14 @@ const opacity = [
173
173
  [/^op(?:acity)?-?(.+)$/, ([, d]) => ({ opacity: h.bracket.percent.cssvar(d) })]
174
174
  ];
175
175
  const textColors = [
176
- [/^(?:color|c)-(.+)$/, colorResolver("color", "text"), { autocomplete: "(color|c)-$colors" }],
176
+ [/^(?:color|c)-(.+)$/, colorResolver("color", "text", "textColor"), { autocomplete: "(color|c)-$colors" }],
177
177
  // auto detection and fallback to font-size if the content looks like a size
178
- [/^text-(.+)$/, colorResolver("color", "text", (css) => !css.color?.toString().match(numberWithUnitRE)), { autocomplete: "text-$colors" }],
178
+ [/^text-(.+)$/, colorResolver("color", "text", "textColor", (css) => !css.color?.toString().match(numberWithUnitRE)), { autocomplete: "text-$colors" }],
179
179
  [/^(?:text|color|c)-(.+)$/, ([, v]) => globalKeywords.includes(v) ? { color: v } : void 0, { autocomplete: `(text|color|c)-(${globalKeywords.join("|")})` }],
180
180
  [/^(?:text|color|c)-op(?:acity)?-?(.+)$/, ([, opacity2]) => ({ "--un-text-opacity": h.bracket.percent.cssvar(opacity2) }), { autocomplete: "(text|color|c)-(op|opacity)-<percent>" }]
181
181
  ];
182
182
  const bgColors = [
183
- [/^bg-(.+)$/, (...args) => isSize(args[0][1]) ? void 0 : colorResolver("background-color", "bg")(...args), { autocomplete: "bg-$colors" }],
183
+ [/^bg-(.+)$/, (...args) => isSize(args[0][1]) ? void 0 : colorResolver("background-color", "bg", "backgroundColor")(...args), { autocomplete: "bg-$colors" }],
184
184
  [/^bg-op(?:acity)?-?(.+)$/, ([, opacity2]) => ({ "--un-bg-opacity": h.bracket.percent.cssvar(opacity2) }), { autocomplete: "bg-(op|opacity)-<percent>" }]
185
185
  ];
186
186
  const colorScheme = [
@@ -205,7 +205,7 @@ const textDecorations = [
205
205
  [/^(?:underline|decoration)-(auto|from-font)$/, ([, s]) => ({ "text-decoration-thickness": s }), { autocomplete: "(underline|decoration)-(auto|from-font)" }],
206
206
  // colors
207
207
  [/^(?:underline|decoration)-(.+)$/, (match, ctx) => {
208
- const result = colorResolver("text-decoration-color", "line")(match, ctx);
208
+ const result = colorResolver("text-decoration-color", "line", "borderColor")(match, ctx);
209
209
  if (result) {
210
210
  return {
211
211
  "-webkit-text-decoration-color": result["text-decoration-color"],
@@ -407,7 +407,7 @@ const textStrokes = [
407
407
  // widths
408
408
  [/^text-stroke(?:-(.+))?$/, ([, s], { theme }) => ({ "-webkit-text-stroke-width": theme.textStrokeWidth?.[s || "DEFAULT"] || h.bracket.cssvar.px(s) }), { autocomplete: "text-stroke-$textStrokeWidth" }],
409
409
  // colors
410
- [/^text-stroke-(.+)$/, colorResolver("-webkit-text-stroke-color", "text-stroke"), { autocomplete: "text-stroke-$colors" }],
410
+ [/^text-stroke-(.+)$/, colorResolver("-webkit-text-stroke-color", "text-stroke", "borderColor"), { autocomplete: "text-stroke-$colors" }],
411
411
  [/^text-stroke-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-text-stroke-opacity": h.bracket.percent.cssvar(opacity) }), { autocomplete: "text-stroke-(op|opacity)-<percent>" }]
412
412
  ];
413
413
  const textShadows = [
@@ -422,7 +422,7 @@ const textShadows = [
422
422
  return { "text-shadow": h.bracket.cssvar.global(s) };
423
423
  }, { autocomplete: "text-shadow-$textShadow" }],
424
424
  // colors
425
- [/^text-shadow-color-(.+)$/, colorResolver("--un-text-shadow-color", "text-shadow"), { autocomplete: "text-shadow-color-$colors" }],
425
+ [/^text-shadow-color-(.+)$/, colorResolver("--un-text-shadow-color", "text-shadow", "shadowColor"), { autocomplete: "text-shadow-color-$colors" }],
426
426
  [/^text-shadow-color-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-text-shadow-opacity": h.bracket.percent.cssvar(opacity) }), { autocomplete: "text-shadow-color-(op|opacity)-<percent>" }]
427
427
  ];
428
428
 
@@ -840,7 +840,7 @@ ${constructCSS({ animation: "__un_qm 0.5s ease-in-out alternate infinite" })}`;
840
840
 
841
841
  const svgUtilities = [
842
842
  // fills
843
- [/^fill-(.+)$/, colorResolver("fill", "fill"), { autocomplete: "fill-$colors" }],
843
+ [/^fill-(.+)$/, colorResolver("fill", "fill", "backgroundColor"), { autocomplete: "fill-$colors" }],
844
844
  [/^fill-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-fill-opacity": h.bracket.percent.cssvar(opacity) }), { autocomplete: "fill-(op|opacity)-<percent>" }],
845
845
  ["fill-none", { fill: "none" }],
846
846
  // stroke size
@@ -849,7 +849,7 @@ const svgUtilities = [
849
849
  [/^stroke-dash-(.+)$/, ([, s]) => ({ "stroke-dasharray": h.bracket.cssvar.number(s) }), { autocomplete: "stroke-dash-<num>" }],
850
850
  [/^stroke-offset-(.+)$/, ([, s], { theme }) => ({ "stroke-dashoffset": theme.lineWidth?.[s] ?? h.bracket.cssvar.px.numberWithUnit(s) }), { autocomplete: "stroke-offset-$lineWidth" }],
851
851
  // stroke colors
852
- [/^stroke-(.+)$/, colorResolver("stroke", "stroke"), { autocomplete: "stroke-$colors" }],
852
+ [/^stroke-(.+)$/, colorResolver("stroke", "stroke", "borderColor"), { autocomplete: "stroke-$colors" }],
853
853
  [/^stroke-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-stroke-opacity": h.bracket.percent.cssvar(opacity) }), { autocomplete: "stroke-(op|opacity)-<percent>" }],
854
854
  // line cap
855
855
  ["stroke-cap-square", { "stroke-linecap": "square" }],
@@ -1,5 +1,5 @@
1
1
  import * as _unocss_core from '@unocss/core';
2
- import { C as Colors } from './preset-mini.XbONgpj9.mjs';
2
+ import { C as Colors } from './preset-mini.7XoWRZIl.mjs';
3
3
 
4
4
  declare const theme: {
5
5
  width: {
@@ -1,5 +1,5 @@
1
1
  import * as _unocss_core from '@unocss/core';
2
- import { C as Colors } from './preset-mini.XbONgpj9.cjs';
2
+ import { C as Colors } from './preset-mini.7XoWRZIl.cjs';
3
3
 
4
4
  declare const theme: {
5
5
  width: {
@@ -1,5 +1,5 @@
1
1
  import * as _unocss_core from '@unocss/core';
2
- import { C as Colors } from './preset-mini.XbONgpj9.js';
2
+ import { C as Colors } from './preset-mini.7XoWRZIl.js';
3
3
 
4
4
  declare const theme: {
5
5
  width: {
@@ -29,6 +29,11 @@ interface Theme {
29
29
  breakpoints?: Record<string, string>;
30
30
  verticalBreakpoints?: Record<string, string>;
31
31
  colors?: Colors;
32
+ borderColor?: Colors;
33
+ backgroundColor?: Colors;
34
+ textColor?: Colors;
35
+ shadowColor?: Colors;
36
+ accentColor?: Colors;
32
37
  fontFamily?: Record<string, string>;
33
38
  fontSize?: Record<string, string | [string, string | CSSObject] | [string, string, string]>;
34
39
  fontWeight?: Record<string, string>;
@@ -29,6 +29,11 @@ interface Theme {
29
29
  breakpoints?: Record<string, string>;
30
30
  verticalBreakpoints?: Record<string, string>;
31
31
  colors?: Colors;
32
+ borderColor?: Colors;
33
+ backgroundColor?: Colors;
34
+ textColor?: Colors;
35
+ shadowColor?: Colors;
36
+ accentColor?: Colors;
32
37
  fontFamily?: Record<string, string>;
33
38
  fontSize?: Record<string, string | [string, string | CSSObject] | [string, string, string]>;
34
39
  fontWeight?: Record<string, string>;
@@ -29,6 +29,11 @@ interface Theme {
29
29
  breakpoints?: Record<string, string>;
30
30
  verticalBreakpoints?: Record<string, string>;
31
31
  colors?: Colors;
32
+ borderColor?: Colors;
33
+ backgroundColor?: Colors;
34
+ textColor?: Colors;
35
+ shadowColor?: Colors;
36
+ accentColor?: Colors;
32
37
  fontFamily?: Record<string, string>;
33
38
  fontSize?: Record<string, string | [string, string | CSSObject] | [string, string, string]>;
34
39
  fontWeight?: Record<string, string>;
@@ -370,8 +370,8 @@ function directionSize(propertyPrefix) {
370
370
  return directionMap[direction].map((i) => [`${propertyPrefix}${i}`, v]);
371
371
  };
372
372
  }
373
- function getThemeColor(theme, colors) {
374
- let obj = theme.colors;
373
+ function getThemeColorForKey(theme, colors, key = "colors") {
374
+ let obj = theme[key];
375
375
  let index = -1;
376
376
  for (const c of colors) {
377
377
  index += 1;
@@ -388,6 +388,9 @@ function getThemeColor(theme, colors) {
388
388
  }
389
389
  return obj;
390
390
  }
391
+ function getThemeColor(theme, colors, key) {
392
+ return getThemeColorForKey(theme, colors, key) || getThemeColorForKey(theme, colors, "colors");
393
+ }
391
394
  function splitShorthand(body, type) {
392
395
  const split = body.split(/(?:\/|:)/);
393
396
  if (split[0] === `[${type}`) {
@@ -398,7 +401,7 @@ function splitShorthand(body, type) {
398
401
  }
399
402
  return split;
400
403
  }
401
- function parseColor(body, theme) {
404
+ function parseColor(body, theme, key) {
402
405
  const [main, opacity] = splitShorthand(body, "color");
403
406
  const colors = main.replace(/([a-z])([0-9])/g, "$1-$2").split(/-/g);
404
407
  const [name] = colors;
@@ -417,7 +420,7 @@ function parseColor(body, theme) {
417
420
  color = h.cssvar(main);
418
421
  color = color || bracket;
419
422
  if (!color) {
420
- const colorData = getThemeColor(theme, [main]);
423
+ const colorData = getThemeColor(theme, [main], key);
421
424
  if (typeof colorData === "string")
422
425
  color = colorData;
423
426
  }
@@ -427,16 +430,16 @@ function parseColor(body, theme) {
427
430
  const [scale] = colors.slice(-1);
428
431
  if (scale.match(/^\d+$/)) {
429
432
  no = scale;
430
- colorData = getThemeColor(theme, colors.slice(0, -1));
433
+ colorData = getThemeColor(theme, colors.slice(0, -1), key);
431
434
  if (!colorData || typeof colorData === "string")
432
435
  color = void 0;
433
436
  else
434
437
  color = colorData[no];
435
438
  } else {
436
- colorData = getThemeColor(theme, colors);
439
+ colorData = getThemeColor(theme, colors, key);
437
440
  if (!colorData && colors.length <= 2) {
438
441
  [, no = no] = colors;
439
- colorData = getThemeColor(theme, [name]);
442
+ colorData = getThemeColor(theme, [name], key);
440
443
  }
441
444
  if (typeof colorData === "string")
442
445
  color = colorData;
@@ -453,9 +456,9 @@ function parseColor(body, theme) {
453
456
  alpha: h.bracket.cssvar.percent(opacity ?? "")
454
457
  };
455
458
  }
456
- function colorResolver(property, varName, shouldPass) {
459
+ function colorResolver(property, varName, key, shouldPass) {
457
460
  return ([, body], { theme }) => {
458
- const data = parseColor(body, theme);
461
+ const data = parseColor(body, theme, key);
459
462
  if (!data)
460
463
  return;
461
464
  const { alpha, color, cssColor } = data;
@@ -488,8 +491,8 @@ function colorableShadows(shadows, colorVar) {
488
491
  }
489
492
  return colored;
490
493
  }
491
- function hasParseableColor(color, theme) {
492
- return color != null && !!parseColor(color, theme)?.color;
494
+ function hasParseableColor(color, theme, key) {
495
+ return color != null && !!parseColor(color, theme, key)?.color;
493
496
  }
494
497
  function resolveBreakpoints({ theme, generator }, key = "breakpoints") {
495
498
  let breakpoints;
@@ -1,5 +1,5 @@
1
1
  import { DynamicMatcher, ParsedColorValue, CSSObject, VariantContext, StaticRule } from '@unocss/core';
2
- import { T as Theme } from './preset-mini.XbONgpj9.js';
2
+ import { T as Theme } from './preset-mini.7XoWRZIl.cjs';
3
3
 
4
4
  declare const CONTROL_MINI_NO_NEGATIVE = "$$mini-no-negative";
5
5
  /**
@@ -9,6 +9,7 @@ declare const CONTROL_MINI_NO_NEGATIVE = "$$mini-no-negative";
9
9
  * @see {@link directionMap}
10
10
  */
11
11
  declare function directionSize(propertyPrefix: string): DynamicMatcher;
12
+ type ThemeColorKeys = 'colors' | 'borderColor' | 'backgroundColor' | 'textColor' | 'shadowColor' | 'accentColor';
12
13
  /**
13
14
  * Split utility shorthand delimited by / or :
14
15
  */
@@ -27,7 +28,7 @@ declare function splitShorthand(body: string, type: string): string[];
27
28
  * @param theme - {@link Theme} object.
28
29
  * @return object if string is parseable.
29
30
  */
30
- declare function parseColor(body: string, theme: Theme): ParsedColorValue | undefined;
31
+ declare function parseColor(body: string, theme: Theme, key?: ThemeColorKeys): ParsedColorValue | undefined;
31
32
  /**
32
33
  * Provide {@link DynamicMatcher} function to produce color value matched from rule.
33
34
  *
@@ -54,9 +55,9 @@ declare function parseColor(body: string, theme: Theme): ParsedColorValue | unde
54
55
  * @param [shouldPass] - Function to decide whether to pass the css.
55
56
  * @return object.
56
57
  */
57
- declare function colorResolver(property: string, varName: string, shouldPass?: (css: CSSObject) => boolean): DynamicMatcher;
58
+ declare function colorResolver(property: string, varName: string, key?: ThemeColorKeys, shouldPass?: (css: CSSObject) => boolean): DynamicMatcher;
58
59
  declare function colorableShadows(shadows: string | string[], colorVar: string): string[];
59
- declare function hasParseableColor(color: string | undefined, theme: Theme): boolean;
60
+ declare function hasParseableColor(color: string | undefined, theme: Theme, key: ThemeColorKeys): boolean;
60
61
  declare function resolveBreakpoints({ theme, generator }: Readonly<VariantContext<Theme>>, key?: 'breakpoints' | 'verticalBreakpoints'): {
61
62
  point: string;
62
63
  size: string;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const utils = require('./preset-mini.ZU_IpTeH.cjs');
3
+ const utils = require('./preset-mini.ImRm63ih.cjs');
4
4
 
5
5
  const cursorValues = ["auto", "default", "none", "context-menu", "help", "pointer", "progress", "wait", "cell", "crosshair", "text", "vertical-text", "alias", "copy", "move", "no-drop", "not-allowed", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out"];
6
6
  const containValues = ["none", "strict", "content", "size", "inline-size", "layout", "style", "paint"];
@@ -146,10 +146,10 @@ const rings = [
146
146
  ["ring-offset", { "--un-ring-offset-width": "1px" }],
147
147
  [/^ring-offset-(?:width-|size-)?(.+)$/, ([, d], { theme }) => ({ "--un-ring-offset-width": theme.lineWidth?.[d] ?? utils.h.bracket.cssvar.px(d) }), { autocomplete: "ring-offset-(width|size)-$lineWidth" }],
148
148
  // colors
149
- [/^ring-(.+)$/, utils.colorResolver("--un-ring-color", "ring"), { autocomplete: "ring-$colors" }],
149
+ [/^ring-(.+)$/, utils.colorResolver("--un-ring-color", "ring", "borderColor"), { autocomplete: "ring-$colors" }],
150
150
  [/^ring-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-ring-opacity": utils.h.bracket.percent.cssvar(opacity) }), { autocomplete: "ring-(op|opacity)-<percent>" }],
151
151
  // offset color
152
- [/^ring-offset-(.+)$/, utils.colorResolver("--un-ring-offset-color", "ring-offset"), { autocomplete: "ring-offset-$colors" }],
152
+ [/^ring-offset-(.+)$/, utils.colorResolver("--un-ring-offset-color", "ring-offset", "borderColor"), { autocomplete: "ring-offset-$colors" }],
153
153
  [/^ring-offset-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-ring-offset-opacity": utils.h.bracket.percent.cssvar(opacity) }), { autocomplete: "ring-offset-(op|opacity)-<percent>" }],
154
154
  // style
155
155
  ["ring-inset", { "--un-ring-inset": "inset" }]
@@ -168,13 +168,13 @@ const boxShadows = [
168
168
  const { theme } = context;
169
169
  const v = theme.boxShadow?.[d || "DEFAULT"];
170
170
  const c = d ? utils.h.bracket.cssvar(d) : void 0;
171
- if ((v != null || c != null) && !utils.hasParseableColor(c, theme)) {
171
+ if ((v != null || c != null) && !utils.hasParseableColor(c, theme, "shadowColor")) {
172
172
  return {
173
173
  "--un-shadow": utils.colorableShadows(v || c, "--un-shadow-color").join(","),
174
174
  "box-shadow": "var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"
175
175
  };
176
176
  }
177
- return utils.colorResolver("--un-shadow-color", "shadow")(match, context);
177
+ return utils.colorResolver("--un-shadow-color", "shadow", "shadowColor")(match, context);
178
178
  }, { autocomplete: ["shadow-$colors", "shadow-$boxShadow"] }],
179
179
  [/^shadow-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-shadow-opacity": utils.h.bracket.percent.cssvar(opacity) }), { autocomplete: "shadow-(op|opacity)-<percent>" }],
180
180
  // inset
@@ -1,5 +1,5 @@
1
1
  import { DynamicMatcher, ParsedColorValue, CSSObject, VariantContext, StaticRule } from '@unocss/core';
2
- import { T as Theme } from './preset-mini.XbONgpj9.mjs';
2
+ import { T as Theme } from './preset-mini.7XoWRZIl.js';
3
3
 
4
4
  declare const CONTROL_MINI_NO_NEGATIVE = "$$mini-no-negative";
5
5
  /**
@@ -9,6 +9,7 @@ declare const CONTROL_MINI_NO_NEGATIVE = "$$mini-no-negative";
9
9
  * @see {@link directionMap}
10
10
  */
11
11
  declare function directionSize(propertyPrefix: string): DynamicMatcher;
12
+ type ThemeColorKeys = 'colors' | 'borderColor' | 'backgroundColor' | 'textColor' | 'shadowColor' | 'accentColor';
12
13
  /**
13
14
  * Split utility shorthand delimited by / or :
14
15
  */
@@ -27,7 +28,7 @@ declare function splitShorthand(body: string, type: string): string[];
27
28
  * @param theme - {@link Theme} object.
28
29
  * @return object if string is parseable.
29
30
  */
30
- declare function parseColor(body: string, theme: Theme): ParsedColorValue | undefined;
31
+ declare function parseColor(body: string, theme: Theme, key?: ThemeColorKeys): ParsedColorValue | undefined;
31
32
  /**
32
33
  * Provide {@link DynamicMatcher} function to produce color value matched from rule.
33
34
  *
@@ -54,9 +55,9 @@ declare function parseColor(body: string, theme: Theme): ParsedColorValue | unde
54
55
  * @param [shouldPass] - Function to decide whether to pass the css.
55
56
  * @return object.
56
57
  */
57
- declare function colorResolver(property: string, varName: string, shouldPass?: (css: CSSObject) => boolean): DynamicMatcher;
58
+ declare function colorResolver(property: string, varName: string, key?: ThemeColorKeys, shouldPass?: (css: CSSObject) => boolean): DynamicMatcher;
58
59
  declare function colorableShadows(shadows: string | string[], colorVar: string): string[];
59
- declare function hasParseableColor(color: string | undefined, theme: Theme): boolean;
60
+ declare function hasParseableColor(color: string | undefined, theme: Theme, key: ThemeColorKeys): boolean;
60
61
  declare function resolveBreakpoints({ theme, generator }: Readonly<VariantContext<Theme>>, key?: 'breakpoints' | 'verticalBreakpoints'): {
61
62
  point: string;
62
63
  size: string;
@@ -368,8 +368,8 @@ function directionSize(propertyPrefix) {
368
368
  return directionMap[direction].map((i) => [`${propertyPrefix}${i}`, v]);
369
369
  };
370
370
  }
371
- function getThemeColor(theme, colors) {
372
- let obj = theme.colors;
371
+ function getThemeColorForKey(theme, colors, key = "colors") {
372
+ let obj = theme[key];
373
373
  let index = -1;
374
374
  for (const c of colors) {
375
375
  index += 1;
@@ -386,6 +386,9 @@ function getThemeColor(theme, colors) {
386
386
  }
387
387
  return obj;
388
388
  }
389
+ function getThemeColor(theme, colors, key) {
390
+ return getThemeColorForKey(theme, colors, key) || getThemeColorForKey(theme, colors, "colors");
391
+ }
389
392
  function splitShorthand(body, type) {
390
393
  const split = body.split(/(?:\/|:)/);
391
394
  if (split[0] === `[${type}`) {
@@ -396,7 +399,7 @@ function splitShorthand(body, type) {
396
399
  }
397
400
  return split;
398
401
  }
399
- function parseColor(body, theme) {
402
+ function parseColor(body, theme, key) {
400
403
  const [main, opacity] = splitShorthand(body, "color");
401
404
  const colors = main.replace(/([a-z])([0-9])/g, "$1-$2").split(/-/g);
402
405
  const [name] = colors;
@@ -415,7 +418,7 @@ function parseColor(body, theme) {
415
418
  color = h.cssvar(main);
416
419
  color = color || bracket;
417
420
  if (!color) {
418
- const colorData = getThemeColor(theme, [main]);
421
+ const colorData = getThemeColor(theme, [main], key);
419
422
  if (typeof colorData === "string")
420
423
  color = colorData;
421
424
  }
@@ -425,16 +428,16 @@ function parseColor(body, theme) {
425
428
  const [scale] = colors.slice(-1);
426
429
  if (scale.match(/^\d+$/)) {
427
430
  no = scale;
428
- colorData = getThemeColor(theme, colors.slice(0, -1));
431
+ colorData = getThemeColor(theme, colors.slice(0, -1), key);
429
432
  if (!colorData || typeof colorData === "string")
430
433
  color = void 0;
431
434
  else
432
435
  color = colorData[no];
433
436
  } else {
434
- colorData = getThemeColor(theme, colors);
437
+ colorData = getThemeColor(theme, colors, key);
435
438
  if (!colorData && colors.length <= 2) {
436
439
  [, no = no] = colors;
437
- colorData = getThemeColor(theme, [name]);
440
+ colorData = getThemeColor(theme, [name], key);
438
441
  }
439
442
  if (typeof colorData === "string")
440
443
  color = colorData;
@@ -451,9 +454,9 @@ function parseColor(body, theme) {
451
454
  alpha: h.bracket.cssvar.percent(opacity ?? "")
452
455
  };
453
456
  }
454
- function colorResolver(property, varName, shouldPass) {
457
+ function colorResolver(property, varName, key, shouldPass) {
455
458
  return ([, body], { theme }) => {
456
- const data = parseColor(body, theme);
459
+ const data = parseColor(body, theme, key);
457
460
  if (!data)
458
461
  return;
459
462
  const { alpha, color, cssColor } = data;
@@ -486,8 +489,8 @@ function colorableShadows(shadows, colorVar) {
486
489
  }
487
490
  return colored;
488
491
  }
489
- function hasParseableColor(color, theme) {
490
- return color != null && !!parseColor(color, theme)?.color;
492
+ function hasParseableColor(color, theme, key) {
493
+ return color != null && !!parseColor(color, theme, key)?.color;
491
494
  }
492
495
  function resolveBreakpoints({ theme, generator }, key = "breakpoints") {
493
496
  let breakpoints;
@@ -1,5 +1,5 @@
1
1
  import { DynamicMatcher, ParsedColorValue, CSSObject, VariantContext, StaticRule } from '@unocss/core';
2
- import { T as Theme } from './preset-mini.XbONgpj9.cjs';
2
+ import { T as Theme } from './preset-mini.7XoWRZIl.mjs';
3
3
 
4
4
  declare const CONTROL_MINI_NO_NEGATIVE = "$$mini-no-negative";
5
5
  /**
@@ -9,6 +9,7 @@ declare const CONTROL_MINI_NO_NEGATIVE = "$$mini-no-negative";
9
9
  * @see {@link directionMap}
10
10
  */
11
11
  declare function directionSize(propertyPrefix: string): DynamicMatcher;
12
+ type ThemeColorKeys = 'colors' | 'borderColor' | 'backgroundColor' | 'textColor' | 'shadowColor' | 'accentColor';
12
13
  /**
13
14
  * Split utility shorthand delimited by / or :
14
15
  */
@@ -27,7 +28,7 @@ declare function splitShorthand(body: string, type: string): string[];
27
28
  * @param theme - {@link Theme} object.
28
29
  * @return object if string is parseable.
29
30
  */
30
- declare function parseColor(body: string, theme: Theme): ParsedColorValue | undefined;
31
+ declare function parseColor(body: string, theme: Theme, key?: ThemeColorKeys): ParsedColorValue | undefined;
31
32
  /**
32
33
  * Provide {@link DynamicMatcher} function to produce color value matched from rule.
33
34
  *
@@ -54,9 +55,9 @@ declare function parseColor(body: string, theme: Theme): ParsedColorValue | unde
54
55
  * @param [shouldPass] - Function to decide whether to pass the css.
55
56
  * @return object.
56
57
  */
57
- declare function colorResolver(property: string, varName: string, shouldPass?: (css: CSSObject) => boolean): DynamicMatcher;
58
+ declare function colorResolver(property: string, varName: string, key?: ThemeColorKeys, shouldPass?: (css: CSSObject) => boolean): DynamicMatcher;
58
59
  declare function colorableShadows(shadows: string | string[], colorVar: string): string[];
59
- declare function hasParseableColor(color: string | undefined, theme: Theme): boolean;
60
+ declare function hasParseableColor(color: string | undefined, theme: Theme, key: ThemeColorKeys): boolean;
60
61
  declare function resolveBreakpoints({ theme, generator }: Readonly<VariantContext<Theme>>, key?: 'breakpoints' | 'verticalBreakpoints'): {
61
62
  point: string;
62
63
  size: string;
@@ -1,4 +1,4 @@
1
- import { h, m as makeGlobalStaticRules, g as globalKeywords, c as colorResolver, a as hasParseableColor, b as colorableShadows, d as positionMap, x as xyzMap } from './preset-mini.FlSC5Qpy.mjs';
1
+ import { h, m as makeGlobalStaticRules, g as globalKeywords, c as colorResolver, a as hasParseableColor, b as colorableShadows, d as positionMap, x as xyzMap } from './preset-mini.Stl9mkMB.mjs';
2
2
 
3
3
  const cursorValues = ["auto", "default", "none", "context-menu", "help", "pointer", "progress", "wait", "cell", "crosshair", "text", "vertical-text", "alias", "copy", "move", "no-drop", "not-allowed", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out"];
4
4
  const containValues = ["none", "strict", "content", "size", "inline-size", "layout", "style", "paint"];
@@ -144,10 +144,10 @@ const rings = [
144
144
  ["ring-offset", { "--un-ring-offset-width": "1px" }],
145
145
  [/^ring-offset-(?:width-|size-)?(.+)$/, ([, d], { theme }) => ({ "--un-ring-offset-width": theme.lineWidth?.[d] ?? h.bracket.cssvar.px(d) }), { autocomplete: "ring-offset-(width|size)-$lineWidth" }],
146
146
  // colors
147
- [/^ring-(.+)$/, colorResolver("--un-ring-color", "ring"), { autocomplete: "ring-$colors" }],
147
+ [/^ring-(.+)$/, colorResolver("--un-ring-color", "ring", "borderColor"), { autocomplete: "ring-$colors" }],
148
148
  [/^ring-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-ring-opacity": h.bracket.percent.cssvar(opacity) }), { autocomplete: "ring-(op|opacity)-<percent>" }],
149
149
  // offset color
150
- [/^ring-offset-(.+)$/, colorResolver("--un-ring-offset-color", "ring-offset"), { autocomplete: "ring-offset-$colors" }],
150
+ [/^ring-offset-(.+)$/, colorResolver("--un-ring-offset-color", "ring-offset", "borderColor"), { autocomplete: "ring-offset-$colors" }],
151
151
  [/^ring-offset-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-ring-offset-opacity": h.bracket.percent.cssvar(opacity) }), { autocomplete: "ring-offset-(op|opacity)-<percent>" }],
152
152
  // style
153
153
  ["ring-inset", { "--un-ring-inset": "inset" }]
@@ -166,13 +166,13 @@ const boxShadows = [
166
166
  const { theme } = context;
167
167
  const v = theme.boxShadow?.[d || "DEFAULT"];
168
168
  const c = d ? h.bracket.cssvar(d) : void 0;
169
- if ((v != null || c != null) && !hasParseableColor(c, theme)) {
169
+ if ((v != null || c != null) && !hasParseableColor(c, theme, "shadowColor")) {
170
170
  return {
171
171
  "--un-shadow": colorableShadows(v || c, "--un-shadow-color").join(","),
172
172
  "box-shadow": "var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"
173
173
  };
174
174
  }
175
- return colorResolver("--un-shadow-color", "shadow")(match, context);
175
+ return colorResolver("--un-shadow-color", "shadow", "shadowColor")(match, context);
176
176
  }, { autocomplete: ["shadow-$colors", "shadow-$boxShadow"] }],
177
177
  [/^shadow-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-shadow-opacity": h.bracket.percent.cssvar(opacity) }), { autocomplete: "shadow-(op|opacity)-<percent>" }],
178
178
  // inset
package/dist/theme.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  const colors = require('./colors.cjs');
4
- const transform = require('./shared/preset-mini.rQZBqEvF.cjs');
5
- require('./shared/preset-mini.ZU_IpTeH.cjs');
4
+ const transform = require('./shared/preset-mini.MACvs-wn.cjs');
5
+ require('./shared/preset-mini.ImRm63ih.cjs');
6
6
  require('@unocss/rule-utils');
7
7
  require('@unocss/core');
8
8
 
package/dist/theme.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { colors } from './colors.cjs';
2
- export { t as theme } from './shared/preset-mini.kcLG2qdT.cjs';
3
- import { T as Theme } from './shared/preset-mini.XbONgpj9.cjs';
4
- export { C as Colors, a as ThemeAnimation } from './shared/preset-mini.XbONgpj9.cjs';
2
+ export { t as theme } from './shared/preset-mini.5-XKlNyK.cjs';
3
+ import { T as Theme } from './shared/preset-mini.7XoWRZIl.cjs';
4
+ export { C as Colors, a as ThemeAnimation } from './shared/preset-mini.7XoWRZIl.cjs';
5
5
  import '@unocss/core';
6
6
 
7
7
  declare const blur: {
package/dist/theme.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { colors } from './colors.mjs';
2
- export { t as theme } from './shared/preset-mini.zdwLl6RJ.mjs';
3
- import { T as Theme } from './shared/preset-mini.XbONgpj9.mjs';
4
- export { C as Colors, a as ThemeAnimation } from './shared/preset-mini.XbONgpj9.mjs';
2
+ export { t as theme } from './shared/preset-mini.4DxDu2I8.mjs';
3
+ import { T as Theme } from './shared/preset-mini.7XoWRZIl.mjs';
4
+ export { C as Colors, a as ThemeAnimation } from './shared/preset-mini.7XoWRZIl.mjs';
5
5
  import '@unocss/core';
6
6
 
7
7
  declare const blur: {
package/dist/theme.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { colors } from './colors.js';
2
- export { t as theme } from './shared/preset-mini.xS10lyTI.js';
3
- import { T as Theme } from './shared/preset-mini.XbONgpj9.js';
4
- export { C as Colors, a as ThemeAnimation } from './shared/preset-mini.XbONgpj9.js';
2
+ export { t as theme } from './shared/preset-mini.5daNC9yh.js';
3
+ import { T as Theme } from './shared/preset-mini.7XoWRZIl.js';
4
+ export { C as Colors, a as ThemeAnimation } from './shared/preset-mini.7XoWRZIl.js';
5
5
  import '@unocss/core';
6
6
 
7
7
  declare const blur: {
package/dist/theme.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { colors } from './colors.mjs';
2
- import { t as transformBase, b as boxShadowsBase, r as ringBase } from './shared/preset-mini.eC889yOr.mjs';
3
- import './shared/preset-mini.FlSC5Qpy.mjs';
2
+ import { t as transformBase, b as boxShadowsBase, r as ringBase } from './shared/preset-mini.dPVVIvNm.mjs';
3
+ import './shared/preset-mini.Stl9mkMB.mjs';
4
4
  import '@unocss/rule-utils';
5
5
  import '@unocss/core';
6
6
 
package/dist/utils.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const utils = require('./shared/preset-mini.ZU_IpTeH.cjs');
3
+ const utils = require('./shared/preset-mini.ImRm63ih.cjs');
4
4
  const ruleUtils = require('@unocss/rule-utils');
5
5
  require('@unocss/core');
6
6
 
package/dist/utils.d.cts CHANGED
@@ -1,8 +1,8 @@
1
1
  import * as _unocss_rule_utils from '@unocss/rule-utils';
2
2
  export * from '@unocss/rule-utils';
3
- export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, h as hasParseableColor, i as isCSSMathFn, e as isSize, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints, s as splitShorthand } from './shared/preset-mini.lNfhAyxn.cjs';
3
+ export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, h as hasParseableColor, i as isCSSMathFn, e as isSize, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints, s as splitShorthand } from './shared/preset-mini.Jpc0QYPj.cjs';
4
4
  import '@unocss/core';
5
- import './shared/preset-mini.XbONgpj9.cjs';
5
+ import './shared/preset-mini.7XoWRZIl.cjs';
6
6
 
7
7
  declare const directionMap: Record<string, string[]>;
8
8
  declare const insetMap: Record<string, string[]>;
@@ -51,7 +51,7 @@ declare namespace handlers {
51
51
  export { handlers_auto as auto, handlers_bracket as bracket, handlers_bracketOfColor as bracketOfColor, handlers_bracketOfLength as bracketOfLength, handlers_bracketOfPosition as bracketOfPosition, handlers_cssvar as cssvar, handlers_degree as degree, handlers_fraction as fraction, handlers_global as global, handlers_number as number, handlers_numberWithUnit as numberWithUnit, handlers_percent as percent, handlers_position as position, handlers_properties as properties, handlers_px as px, handlers_rem as rem, handlers_time as time };
52
52
  }
53
53
 
54
- declare const handler: _unocss_rule_utils.ValueHandler<"number" | "auto" | "position" | "global" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
55
- declare const h: _unocss_rule_utils.ValueHandler<"number" | "auto" | "position" | "global" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
54
+ declare const handler: _unocss_rule_utils.ValueHandler<"number" | "global" | "auto" | "position" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
55
+ declare const h: _unocss_rule_utils.ValueHandler<"number" | "global" | "auto" | "position" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
56
56
 
57
57
  export { cornerMap, cssMathFnRE, directionMap, globalKeywords, h, handler, insetMap, positionMap, handlers as valueHandlers, xyzMap };
package/dist/utils.d.mts CHANGED
@@ -1,8 +1,8 @@
1
1
  import * as _unocss_rule_utils from '@unocss/rule-utils';
2
2
  export * from '@unocss/rule-utils';
3
- export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, h as hasParseableColor, i as isCSSMathFn, e as isSize, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints, s as splitShorthand } from './shared/preset-mini.k2FJE6fu.mjs';
3
+ export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, h as hasParseableColor, i as isCSSMathFn, e as isSize, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints, s as splitShorthand } from './shared/preset-mini.XmVozI6N.mjs';
4
4
  import '@unocss/core';
5
- import './shared/preset-mini.XbONgpj9.mjs';
5
+ import './shared/preset-mini.7XoWRZIl.mjs';
6
6
 
7
7
  declare const directionMap: Record<string, string[]>;
8
8
  declare const insetMap: Record<string, string[]>;
@@ -51,7 +51,7 @@ declare namespace handlers {
51
51
  export { handlers_auto as auto, handlers_bracket as bracket, handlers_bracketOfColor as bracketOfColor, handlers_bracketOfLength as bracketOfLength, handlers_bracketOfPosition as bracketOfPosition, handlers_cssvar as cssvar, handlers_degree as degree, handlers_fraction as fraction, handlers_global as global, handlers_number as number, handlers_numberWithUnit as numberWithUnit, handlers_percent as percent, handlers_position as position, handlers_properties as properties, handlers_px as px, handlers_rem as rem, handlers_time as time };
52
52
  }
53
53
 
54
- declare const handler: _unocss_rule_utils.ValueHandler<"number" | "auto" | "position" | "global" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
55
- declare const h: _unocss_rule_utils.ValueHandler<"number" | "auto" | "position" | "global" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
54
+ declare const handler: _unocss_rule_utils.ValueHandler<"number" | "global" | "auto" | "position" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
55
+ declare const h: _unocss_rule_utils.ValueHandler<"number" | "global" | "auto" | "position" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
56
56
 
57
57
  export { cornerMap, cssMathFnRE, directionMap, globalKeywords, h, handler, insetMap, positionMap, handlers as valueHandlers, xyzMap };
package/dist/utils.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import * as _unocss_rule_utils from '@unocss/rule-utils';
2
2
  export * from '@unocss/rule-utils';
3
- export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, h as hasParseableColor, i as isCSSMathFn, e as isSize, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints, s as splitShorthand } from './shared/preset-mini.I6gBcB-0.js';
3
+ export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, h as hasParseableColor, i as isCSSMathFn, e as isSize, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints, s as splitShorthand } from './shared/preset-mini.QW22c5Df.js';
4
4
  import '@unocss/core';
5
- import './shared/preset-mini.XbONgpj9.js';
5
+ import './shared/preset-mini.7XoWRZIl.js';
6
6
 
7
7
  declare const directionMap: Record<string, string[]>;
8
8
  declare const insetMap: Record<string, string[]>;
@@ -51,7 +51,7 @@ declare namespace handlers {
51
51
  export { handlers_auto as auto, handlers_bracket as bracket, handlers_bracketOfColor as bracketOfColor, handlers_bracketOfLength as bracketOfLength, handlers_bracketOfPosition as bracketOfPosition, handlers_cssvar as cssvar, handlers_degree as degree, handlers_fraction as fraction, handlers_global as global, handlers_number as number, handlers_numberWithUnit as numberWithUnit, handlers_percent as percent, handlers_position as position, handlers_properties as properties, handlers_px as px, handlers_rem as rem, handlers_time as time };
52
52
  }
53
53
 
54
- declare const handler: _unocss_rule_utils.ValueHandler<"number" | "auto" | "position" | "global" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
55
- declare const h: _unocss_rule_utils.ValueHandler<"number" | "auto" | "position" | "global" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
54
+ declare const handler: _unocss_rule_utils.ValueHandler<"number" | "global" | "auto" | "position" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
55
+ declare const h: _unocss_rule_utils.ValueHandler<"number" | "global" | "auto" | "position" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
56
56
 
57
57
  export { cornerMap, cssMathFnRE, directionMap, globalKeywords, h, handler, insetMap, positionMap, handlers as valueHandlers, xyzMap };
package/dist/utils.mjs CHANGED
@@ -1,3 +1,3 @@
1
- export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, b as colorableShadows, f as cornerMap, o as cssMathFnRE, e as directionMap, l as directionSize, g as globalKeywords, h, q as handler, a as hasParseableColor, k as insetMap, i as isCSSMathFn, j as isSize, m as makeGlobalStaticRules, p as parseColor, d as positionMap, r as resolveBreakpoints, t as resolveVerticalBreakpoints, s as splitShorthand, v as valueHandlers, x as xyzMap } from './shared/preset-mini.FlSC5Qpy.mjs';
1
+ export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, b as colorableShadows, f as cornerMap, o as cssMathFnRE, e as directionMap, l as directionSize, g as globalKeywords, h, q as handler, a as hasParseableColor, k as insetMap, i as isCSSMathFn, j as isSize, m as makeGlobalStaticRules, p as parseColor, d as positionMap, r as resolveBreakpoints, t as resolveVerticalBreakpoints, s as splitShorthand, v as valueHandlers, x as xyzMap } from './shared/preset-mini.Stl9mkMB.mjs';
2
2
  export * from '@unocss/rule-utils';
3
3
  import '@unocss/core';
package/dist/variants.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const ruleUtils = require('@unocss/rule-utils');
4
- const utils = require('./shared/preset-mini.ZU_IpTeH.cjs');
4
+ const utils = require('./shared/preset-mini.ImRm63ih.cjs');
5
5
  const core = require('@unocss/core');
6
6
 
7
7
  const variantAria = {
@@ -1,9 +1,9 @@
1
1
  import { VariantObject, Variant } from '@unocss/core';
2
2
  import { PresetMiniOptions } from './index.cjs';
3
- import { T as Theme } from './shared/preset-mini.XbONgpj9.cjs';
4
- import './shared/preset-mini.kcLG2qdT.cjs';
3
+ import { T as Theme } from './shared/preset-mini.7XoWRZIl.cjs';
4
+ import './shared/preset-mini.5-XKlNyK.cjs';
5
5
  import './colors.cjs';
6
- import './shared/preset-mini.lNfhAyxn.cjs';
6
+ import './shared/preset-mini.Jpc0QYPj.cjs';
7
7
 
8
8
  declare const variantAria: VariantObject;
9
9
 
@@ -1,9 +1,9 @@
1
1
  import { VariantObject, Variant } from '@unocss/core';
2
2
  import { PresetMiniOptions } from './index.mjs';
3
- import { T as Theme } from './shared/preset-mini.XbONgpj9.mjs';
4
- import './shared/preset-mini.zdwLl6RJ.mjs';
3
+ import { T as Theme } from './shared/preset-mini.7XoWRZIl.mjs';
4
+ import './shared/preset-mini.4DxDu2I8.mjs';
5
5
  import './colors.mjs';
6
- import './shared/preset-mini.k2FJE6fu.mjs';
6
+ import './shared/preset-mini.XmVozI6N.mjs';
7
7
 
8
8
  declare const variantAria: VariantObject;
9
9
 
@@ -1,9 +1,9 @@
1
1
  import { VariantObject, Variant } from '@unocss/core';
2
2
  import { PresetMiniOptions } from './index.js';
3
- import { T as Theme } from './shared/preset-mini.XbONgpj9.js';
4
- import './shared/preset-mini.xS10lyTI.js';
3
+ import { T as Theme } from './shared/preset-mini.7XoWRZIl.js';
4
+ import './shared/preset-mini.5daNC9yh.js';
5
5
  import './colors.js';
6
- import './shared/preset-mini.I6gBcB-0.js';
6
+ import './shared/preset-mini.QW22c5Df.js';
7
7
 
8
8
  declare const variantAria: VariantObject;
9
9
 
package/dist/variants.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { variantGetParameter, variantGetBracket, variantMatcher, variantParentMatcher, getBracket, getStringComponent } from '@unocss/rule-utils';
2
- import { h, r as resolveBreakpoints, C as CONTROL_MINI_NO_NEGATIVE } from './shared/preset-mini.FlSC5Qpy.mjs';
2
+ import { h, r as resolveBreakpoints, C as CONTROL_MINI_NO_NEGATIVE } from './shared/preset-mini.Stl9mkMB.mjs';
3
3
  import { warnOnce, escapeRegExp, escapeSelector } from '@unocss/core';
4
4
 
5
5
  const variantAria = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-mini",
3
- "version": "0.57.5",
3
+ "version": "0.57.7",
4
4
  "description": "The minimal preset for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -61,9 +61,9 @@
61
61
  "dist"
62
62
  ],
63
63
  "dependencies": {
64
- "@unocss/core": "0.57.5",
65
- "@unocss/extractor-arbitrary-variants": "0.57.5",
66
- "@unocss/rule-utils": "0.57.5"
64
+ "@unocss/core": "0.57.7",
65
+ "@unocss/extractor-arbitrary-variants": "0.57.7",
66
+ "@unocss/rule-utils": "0.57.7"
67
67
  },
68
68
  "scripts": {
69
69
  "build": "unbuild",