@unocss/preset-mini 0.53.4 → 0.53.6

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.
@@ -1,4 +1,4 @@
1
- import { C as Colors } from './types-c1be36b6.js';
1
+ import { C as Colors } from './types-d991ba46.js';
2
2
 
3
3
  declare const colors: {
4
4
  inherit: string;
package/dist/colors.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { c as colors } from './colors-9b4e2c30.js';
2
- import './types-c1be36b6.js';
1
+ export { c as colors } from './colors-dabdd21f.js';
2
+ import './types-d991ba46.js';
3
3
  import '@unocss/core';
@@ -1,4 +1,4 @@
1
- import { C as Colors } from './types-c1be36b6.js';
1
+ import { C as Colors } from './types-d991ba46.js';
2
2
 
3
3
  declare const theme: {
4
4
  width: {
@@ -548,6 +548,17 @@ declare const theme: {
548
548
  mono: string;
549
549
  };
550
550
  fontSize: Record<string, string | [string, string]> | undefined;
551
+ fontWeight: {
552
+ thin: string;
553
+ extralight: string;
554
+ light: string;
555
+ normal: string;
556
+ medium: string;
557
+ semibold: string;
558
+ bold: string;
559
+ extrabold: string;
560
+ black: string;
561
+ };
551
562
  breakpoints: {
552
563
  sm: string;
553
564
  md: string;
package/dist/index.cjs CHANGED
@@ -4,11 +4,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const extractorArbitraryVariants = require('@unocss/extractor-arbitrary-variants');
6
6
  const core = require('@unocss/core');
7
- require('./shared/preset-mini.db8ecde7.cjs');
8
- const _default$1 = require('./shared/preset-mini.f4e50e04.cjs');
7
+ require('./shared/preset-mini.78d4899a.cjs');
8
+ const _default$1 = require('./shared/preset-mini.345a6f11.cjs');
9
9
  const colors$1 = require('./shared/preset-mini.a21c5071.cjs');
10
10
  const colors = require('./shared/preset-mini.f3fc54d2.cjs');
11
- const _default = require('./shared/preset-mini.0ea9a044.cjs');
11
+ const _default = require('./shared/preset-mini.b22ca5de.cjs');
12
12
  const _default$2 = require('./shared/preset-mini.3567e469.cjs');
13
13
  require('./shared/preset-mini.d778b487.cjs');
14
14
 
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { Preflight, PresetOptions, Preset, Postprocessor } from '@unocss/core';
2
- export { c as colors } from './colors-9b4e2c30.js';
3
- export { t as theme } from './default-e9b20bc4.js';
4
- import { T as Theme } from './types-c1be36b6.js';
5
- export { T as Theme, a as ThemeAnimation } from './types-c1be36b6.js';
6
- export { p as parseColor } from './utilities-50ca92a9.js';
2
+ export { c as colors } from './colors-dabdd21f.js';
3
+ export { t as theme } from './default-1f25a0ae.js';
4
+ import { T as Theme } from './types-d991ba46.js';
5
+ export { T as Theme, a as ThemeAnimation } from './types-d991ba46.js';
6
+ export { p as parseColor } from './utilities-d496540e.js';
7
7
 
8
8
  declare const preflights: Preflight[];
9
9
 
@@ -33,7 +33,7 @@ interface PresetMiniOptions extends PresetOptions {
33
33
  *
34
34
  * @default false
35
35
  */
36
- attributifyPseudo?: Boolean;
36
+ attributifyPseudo?: boolean;
37
37
  /**
38
38
  * Prefix for CSS variables.
39
39
  *
@@ -64,6 +64,6 @@ interface PresetMiniOptions extends PresetOptions {
64
64
  declare function presetMini(options?: PresetMiniOptions): Preset<Theme>;
65
65
 
66
66
  declare function VarPrefixPostprocessor(prefix: string): Postprocessor | undefined;
67
- declare function normalizePreflights(preflights: Preflight[], variablePrefix: string): Preflight<{}>[];
67
+ declare function normalizePreflights(preflights: Preflight[], variablePrefix: string): Preflight<object>[];
68
68
 
69
69
  export { DarkModeSelectors, PresetMiniOptions, VarPrefixPostprocessor, presetMini as default, normalizePreflights, preflights, presetMini };
package/dist/index.mjs CHANGED
@@ -1,13 +1,13 @@
1
1
  import { extractorArbitraryVariants } from '@unocss/extractor-arbitrary-variants';
2
2
  import { entriesToCss, toArray } from '@unocss/core';
3
- import './shared/preset-mini.17fe8f10.mjs';
4
- import { r as rules } from './shared/preset-mini.354bed23.mjs';
5
- export { p as parseColor } from './shared/preset-mini.6c244f7e.mjs';
3
+ import './shared/preset-mini.830250eb.mjs';
4
+ import { r as rules } from './shared/preset-mini.31fe3ff4.mjs';
5
+ export { p as parseColor } from './shared/preset-mini.6c1c8016.mjs';
6
6
  export { c as colors } from './shared/preset-mini.1c66bf79.mjs';
7
- import { t as theme } from './shared/preset-mini.438da325.mjs';
8
- export { t as theme } from './shared/preset-mini.438da325.mjs';
9
- import { v as variants } from './shared/preset-mini.407f1930.mjs';
10
- import './shared/preset-mini.9af3cc95.mjs';
7
+ import { t as theme } from './shared/preset-mini.e7d18afd.mjs';
8
+ export { t as theme } from './shared/preset-mini.e7d18afd.mjs';
9
+ import { v as variants } from './shared/preset-mini.424c142b.mjs';
10
+ import './shared/preset-mini.74f9d55e.mjs';
11
11
 
12
12
  const preflights = [
13
13
  {
package/dist/rules.cjs CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const transform = require('./shared/preset-mini.db8ecde7.cjs');
6
- const _default = require('./shared/preset-mini.f4e50e04.cjs');
5
+ const transform = require('./shared/preset-mini.78d4899a.cjs');
6
+ const _default = require('./shared/preset-mini.345a6f11.cjs');
7
7
  require('./shared/preset-mini.a21c5071.cjs');
8
8
  require('@unocss/core');
9
9
 
@@ -19,6 +19,7 @@ exports.boxShadows = transform.boxShadows;
19
19
  exports.boxShadowsBase = transform.boxShadowsBase;
20
20
  exports.boxSizing = transform.boxSizing;
21
21
  exports.breaks = transform.breaks;
22
+ exports.colorScheme = transform.colorScheme;
22
23
  exports.contains = transform.contains;
23
24
  exports.contentVisibility = transform.contentVisibility;
24
25
  exports.contents = transform.contents;
@@ -28,7 +29,6 @@ exports.flexGridJustifiesAlignments = transform.flexGridJustifiesAlignments;
28
29
  exports.floats = transform.floats;
29
30
  exports.fontSmoothings = transform.fontSmoothings;
30
31
  exports.fontStyles = transform.fontStyles;
31
- exports.fonts = transform.fonts;
32
32
  exports.handlerBorderStyle = transform.handlerBorderStyle;
33
33
  exports.insets = transform.insets;
34
34
  exports.justifies = transform.justifies;
@@ -42,14 +42,10 @@ exports.positions = transform.positions;
42
42
  exports.resizes = transform.resizes;
43
43
  exports.ringBase = transform.ringBase;
44
44
  exports.rings = transform.rings;
45
- exports.tabSizes = transform.tabSizes;
46
45
  exports.textAligns = transform.textAligns;
47
46
  exports.textColors = transform.textColors;
48
47
  exports.textDecorations = transform.textDecorations;
49
- exports.textIndents = transform.textIndents;
50
48
  exports.textOverflows = transform.textOverflows;
51
- exports.textShadows = transform.textShadows;
52
- exports.textStrokes = transform.textStrokes;
53
49
  exports.textTransforms = transform.textTransforms;
54
50
  exports.textWraps = transform.textWraps;
55
51
  exports.transformBase = transform.transformBase;
@@ -66,6 +62,7 @@ exports.containerParent = _default.containerParent;
66
62
  exports.cssProperty = _default.cssProperty;
67
63
  exports.cssVariables = _default.cssVariables;
68
64
  exports.flex = _default.flex;
65
+ exports.fonts = _default.fonts;
69
66
  exports.gaps = _default.gaps;
70
67
  exports.grids = _default.grids;
71
68
  exports.margins = _default.margins;
@@ -74,3 +71,7 @@ exports.questionMark = _default.questionMark;
74
71
  exports.rules = _default.rules;
75
72
  exports.sizes = _default.sizes;
76
73
  exports.svgUtilities = _default.svgUtilities;
74
+ exports.tabSizes = _default.tabSizes;
75
+ exports.textIndents = _default.textIndents;
76
+ exports.textShadows = _default.textShadows;
77
+ exports.textStrokes = _default.textStrokes;
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 './types-c1be36b6.js';
2
+ import { T as Theme } from './types-d991ba46.js';
3
3
 
4
4
  declare const verticalAligns: Rule[];
5
5
  declare const textAligns: Rule[];
@@ -21,6 +21,7 @@ declare const opacity: Rule[];
21
21
  */
22
22
  declare const textColors: Rule[];
23
23
  declare const bgColors: Rule[];
24
+ declare const colorScheme: Rule[];
24
25
 
25
26
  declare const containerParent: Rule[];
26
27
 
@@ -129,4 +130,4 @@ declare const textShadows: Rule<Theme>[];
129
130
  declare const cssVariables: Rule[];
130
131
  declare const cssProperty: Rule[];
131
132
 
132
- export { alignments, appearance, appearances, aspectRatio, bgColors, borderStyles, borders, boxShadows, boxShadowsBase, boxSizing, breaks, containerParent, contains, contentVisibility, contents, cssProperty, cssVariables, cursors, displays, flex, flexGridJustifiesAlignments, floats, fontSmoothings, fontStyles, fonts, gaps, grids, handlerBorderStyle, insets, justifies, margins, opacity, orders, outline, overflows, paddings, placements, pointerEvents, positions, questionMark, resizes, ringBase, rings, rules, sizes, svgUtilities, tabSizes, textAligns, textColors, textDecorations, textIndents, textOverflows, textShadows, textStrokes, textTransforms, textWraps, transformBase, transforms, transitions, userSelects, varEmpty, verticalAligns, whitespaces, willChange, zIndexes };
133
+ export { alignments, appearance, appearances, aspectRatio, bgColors, borderStyles, borders, boxShadows, boxShadowsBase, boxSizing, breaks, colorScheme, containerParent, contains, contentVisibility, contents, cssProperty, cssVariables, cursors, displays, flex, flexGridJustifiesAlignments, floats, fontSmoothings, fontStyles, fonts, gaps, grids, handlerBorderStyle, insets, justifies, margins, opacity, orders, outline, overflows, paddings, placements, pointerEvents, positions, questionMark, resizes, ringBase, rings, rules, sizes, svgUtilities, tabSizes, textAligns, textColors, textDecorations, textIndents, textOverflows, textShadows, textStrokes, textTransforms, textWraps, transformBase, transforms, transitions, userSelects, varEmpty, verticalAligns, whitespaces, willChange, zIndexes };
package/dist/rules.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { I as alignments, F as appearance, w as appearances, b as bgColors, X as borderStyles, a as borders, r as boxShadows, V as boxShadowsBase, O as boxSizing, C as breaks, S as contains, c as contentVisibility, e as contents, v as cursors, d as displays, K as flexGridJustifiesAlignments, M as floats, q as fontSmoothings, p as fontStyles, f as fonts, Y as handlerBorderStyle, L as insets, H as justifies, o as opacity, G as orders, E as outline, D as overflows, J as placements, x as pointerEvents, u as positions, y as resizes, W as ringBase, s as rings, t as tabSizes, m as textAligns, n as textColors, i as textDecorations, g as textIndents, h as textOverflows, k as textShadows, j as textStrokes, l as textTransforms, T as textWraps, U as transformBase, Q as transforms, P as transitions, A as userSelects, Z as varEmpty, z as verticalAligns, B as whitespaces, R as willChange, N as zIndexes } from './shared/preset-mini.17fe8f10.mjs';
2
- export { b as aspectRatio, c as containerParent, h as cssProperty, e as cssVariables, f as flex, g as gaps, a as grids, m as margins, p as paddings, q as questionMark, r as rules, s as sizes, d as svgUtilities } from './shared/preset-mini.354bed23.mjs';
3
- import './shared/preset-mini.6c244f7e.mjs';
1
+ export { E as alignments, B as appearance, q as appearances, b as bgColors, T as borderStyles, a as borders, m as boxShadows, R as boxShadowsBase, K as boxSizing, y as breaks, c as colorScheme, O as contains, e as contentVisibility, f as contents, n as cursors, d as displays, G as flexGridJustifiesAlignments, I as floats, l as fontSmoothings, k as fontStyles, U as handlerBorderStyle, H as insets, D as justifies, o as opacity, C as orders, A as outline, z as overflows, F as placements, s as pointerEvents, p as positions, u as resizes, S as ringBase, r as rings, i as textAligns, j as textColors, g as textDecorations, t as textOverflows, h as textTransforms, P as textWraps, Q as transformBase, M as transforms, L as transitions, w as userSelects, V as varEmpty, v as verticalAligns, x as whitespaces, N as willChange, J as zIndexes } from './shared/preset-mini.830250eb.mjs';
2
+ export { b as aspectRatio, c as containerParent, l as cssProperty, k as cssVariables, f as flex, e as fonts, g as gaps, a as grids, m as margins, p as paddings, q as questionMark, r as rules, s as sizes, d as svgUtilities, t as tabSizes, h as textIndents, j as textShadows, i as textStrokes } from './shared/preset-mini.31fe3ff4.mjs';
3
+ import './shared/preset-mini.6c1c8016.mjs';
4
4
  import '@unocss/core';
@@ -1,6 +1,6 @@
1
- import { d as displays, o as opacity, b as bgColors, a as borders, c as contentVisibility, e as contents, f as fonts, t as tabSizes, g as textIndents, h as textOverflows, i as textDecorations, j as textStrokes, k as textShadows, l as textTransforms, m as textAligns, n as textColors, p as fontStyles, q as fontSmoothings, r as boxShadows, s as rings, u as positions, v as cursors, w as appearances, x as pointerEvents, y as resizes, z as verticalAligns, A as userSelects, B as whitespaces, C as breaks, D as overflows, E as outline, F as appearance, G as orders, H as justifies, I as alignments, J as placements, K as flexGridJustifiesAlignments, L as insets, M as floats, N as zIndexes, O as boxSizing, P as transitions, Q as transforms, R as willChange, S as contains, T as textWraps } from './preset-mini.17fe8f10.mjs';
2
- import { h, r as resolveVerticalBreakpoints, l as resolveBreakpoints, o as directionSize, c as colorResolver } from './preset-mini.6c244f7e.mjs';
3
- import { warnOnce } from '@unocss/core';
1
+ import { d as displays, o as opacity, b as bgColors, c as colorScheme, a as borders, e as contentVisibility, f as contents, t as textOverflows, g as textDecorations, h as textTransforms, i as textAligns, j as textColors, k as fontStyles, l as fontSmoothings, m as boxShadows, r as rings, p as positions, n as cursors, q as appearances, s as pointerEvents, u as resizes, v as verticalAligns, w as userSelects, x as whitespaces, y as breaks, z as overflows, A as outline, B as appearance, C as orders, D as justifies, E as alignments, F as placements, G as flexGridJustifiesAlignments, H as insets, I as floats, J as zIndexes, K as boxSizing, L as transitions, M as transforms, N as willChange, O as contains, P as textWraps } from './preset-mini.830250eb.mjs';
2
+ import { h, s as splitShorthand, c as colorResolver, j as colorableShadows, r as resolveVerticalBreakpoints, l as resolveBreakpoints, o as directionSize } from './preset-mini.6c1c8016.mjs';
3
+ import { warnOnce, toArray } from '@unocss/core';
4
4
 
5
5
  const containerParent = [
6
6
  [/^@container(?:\/(\w+))?(?:-(normal))?$/, ([, l, v]) => {
@@ -33,6 +33,111 @@ const flex = [
33
33
  ["flex-nowrap", { "flex-wrap": "nowrap" }]
34
34
  ];
35
35
 
36
+ function handleLineHeight(s, theme) {
37
+ return theme.lineHeight?.[s] || h.bracket.cssvar.global.rem(s);
38
+ }
39
+ const fonts = [
40
+ [
41
+ /^text-(.+)$/,
42
+ ([, s = "base"], { theme }) => {
43
+ const [size, leading] = splitShorthand(s, "length");
44
+ const sizePairs = toArray(theme.fontSize?.[size]);
45
+ const lineHeight = leading ? handleLineHeight(leading, theme) : void 0;
46
+ if (sizePairs?.[0]) {
47
+ const [fontSize2, height] = sizePairs;
48
+ return {
49
+ "font-size": fontSize2,
50
+ "line-height": lineHeight ?? height ?? "1"
51
+ };
52
+ }
53
+ const fontSize = h.bracketOfLength.rem(size);
54
+ if (lineHeight && fontSize) {
55
+ return {
56
+ "font-size": fontSize,
57
+ "line-height": lineHeight
58
+ };
59
+ }
60
+ return { "font-size": h.bracketOfLength.rem(s) };
61
+ },
62
+ { autocomplete: "text-$fontSize" }
63
+ ],
64
+ [/^text-size-(.+)$/, ([, s], { theme }) => {
65
+ const themed = toArray(theme.fontSize?.[s]);
66
+ const size = themed?.[0] ?? h.bracket.cssvar.global.rem(s);
67
+ if (size != null)
68
+ return { "font-size": size };
69
+ }, { autocomplete: "text-size-$fontSize" }],
70
+ [
71
+ /^(?:font|fw)-?([^-]+)$/,
72
+ ([, s], { theme }) => ({ "font-weight": theme.fontWeight?.[s] || h.bracket.global.number(s) }),
73
+ {
74
+ autocomplete: [
75
+ "(font|fw)-(100|200|300|400|500|600|700|800|900)",
76
+ "(font|fw)-$fontWeight"
77
+ ]
78
+ }
79
+ ],
80
+ [
81
+ /^(?:font-)?(?:leading|lh|line-height)-(.+)$/,
82
+ ([, s], { theme }) => ({ "line-height": handleLineHeight(s, theme) }),
83
+ { autocomplete: "(leading|lh|line-height)-$lineHeight" }
84
+ ],
85
+ ["font-synthesis-weight", { "font-synthesis": "weight" }],
86
+ ["font-synthesis-style", { "font-synthesis": "style" }],
87
+ ["font-synthesis-small-caps", { "font-synthesis": "small-caps" }],
88
+ ["font-synthesis-none", { "font-synthesis": "none" }],
89
+ [/^font-synthesis-(.+)$/, ([, s]) => ({ "font-synthesis": h.bracket.cssvar.global(s) })],
90
+ [
91
+ /^(?:font-)?tracking-(.+)$/,
92
+ ([, s], { theme }) => ({ "letter-spacing": theme.letterSpacing?.[s] || h.bracket.cssvar.global.rem(s) }),
93
+ { autocomplete: "tracking-$letterSpacing" }
94
+ ],
95
+ [
96
+ /^(?:font-)?word-spacing-(.+)$/,
97
+ ([, s], { theme }) => ({ "word-spacing": theme.wordSpacing?.[s] || h.bracket.cssvar.global.rem(s) }),
98
+ { autocomplete: "word-spacing-$wordSpacing" }
99
+ ],
100
+ [
101
+ /^font-(.+)$/,
102
+ ([, d], { theme }) => ({ "font-family": theme.fontFamily?.[d] || h.bracket.cssvar.global(d) }),
103
+ { autocomplete: "font-$fontFamily" }
104
+ ]
105
+ ];
106
+ const tabSizes = [
107
+ [/^tab(?:-(.+))?$/, ([, s]) => {
108
+ const v = h.bracket.cssvar.global.number(s || "4");
109
+ if (v != null) {
110
+ return {
111
+ "-moz-tab-size": v,
112
+ "-o-tab-size": v,
113
+ "tab-size": v
114
+ };
115
+ }
116
+ }]
117
+ ];
118
+ const textIndents = [
119
+ [/^indent(?:-(.+))?$/, ([, s], { theme }) => ({ "text-indent": theme.textIndent?.[s || "DEFAULT"] || h.bracket.cssvar.global.fraction.rem(s) }), { autocomplete: "indent-$textIndent" }]
120
+ ];
121
+ const textStrokes = [
122
+ [/^text-stroke(?:-(.+))?$/, ([, s], { theme }) => ({ "-webkit-text-stroke-width": theme.textStrokeWidth?.[s || "DEFAULT"] || h.bracket.cssvar.px(s) }), { autocomplete: "text-stroke-$textStrokeWidth" }],
123
+ [/^text-stroke-(.+)$/, colorResolver("-webkit-text-stroke-color", "text-stroke"), { autocomplete: "text-stroke-$colors" }],
124
+ [/^text-stroke-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-text-stroke-opacity": h.bracket.percent.cssvar(opacity) }), { autocomplete: "text-stroke-(op|opacity)-<percent>" }]
125
+ ];
126
+ const textShadows = [
127
+ [/^text-shadow(?:-(.+))?$/, ([, s], { theme }) => {
128
+ const v = theme.textShadow?.[s || "DEFAULT"];
129
+ if (v != null) {
130
+ return {
131
+ "--un-text-shadow": colorableShadows(v, "--un-text-shadow-color").join(","),
132
+ "text-shadow": "var(--un-text-shadow)"
133
+ };
134
+ }
135
+ return { "text-shadow": h.bracket.cssvar.global(s) };
136
+ }, { autocomplete: "text-shadow-$textShadow" }],
137
+ [/^text-shadow-color-(.+)$/, colorResolver("--un-text-shadow-color", "text-shadow"), { autocomplete: "text-shadow-color-$colors" }],
138
+ [/^text-shadow-color-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-text-shadow-opacity": h.bracket.percent.cssvar(opacity) }), { autocomplete: "text-shadow-color-(op|opacity)-<percent>" }]
139
+ ];
140
+
36
141
  const directions = {
37
142
  "": "",
38
143
  "x": "column-",
@@ -42,7 +147,6 @@ function handleGap([, d = "", s], { theme }) {
42
147
  const v = theme.spacing?.[s] ?? h.bracket.cssvar.global.rem(s);
43
148
  if (v != null) {
44
149
  return {
45
- [`grid-${directions[d]}gap`]: v,
46
150
  [`${directions[d]}gap`]: v
47
151
  };
48
152
  }
@@ -257,6 +361,7 @@ const rules = [
257
361
  displays,
258
362
  opacity,
259
363
  bgColors,
364
+ colorScheme,
260
365
  svgUtilities,
261
366
  borders,
262
367
  contentVisibility,
@@ -310,4 +415,4 @@ const rules = [
310
415
  questionMark
311
416
  ].flat(1);
312
417
 
313
- export { grids as a, aspectRatio as b, containerParent as c, svgUtilities as d, cssVariables as e, flex as f, gaps as g, cssProperty as h, margins as m, paddings as p, questionMark as q, rules as r, sizes as s };
418
+ export { grids as a, aspectRatio as b, containerParent as c, svgUtilities as d, fonts as e, flex as f, gaps as g, textIndents as h, textStrokes as i, textShadows as j, cssVariables as k, cssProperty as l, margins as m, paddings as p, questionMark as q, rules as r, sizes as s, tabSizes as t };
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const transform = require('./preset-mini.db8ecde7.cjs');
3
+ const transform = require('./preset-mini.78d4899a.cjs');
4
4
  const colors = require('./preset-mini.a21c5071.cjs');
5
5
  const core = require('@unocss/core');
6
6
 
@@ -35,6 +35,111 @@ const flex = [
35
35
  ["flex-nowrap", { "flex-wrap": "nowrap" }]
36
36
  ];
37
37
 
38
+ function handleLineHeight(s, theme) {
39
+ return theme.lineHeight?.[s] || colors.h.bracket.cssvar.global.rem(s);
40
+ }
41
+ const fonts = [
42
+ [
43
+ /^text-(.+)$/,
44
+ ([, s = "base"], { theme }) => {
45
+ const [size, leading] = colors.splitShorthand(s, "length");
46
+ const sizePairs = core.toArray(theme.fontSize?.[size]);
47
+ const lineHeight = leading ? handleLineHeight(leading, theme) : void 0;
48
+ if (sizePairs?.[0]) {
49
+ const [fontSize2, height] = sizePairs;
50
+ return {
51
+ "font-size": fontSize2,
52
+ "line-height": lineHeight ?? height ?? "1"
53
+ };
54
+ }
55
+ const fontSize = colors.h.bracketOfLength.rem(size);
56
+ if (lineHeight && fontSize) {
57
+ return {
58
+ "font-size": fontSize,
59
+ "line-height": lineHeight
60
+ };
61
+ }
62
+ return { "font-size": colors.h.bracketOfLength.rem(s) };
63
+ },
64
+ { autocomplete: "text-$fontSize" }
65
+ ],
66
+ [/^text-size-(.+)$/, ([, s], { theme }) => {
67
+ const themed = core.toArray(theme.fontSize?.[s]);
68
+ const size = themed?.[0] ?? colors.h.bracket.cssvar.global.rem(s);
69
+ if (size != null)
70
+ return { "font-size": size };
71
+ }, { autocomplete: "text-size-$fontSize" }],
72
+ [
73
+ /^(?:font|fw)-?([^-]+)$/,
74
+ ([, s], { theme }) => ({ "font-weight": theme.fontWeight?.[s] || colors.h.bracket.global.number(s) }),
75
+ {
76
+ autocomplete: [
77
+ "(font|fw)-(100|200|300|400|500|600|700|800|900)",
78
+ "(font|fw)-$fontWeight"
79
+ ]
80
+ }
81
+ ],
82
+ [
83
+ /^(?:font-)?(?:leading|lh|line-height)-(.+)$/,
84
+ ([, s], { theme }) => ({ "line-height": handleLineHeight(s, theme) }),
85
+ { autocomplete: "(leading|lh|line-height)-$lineHeight" }
86
+ ],
87
+ ["font-synthesis-weight", { "font-synthesis": "weight" }],
88
+ ["font-synthesis-style", { "font-synthesis": "style" }],
89
+ ["font-synthesis-small-caps", { "font-synthesis": "small-caps" }],
90
+ ["font-synthesis-none", { "font-synthesis": "none" }],
91
+ [/^font-synthesis-(.+)$/, ([, s]) => ({ "font-synthesis": colors.h.bracket.cssvar.global(s) })],
92
+ [
93
+ /^(?:font-)?tracking-(.+)$/,
94
+ ([, s], { theme }) => ({ "letter-spacing": theme.letterSpacing?.[s] || colors.h.bracket.cssvar.global.rem(s) }),
95
+ { autocomplete: "tracking-$letterSpacing" }
96
+ ],
97
+ [
98
+ /^(?:font-)?word-spacing-(.+)$/,
99
+ ([, s], { theme }) => ({ "word-spacing": theme.wordSpacing?.[s] || colors.h.bracket.cssvar.global.rem(s) }),
100
+ { autocomplete: "word-spacing-$wordSpacing" }
101
+ ],
102
+ [
103
+ /^font-(.+)$/,
104
+ ([, d], { theme }) => ({ "font-family": theme.fontFamily?.[d] || colors.h.bracket.cssvar.global(d) }),
105
+ { autocomplete: "font-$fontFamily" }
106
+ ]
107
+ ];
108
+ const tabSizes = [
109
+ [/^tab(?:-(.+))?$/, ([, s]) => {
110
+ const v = colors.h.bracket.cssvar.global.number(s || "4");
111
+ if (v != null) {
112
+ return {
113
+ "-moz-tab-size": v,
114
+ "-o-tab-size": v,
115
+ "tab-size": v
116
+ };
117
+ }
118
+ }]
119
+ ];
120
+ const textIndents = [
121
+ [/^indent(?:-(.+))?$/, ([, s], { theme }) => ({ "text-indent": theme.textIndent?.[s || "DEFAULT"] || colors.h.bracket.cssvar.global.fraction.rem(s) }), { autocomplete: "indent-$textIndent" }]
122
+ ];
123
+ const textStrokes = [
124
+ [/^text-stroke(?:-(.+))?$/, ([, s], { theme }) => ({ "-webkit-text-stroke-width": theme.textStrokeWidth?.[s || "DEFAULT"] || colors.h.bracket.cssvar.px(s) }), { autocomplete: "text-stroke-$textStrokeWidth" }],
125
+ [/^text-stroke-(.+)$/, colors.colorResolver("-webkit-text-stroke-color", "text-stroke"), { autocomplete: "text-stroke-$colors" }],
126
+ [/^text-stroke-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-text-stroke-opacity": colors.h.bracket.percent.cssvar(opacity) }), { autocomplete: "text-stroke-(op|opacity)-<percent>" }]
127
+ ];
128
+ const textShadows = [
129
+ [/^text-shadow(?:-(.+))?$/, ([, s], { theme }) => {
130
+ const v = theme.textShadow?.[s || "DEFAULT"];
131
+ if (v != null) {
132
+ return {
133
+ "--un-text-shadow": colors.colorableShadows(v, "--un-text-shadow-color").join(","),
134
+ "text-shadow": "var(--un-text-shadow)"
135
+ };
136
+ }
137
+ return { "text-shadow": colors.h.bracket.cssvar.global(s) };
138
+ }, { autocomplete: "text-shadow-$textShadow" }],
139
+ [/^text-shadow-color-(.+)$/, colors.colorResolver("--un-text-shadow-color", "text-shadow"), { autocomplete: "text-shadow-color-$colors" }],
140
+ [/^text-shadow-color-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-text-shadow-opacity": colors.h.bracket.percent.cssvar(opacity) }), { autocomplete: "text-shadow-color-(op|opacity)-<percent>" }]
141
+ ];
142
+
38
143
  const directions = {
39
144
  "": "",
40
145
  "x": "column-",
@@ -44,7 +149,6 @@ function handleGap([, d = "", s], { theme }) {
44
149
  const v = theme.spacing?.[s] ?? colors.h.bracket.cssvar.global.rem(s);
45
150
  if (v != null) {
46
151
  return {
47
- [`grid-${directions[d]}gap`]: v,
48
152
  [`${directions[d]}gap`]: v
49
153
  };
50
154
  }
@@ -259,17 +363,18 @@ const rules = [
259
363
  transform.displays,
260
364
  transform.opacity,
261
365
  transform.bgColors,
366
+ transform.colorScheme,
262
367
  svgUtilities,
263
368
  transform.borders,
264
369
  transform.contentVisibility,
265
370
  transform.contents,
266
- transform.fonts,
267
- transform.tabSizes,
268
- transform.textIndents,
371
+ fonts,
372
+ tabSizes,
373
+ textIndents,
269
374
  transform.textOverflows,
270
375
  transform.textDecorations,
271
- transform.textStrokes,
272
- transform.textShadows,
376
+ textStrokes,
377
+ textShadows,
273
378
  transform.textTransforms,
274
379
  transform.textAligns,
275
380
  transform.textColors,
@@ -317,6 +422,7 @@ exports.containerParent = containerParent;
317
422
  exports.cssProperty = cssProperty;
318
423
  exports.cssVariables = cssVariables;
319
424
  exports.flex = flex;
425
+ exports.fonts = fonts;
320
426
  exports.gaps = gaps;
321
427
  exports.grids = grids;
322
428
  exports.margins = margins;
@@ -325,3 +431,7 @@ exports.questionMark = questionMark;
325
431
  exports.rules = rules;
326
432
  exports.sizes = sizes;
327
433
  exports.svgUtilities = svgUtilities;
434
+ exports.tabSizes = tabSizes;
435
+ exports.textIndents = textIndents;
436
+ exports.textShadows = textShadows;
437
+ exports.textStrokes = textStrokes;
@@ -1,6 +1,6 @@
1
- import { h, l as resolveBreakpoints, q as getBracket, C as CONTROL_MINI_NO_NEGATIVE, t as getComponent } from './preset-mini.6c244f7e.mjs';
1
+ import { h, l as resolveBreakpoints, q as getBracket, C as CONTROL_MINI_NO_NEGATIVE, t as getComponent } from './preset-mini.6c1c8016.mjs';
2
2
  import { warnOnce, escapeRegExp, escapeSelector } from '@unocss/core';
3
- import { v as variantGetParameter, a as variantGetBracket, b as variantMatcher, c as variantParentMatcher } from './preset-mini.9af3cc95.mjs';
3
+ import { v as variantGetParameter, a as variantGetBracket, b as variantMatcher, c as variantParentMatcher } from './preset-mini.74f9d55e.mjs';
4
4
 
5
5
  const variantAria = {
6
6
  name: "aria",
@@ -770,4 +770,4 @@ function parseCssSpaceColorValues(componentString) {
770
770
  };
771
771
  }
772
772
 
773
- export { CONTROL_MINI_NO_NEGATIVE as C, hasParseableColor as a, cornerMap as b, colorResolver as c, directionMap as d, colorToString as e, colorOpacityToString as f, globalKeywords as g, h, colorableShadows as i, insetMap as j, positionMap as k, resolveBreakpoints as l, makeGlobalStaticRules as m, numberWithUnitRE as n, directionSize as o, parseColor$1 as p, getBracket as q, resolveVerticalBreakpoints as r, splitShorthand as s, getComponent as t, hex2rgba as u, parseCssColor as v, handler as w, xyzMap as x, valueHandlers as y, getComponents as z };
773
+ export { CONTROL_MINI_NO_NEGATIVE as C, hasParseableColor as a, cornerMap as b, colorResolver as c, directionMap as d, colorToString as e, colorOpacityToString as f, globalKeywords as g, h, insetMap as i, colorableShadows as j, positionMap as k, resolveBreakpoints as l, makeGlobalStaticRules as m, numberWithUnitRE as n, directionSize as o, parseColor$1 as p, getBracket as q, resolveVerticalBreakpoints as r, splitShorthand as s, getComponent as t, hex2rgba as u, parseCssColor as v, handler as w, xyzMap as x, valueHandlers as y, getComponents as z };
@@ -1,5 +1,5 @@
1
1
  import { escapeRegExp } from '@unocss/core';
2
- import { q as getBracket } from './preset-mini.6c244f7e.mjs';
2
+ import { q as getBracket } from './preset-mini.6c1c8016.mjs';
3
3
 
4
4
  function variantMatcher(name, handler) {
5
5
  let re;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const colors = require('./preset-mini.a21c5071.cjs');
4
- const core = require('@unocss/core');
4
+ require('@unocss/core');
5
5
 
6
6
  const verticalAlignAlias = {
7
7
  "mid": "middle",
@@ -156,6 +156,9 @@ const bgColors = [
156
156
  [/^bg-(.+)$/, colors.colorResolver("background-color", "bg"), { autocomplete: "bg-$colors" }],
157
157
  [/^bg-op(?:acity)?-?(.+)$/, ([, opacity2]) => ({ "--un-bg-opacity": colors.h.bracket.percent.cssvar(opacity2) }), { autocomplete: "bg-(op|opacity)-<percent>" }]
158
158
  ];
159
+ const colorScheme = [
160
+ [/^color-scheme-(\w+)$/, ([, v]) => ({ "color-scheme": v })]
161
+ ];
159
162
 
160
163
  const decorationStyles = ["solid", "double", "dotted", "dashed", "wavy", ...colors.globalKeywords];
161
164
  const textDecorations = [
@@ -226,117 +229,6 @@ const transitions = [
226
229
  ...colors.makeGlobalStaticRules("transition")
227
230
  ];
228
231
 
229
- const weightMap = {
230
- thin: "100",
231
- extralight: "200",
232
- light: "300",
233
- normal: "400",
234
- medium: "500",
235
- semibold: "600",
236
- bold: "700",
237
- extrabold: "800",
238
- black: "900"
239
- };
240
- function handleLineHeight(s, theme) {
241
- return theme.lineHeight?.[s] || colors.h.bracket.cssvar.global.rem(s);
242
- }
243
- const fonts = [
244
- [
245
- /^text-(.+)$/,
246
- ([, s = "base"], { theme }) => {
247
- const [size, leading] = colors.splitShorthand(s, "length");
248
- const sizePairs = core.toArray(theme.fontSize?.[size]);
249
- const lineHeight = leading ? handleLineHeight(leading, theme) : void 0;
250
- if (sizePairs?.[0]) {
251
- const [fontSize2, height] = sizePairs;
252
- return {
253
- "font-size": fontSize2,
254
- "line-height": lineHeight ?? height ?? "1"
255
- };
256
- }
257
- const fontSize = colors.h.bracketOfLength.rem(size);
258
- if (lineHeight && fontSize) {
259
- return {
260
- "font-size": fontSize,
261
- "line-height": lineHeight
262
- };
263
- }
264
- return { "font-size": colors.h.bracketOfLength.rem(s) };
265
- },
266
- { autocomplete: "text-$fontSize" }
267
- ],
268
- [/^text-size-(.+)$/, ([, s], { theme }) => {
269
- const themed = core.toArray(theme.fontSize?.[s]);
270
- const size = themed?.[0] ?? colors.h.bracket.cssvar.global.rem(s);
271
- if (size != null)
272
- return { "font-size": size };
273
- }, { autocomplete: "text-size-$fontSize" }],
274
- [
275
- /^(?:font|fw)-?([^-]+)$/,
276
- ([, s]) => ({ "font-weight": weightMap[s] || colors.h.bracket.global.number(s) }),
277
- { autocomplete: `(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(weightMap).join("|")})` }
278
- ],
279
- [
280
- /^(?:font-)?(?:leading|lh|line-height)-(.+)$/,
281
- ([, s], { theme }) => ({ "line-height": handleLineHeight(s, theme) }),
282
- { autocomplete: "(leading|lh|line-height)-$lineHeight" }
283
- ],
284
- ["font-synthesis-weight", { "font-synthesis": "weight" }],
285
- ["font-synthesis-style", { "font-synthesis": "style" }],
286
- ["font-synthesis-small-caps", { "font-synthesis": "small-caps" }],
287
- ["font-synthesis-none", { "font-synthesis": "none" }],
288
- [/^font-synthesis-(.+)$/, ([, s]) => ({ "font-synthesis": colors.h.bracket.cssvar.global(s) })],
289
- [
290
- /^(?:font-)?tracking-(.+)$/,
291
- ([, s], { theme }) => ({ "letter-spacing": theme.letterSpacing?.[s] || colors.h.bracket.cssvar.global.rem(s) }),
292
- { autocomplete: "tracking-$letterSpacing" }
293
- ],
294
- [
295
- /^(?:font-)?word-spacing-(.+)$/,
296
- ([, s], { theme }) => ({ "word-spacing": theme.wordSpacing?.[s] || colors.h.bracket.cssvar.global.rem(s) }),
297
- { autocomplete: "word-spacing-$wordSpacing" }
298
- ],
299
- [
300
- /^font-(.+)$/,
301
- ([, d], { theme }) => ({ "font-family": theme.fontFamily?.[d] || colors.h.bracket.cssvar.global(d) }),
302
- { autocomplete: "font-$fontFamily" }
303
- ]
304
- ];
305
- const tabSizes = [
306
- [/^tab(?:-(.+))?$/, ([, s]) => {
307
- const v = colors.h.bracket.cssvar.global.number(s || "4");
308
- if (v != null) {
309
- return {
310
- "-moz-tab-size": v,
311
- "-o-tab-size": v,
312
- "tab-size": v
313
- };
314
- }
315
- }]
316
- ];
317
- const textIndents = [
318
- [/^indent(?:-(.+))?$/, ([, s], { theme }) => ({ "text-indent": theme.textIndent?.[s || "DEFAULT"] || colors.h.bracket.cssvar.global.fraction.rem(s) }), { autocomplete: "indent-$textIndent" }]
319
- ];
320
- const textStrokes = [
321
- [/^text-stroke(?:-(.+))?$/, ([, s], { theme }) => ({ "-webkit-text-stroke-width": theme.textStrokeWidth?.[s || "DEFAULT"] || colors.h.bracket.cssvar.px(s) }), { autocomplete: "text-stroke-$textStrokeWidth" }],
322
- [/^text-stroke-(.+)$/, colors.colorResolver("-webkit-text-stroke-color", "text-stroke"), { autocomplete: "text-stroke-$colors" }],
323
- [/^text-stroke-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-text-stroke-opacity": colors.h.bracket.percent.cssvar(opacity) }), { autocomplete: "text-stroke-(op|opacity)-<percent>" }]
324
- ];
325
- const textShadows = [
326
- [/^text-shadow(?:-(.+))?$/, ([, s], { theme }) => {
327
- const v = theme.textShadow?.[s || "DEFAULT"];
328
- if (v != null) {
329
- return {
330
- "--un-text-shadow": colors.colorableShadows(v, "--un-text-shadow-color").join(","),
331
- "text-shadow": "var(--un-text-shadow)"
332
- };
333
- }
334
- return { "text-shadow": colors.h.bracket.cssvar.global(s) };
335
- }, { autocomplete: "text-shadow-$textShadow" }],
336
- [/^text-shadow-color-(.+)$/, colors.colorResolver("--un-text-shadow-color", "text-shadow"), { autocomplete: "text-shadow-color-$colors" }],
337
- [/^text-shadow-color-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-text-shadow-opacity": colors.h.bracket.percent.cssvar(opacity) }), { autocomplete: "text-shadow-color-(op|opacity)-<percent>" }]
338
- ];
339
-
340
232
  const overflowValues = [
341
233
  "auto",
342
234
  "hidden",
@@ -792,6 +684,7 @@ exports.boxShadows = boxShadows;
792
684
  exports.boxShadowsBase = boxShadowsBase;
793
685
  exports.boxSizing = boxSizing;
794
686
  exports.breaks = breaks;
687
+ exports.colorScheme = colorScheme;
795
688
  exports.contains = contains;
796
689
  exports.contentVisibility = contentVisibility;
797
690
  exports.contents = contents;
@@ -801,7 +694,6 @@ exports.flexGridJustifiesAlignments = flexGridJustifiesAlignments;
801
694
  exports.floats = floats;
802
695
  exports.fontSmoothings = fontSmoothings;
803
696
  exports.fontStyles = fontStyles;
804
- exports.fonts = fonts;
805
697
  exports.handlerBorderStyle = handlerBorderStyle;
806
698
  exports.insets = insets;
807
699
  exports.justifies = justifies;
@@ -815,14 +707,10 @@ exports.positions = positions;
815
707
  exports.resizes = resizes;
816
708
  exports.ringBase = ringBase;
817
709
  exports.rings = rings;
818
- exports.tabSizes = tabSizes;
819
710
  exports.textAligns = textAligns;
820
711
  exports.textColors = textColors;
821
712
  exports.textDecorations = textDecorations;
822
- exports.textIndents = textIndents;
823
713
  exports.textOverflows = textOverflows;
824
- exports.textShadows = textShadows;
825
- exports.textStrokes = textStrokes;
826
714
  exports.textTransforms = textTransforms;
827
715
  exports.textWraps = textWraps;
828
716
  exports.transformBase = transformBase;
@@ -1,5 +1,5 @@
1
- import { g as globalKeywords, h, c as colorResolver, d as directionMap, a as hasParseableColor, b as cornerMap, p as parseColor, e as colorToString, f as colorOpacityToString, n as numberWithUnitRE, m as makeGlobalStaticRules, s as splitShorthand, i as colorableShadows, j as insetMap, k as positionMap, x as xyzMap } from './preset-mini.6c244f7e.mjs';
2
- import { toArray } from '@unocss/core';
1
+ import { g as globalKeywords, h, c as colorResolver, d as directionMap, a as hasParseableColor, b as cornerMap, p as parseColor, e as colorToString, f as colorOpacityToString, n as numberWithUnitRE, m as makeGlobalStaticRules, i as insetMap, j as colorableShadows, k as positionMap, x as xyzMap } from './preset-mini.6c1c8016.mjs';
2
+ import '@unocss/core';
3
3
 
4
4
  const verticalAlignAlias = {
5
5
  "mid": "middle",
@@ -154,6 +154,9 @@ const bgColors = [
154
154
  [/^bg-(.+)$/, colorResolver("background-color", "bg"), { autocomplete: "bg-$colors" }],
155
155
  [/^bg-op(?:acity)?-?(.+)$/, ([, opacity2]) => ({ "--un-bg-opacity": h.bracket.percent.cssvar(opacity2) }), { autocomplete: "bg-(op|opacity)-<percent>" }]
156
156
  ];
157
+ const colorScheme = [
158
+ [/^color-scheme-(\w+)$/, ([, v]) => ({ "color-scheme": v })]
159
+ ];
157
160
 
158
161
  const decorationStyles = ["solid", "double", "dotted", "dashed", "wavy", ...globalKeywords];
159
162
  const textDecorations = [
@@ -224,117 +227,6 @@ const transitions = [
224
227
  ...makeGlobalStaticRules("transition")
225
228
  ];
226
229
 
227
- const weightMap = {
228
- thin: "100",
229
- extralight: "200",
230
- light: "300",
231
- normal: "400",
232
- medium: "500",
233
- semibold: "600",
234
- bold: "700",
235
- extrabold: "800",
236
- black: "900"
237
- };
238
- function handleLineHeight(s, theme) {
239
- return theme.lineHeight?.[s] || h.bracket.cssvar.global.rem(s);
240
- }
241
- const fonts = [
242
- [
243
- /^text-(.+)$/,
244
- ([, s = "base"], { theme }) => {
245
- const [size, leading] = splitShorthand(s, "length");
246
- const sizePairs = toArray(theme.fontSize?.[size]);
247
- const lineHeight = leading ? handleLineHeight(leading, theme) : void 0;
248
- if (sizePairs?.[0]) {
249
- const [fontSize2, height] = sizePairs;
250
- return {
251
- "font-size": fontSize2,
252
- "line-height": lineHeight ?? height ?? "1"
253
- };
254
- }
255
- const fontSize = h.bracketOfLength.rem(size);
256
- if (lineHeight && fontSize) {
257
- return {
258
- "font-size": fontSize,
259
- "line-height": lineHeight
260
- };
261
- }
262
- return { "font-size": h.bracketOfLength.rem(s) };
263
- },
264
- { autocomplete: "text-$fontSize" }
265
- ],
266
- [/^text-size-(.+)$/, ([, s], { theme }) => {
267
- const themed = toArray(theme.fontSize?.[s]);
268
- const size = themed?.[0] ?? h.bracket.cssvar.global.rem(s);
269
- if (size != null)
270
- return { "font-size": size };
271
- }, { autocomplete: "text-size-$fontSize" }],
272
- [
273
- /^(?:font|fw)-?([^-]+)$/,
274
- ([, s]) => ({ "font-weight": weightMap[s] || h.bracket.global.number(s) }),
275
- { autocomplete: `(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(weightMap).join("|")})` }
276
- ],
277
- [
278
- /^(?:font-)?(?:leading|lh|line-height)-(.+)$/,
279
- ([, s], { theme }) => ({ "line-height": handleLineHeight(s, theme) }),
280
- { autocomplete: "(leading|lh|line-height)-$lineHeight" }
281
- ],
282
- ["font-synthesis-weight", { "font-synthesis": "weight" }],
283
- ["font-synthesis-style", { "font-synthesis": "style" }],
284
- ["font-synthesis-small-caps", { "font-synthesis": "small-caps" }],
285
- ["font-synthesis-none", { "font-synthesis": "none" }],
286
- [/^font-synthesis-(.+)$/, ([, s]) => ({ "font-synthesis": h.bracket.cssvar.global(s) })],
287
- [
288
- /^(?:font-)?tracking-(.+)$/,
289
- ([, s], { theme }) => ({ "letter-spacing": theme.letterSpacing?.[s] || h.bracket.cssvar.global.rem(s) }),
290
- { autocomplete: "tracking-$letterSpacing" }
291
- ],
292
- [
293
- /^(?:font-)?word-spacing-(.+)$/,
294
- ([, s], { theme }) => ({ "word-spacing": theme.wordSpacing?.[s] || h.bracket.cssvar.global.rem(s) }),
295
- { autocomplete: "word-spacing-$wordSpacing" }
296
- ],
297
- [
298
- /^font-(.+)$/,
299
- ([, d], { theme }) => ({ "font-family": theme.fontFamily?.[d] || h.bracket.cssvar.global(d) }),
300
- { autocomplete: "font-$fontFamily" }
301
- ]
302
- ];
303
- const tabSizes = [
304
- [/^tab(?:-(.+))?$/, ([, s]) => {
305
- const v = h.bracket.cssvar.global.number(s || "4");
306
- if (v != null) {
307
- return {
308
- "-moz-tab-size": v,
309
- "-o-tab-size": v,
310
- "tab-size": v
311
- };
312
- }
313
- }]
314
- ];
315
- const textIndents = [
316
- [/^indent(?:-(.+))?$/, ([, s], { theme }) => ({ "text-indent": theme.textIndent?.[s || "DEFAULT"] || h.bracket.cssvar.global.fraction.rem(s) }), { autocomplete: "indent-$textIndent" }]
317
- ];
318
- const textStrokes = [
319
- [/^text-stroke(?:-(.+))?$/, ([, s], { theme }) => ({ "-webkit-text-stroke-width": theme.textStrokeWidth?.[s || "DEFAULT"] || h.bracket.cssvar.px(s) }), { autocomplete: "text-stroke-$textStrokeWidth" }],
320
- [/^text-stroke-(.+)$/, colorResolver("-webkit-text-stroke-color", "text-stroke"), { autocomplete: "text-stroke-$colors" }],
321
- [/^text-stroke-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-text-stroke-opacity": h.bracket.percent.cssvar(opacity) }), { autocomplete: "text-stroke-(op|opacity)-<percent>" }]
322
- ];
323
- const textShadows = [
324
- [/^text-shadow(?:-(.+))?$/, ([, s], { theme }) => {
325
- const v = theme.textShadow?.[s || "DEFAULT"];
326
- if (v != null) {
327
- return {
328
- "--un-text-shadow": colorableShadows(v, "--un-text-shadow-color").join(","),
329
- "text-shadow": "var(--un-text-shadow)"
330
- };
331
- }
332
- return { "text-shadow": h.bracket.cssvar.global(s) };
333
- }, { autocomplete: "text-shadow-$textShadow" }],
334
- [/^text-shadow-color-(.+)$/, colorResolver("--un-text-shadow-color", "text-shadow"), { autocomplete: "text-shadow-color-$colors" }],
335
- [/^text-shadow-color-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-text-shadow-opacity": h.bracket.percent.cssvar(opacity) }), { autocomplete: "text-shadow-color-(op|opacity)-<percent>" }]
336
- ];
337
-
338
230
  const overflowValues = [
339
231
  "auto",
340
232
  "hidden",
@@ -780,4 +672,4 @@ function handleSkew([, d, b]) {
780
672
  }
781
673
  }
782
674
 
783
- export { userSelects as A, whitespaces as B, breaks as C, overflows as D, outline as E, appearance as F, orders as G, justifies as H, alignments as I, placements as J, flexGridJustifiesAlignments as K, insets as L, floats as M, zIndexes as N, boxSizing as O, transitions as P, transforms as Q, willChange as R, contains as S, textWraps as T, transformBase as U, boxShadowsBase as V, ringBase as W, borderStyles as X, handlerBorderStyle as Y, varEmpty as Z, borders as a, bgColors as b, contentVisibility as c, displays as d, contents as e, fonts as f, textIndents as g, textOverflows as h, textDecorations as i, textStrokes as j, textShadows as k, textTransforms as l, textAligns as m, textColors as n, opacity as o, fontStyles as p, fontSmoothings as q, boxShadows as r, rings as s, tabSizes as t, positions as u, cursors as v, appearances as w, pointerEvents as x, resizes as y, verticalAligns as z };
675
+ export { outline as A, appearance as B, orders as C, justifies as D, alignments as E, placements as F, flexGridJustifiesAlignments as G, insets as H, floats as I, zIndexes as J, boxSizing as K, transitions as L, transforms as M, willChange as N, contains as O, textWraps as P, transformBase as Q, boxShadowsBase as R, ringBase as S, borderStyles as T, handlerBorderStyle as U, varEmpty as V, borders as a, bgColors as b, colorScheme as c, displays as d, contentVisibility as e, contents as f, textDecorations as g, textTransforms as h, textAligns as i, textColors as j, fontStyles as k, fontSmoothings as l, boxShadows as m, cursors as n, opacity as o, positions as p, appearances as q, rings as r, pointerEvents as s, textOverflows as t, resizes as u, verticalAligns as v, userSelects as w, whitespaces as x, breaks as y, overflows as z };
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const colors = require('./preset-mini.f3fc54d2.cjs');
4
- const transform = require('./preset-mini.db8ecde7.cjs');
4
+ const transform = require('./preset-mini.78d4899a.cjs');
5
5
  require('@unocss/core');
6
6
  require('./preset-mini.a21c5071.cjs');
7
7
 
@@ -97,6 +97,17 @@ const letterSpacing = {
97
97
  wider: "0.05em",
98
98
  widest: "0.1em"
99
99
  };
100
+ const fontWeight = {
101
+ thin: "100",
102
+ extralight: "200",
103
+ light: "300",
104
+ normal: "400",
105
+ medium: "500",
106
+ semibold: "600",
107
+ bold: "700",
108
+ extrabold: "800",
109
+ black: "900"
110
+ };
100
111
  const wordSpacing = letterSpacing;
101
112
 
102
113
  const breakpoints = {
@@ -250,6 +261,7 @@ const theme = {
250
261
  colors: colors.colors,
251
262
  fontFamily,
252
263
  fontSize,
264
+ fontWeight,
253
265
  breakpoints,
254
266
  verticalBreakpoints,
255
267
  borderRadius,
@@ -282,6 +294,7 @@ exports.duration = duration;
282
294
  exports.easing = easing;
283
295
  exports.fontFamily = fontFamily;
284
296
  exports.fontSize = fontSize;
297
+ exports.fontWeight = fontWeight;
285
298
  exports.height = height;
286
299
  exports.letterSpacing = letterSpacing;
287
300
  exports.lineHeight = lineHeight;
@@ -1,7 +1,7 @@
1
1
  import { c as colors } from './preset-mini.1c66bf79.mjs';
2
- import { U as transformBase, V as boxShadowsBase, W as ringBase } from './preset-mini.17fe8f10.mjs';
2
+ import { Q as transformBase, R as boxShadowsBase, S as ringBase } from './preset-mini.830250eb.mjs';
3
3
  import '@unocss/core';
4
- import './preset-mini.6c244f7e.mjs';
4
+ import './preset-mini.6c1c8016.mjs';
5
5
 
6
6
  const fontFamily = {
7
7
  sans: [
@@ -95,6 +95,17 @@ const letterSpacing = {
95
95
  wider: "0.05em",
96
96
  widest: "0.1em"
97
97
  };
98
+ const fontWeight = {
99
+ thin: "100",
100
+ extralight: "200",
101
+ light: "300",
102
+ normal: "400",
103
+ medium: "500",
104
+ semibold: "600",
105
+ bold: "700",
106
+ extrabold: "800",
107
+ black: "900"
108
+ };
98
109
  const wordSpacing = letterSpacing;
99
110
 
100
111
  const breakpoints = {
@@ -248,6 +259,7 @@ const theme = {
248
259
  colors,
249
260
  fontFamily,
250
261
  fontSize,
262
+ fontWeight,
251
263
  breakpoints,
252
264
  verticalBreakpoints,
253
265
  borderRadius,
@@ -269,4 +281,4 @@ const theme = {
269
281
  containers
270
282
  };
271
283
 
272
- export { containers as A, fontSize as a, blur as b, textIndent as c, dropShadow as d, textStrokeWidth as e, fontFamily as f, textShadow as g, letterSpacing as h, breakpoints as i, lineWidth as j, duration as k, lineHeight as l, borderRadius as m, boxShadow as n, easing as o, preflightBase as p, baseSize as q, ringWidth as r, spacing as s, theme as t, width as u, verticalBreakpoints as v, wordSpacing as w, maxWidth as x, height as y, maxHeight as z };
284
+ export { maxHeight as A, containers as B, fontSize as a, blur as b, textIndent as c, dropShadow as d, textStrokeWidth as e, fontFamily as f, textShadow as g, letterSpacing as h, fontWeight as i, breakpoints as j, lineWidth as k, lineHeight as l, duration as m, borderRadius as n, boxShadow as o, easing as p, preflightBase as q, ringWidth as r, spacing as s, theme as t, baseSize as u, verticalBreakpoints as v, wordSpacing as w, width as x, maxWidth as y, height as z };
package/dist/theme.cjs CHANGED
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const colors = require('./shared/preset-mini.f3fc54d2.cjs');
6
- const _default = require('./shared/preset-mini.0ea9a044.cjs');
7
- require('./shared/preset-mini.db8ecde7.cjs');
6
+ const _default = require('./shared/preset-mini.b22ca5de.cjs');
7
+ require('./shared/preset-mini.78d4899a.cjs');
8
8
  require('./shared/preset-mini.a21c5071.cjs');
9
9
  require('@unocss/core');
10
10
 
@@ -22,6 +22,7 @@ exports.duration = _default.duration;
22
22
  exports.easing = _default.easing;
23
23
  exports.fontFamily = _default.fontFamily;
24
24
  exports.fontSize = _default.fontSize;
25
+ exports.fontWeight = _default.fontWeight;
25
26
  exports.height = _default.height;
26
27
  exports.letterSpacing = _default.letterSpacing;
27
28
  exports.lineHeight = _default.lineHeight;
package/dist/theme.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export { c as colors } from './colors-9b4e2c30.js';
2
- export { t as theme } from './default-e9b20bc4.js';
3
- import { T as Theme } from './types-c1be36b6.js';
4
- export { C as Colors, T as Theme, a as ThemeAnimation } from './types-c1be36b6.js';
1
+ export { c as colors } from './colors-dabdd21f.js';
2
+ export { t as theme } from './default-1f25a0ae.js';
3
+ import { T as Theme } from './types-d991ba46.js';
4
+ export { C as Colors, T as Theme, a as ThemeAnimation } from './types-d991ba46.js';
5
5
  import '@unocss/core';
6
6
 
7
7
  declare const blur: {
@@ -56,6 +56,17 @@ declare const letterSpacing: {
56
56
  wider: string;
57
57
  widest: string;
58
58
  };
59
+ declare const fontWeight: {
60
+ thin: string;
61
+ extralight: string;
62
+ light: string;
63
+ normal: string;
64
+ medium: string;
65
+ semibold: string;
66
+ bold: string;
67
+ extrabold: string;
68
+ black: string;
69
+ };
59
70
  declare const wordSpacing: {
60
71
  tighter: string;
61
72
  tight: string;
@@ -250,4 +261,4 @@ declare const containers: {
250
261
  [k: string]: string;
251
262
  };
252
263
 
253
- export { baseSize, blur, borderRadius, boxShadow, breakpoints, containers, dropShadow, duration, easing, fontFamily, fontSize, height, letterSpacing, lineHeight, lineWidth, maxHeight, maxWidth, preflightBase, ringWidth, spacing, textIndent, textShadow, textStrokeWidth, verticalBreakpoints, width, wordSpacing };
264
+ export { baseSize, blur, borderRadius, boxShadow, breakpoints, containers, dropShadow, duration, easing, fontFamily, fontSize, fontWeight, height, letterSpacing, lineHeight, lineWidth, maxHeight, maxWidth, preflightBase, ringWidth, spacing, textIndent, textShadow, textStrokeWidth, verticalBreakpoints, width, wordSpacing };
package/dist/theme.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  export { c as colors } from './shared/preset-mini.1c66bf79.mjs';
2
- export { q as baseSize, b as blur, m as borderRadius, n as boxShadow, i as breakpoints, A as containers, d as dropShadow, k as duration, o as easing, f as fontFamily, a as fontSize, y as height, h as letterSpacing, l as lineHeight, j as lineWidth, z as maxHeight, x as maxWidth, p as preflightBase, r as ringWidth, s as spacing, c as textIndent, g as textShadow, e as textStrokeWidth, t as theme, v as verticalBreakpoints, u as width, w as wordSpacing } from './shared/preset-mini.438da325.mjs';
3
- import './shared/preset-mini.17fe8f10.mjs';
4
- import './shared/preset-mini.6c244f7e.mjs';
2
+ export { u as baseSize, b as blur, n as borderRadius, o as boxShadow, j as breakpoints, B as containers, d as dropShadow, m as duration, p as easing, f as fontFamily, a as fontSize, i as fontWeight, z as height, h as letterSpacing, l as lineHeight, k as lineWidth, A as maxHeight, y as maxWidth, q as preflightBase, r as ringWidth, s as spacing, c as textIndent, g as textShadow, e as textStrokeWidth, t as theme, v as verticalBreakpoints, x as width, w as wordSpacing } from './shared/preset-mini.e7d18afd.mjs';
3
+ import './shared/preset-mini.830250eb.mjs';
4
+ import './shared/preset-mini.6c1c8016.mjs';
5
5
  import '@unocss/core';
@@ -31,6 +31,7 @@ interface Theme {
31
31
  colors?: Colors;
32
32
  fontFamily?: Record<string, string>;
33
33
  fontSize?: Record<string, string | [string, string]>;
34
+ fontWeight?: Record<string, string>;
34
35
  lineHeight?: Record<string, string>;
35
36
  letterSpacing?: Record<string, string>;
36
37
  wordSpacing?: Record<string, string>;
@@ -1,5 +1,5 @@
1
1
  import { DynamicMatcher, ParsedColorValue, CSSObject, VariantContext, StaticRule } from '@unocss/core';
2
- import { T as Theme } from './types-c1be36b6.js';
2
+ import { T as Theme } from './types-d991ba46.js';
3
3
 
4
4
  declare const CONTROL_MINI_NO_NEGATIVE = "$$mini-no-negative";
5
5
  /**
package/dist/utils.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as _unocss_core from '@unocss/core';
2
2
  import { RGBAColorValue, CSSColorValue, VariantHandlerContext, VariantObject } from '@unocss/core';
3
- export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, g as getBracket, e as getComponent, f as getComponents, h as hasParseableColor, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints, s as splitShorthand } from './utilities-50ca92a9.js';
4
- import './types-c1be36b6.js';
3
+ export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, g as getBracket, e as getComponent, f as getComponents, h as hasParseableColor, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints, s as splitShorthand } from './utilities-d496540e.js';
4
+ import './types-d991ba46.js';
5
5
 
6
6
  declare function hex2rgba(hex?: string): RGBAColorValue | undefined;
7
7
  declare function parseCssColor(str?: string): CSSColorValue | undefined;
package/dist/utils.mjs CHANGED
@@ -1,3 +1,3 @@
1
- export { C as CONTROL_MINI_NO_NEGATIVE, f as colorOpacityToString, c as colorResolver, e as colorToString, i as colorableShadows, b as cornerMap, d as directionMap, o as directionSize, q as getBracket, t as getComponent, z as getComponents, g as globalKeywords, h, w as handler, a as hasParseableColor, u as hex2rgba, j as insetMap, m as makeGlobalStaticRules, p as parseColor, v as parseCssColor, k as positionMap, l as resolveBreakpoints, r as resolveVerticalBreakpoints, s as splitShorthand, y as valueHandlers, x as xyzMap } from './shared/preset-mini.6c244f7e.mjs';
2
- export { a as variantGetBracket, v as variantGetParameter, b as variantMatcher, c as variantParentMatcher } from './shared/preset-mini.9af3cc95.mjs';
1
+ export { C as CONTROL_MINI_NO_NEGATIVE, f as colorOpacityToString, c as colorResolver, e as colorToString, j as colorableShadows, b as cornerMap, d as directionMap, o as directionSize, q as getBracket, t as getComponent, z as getComponents, g as globalKeywords, h, w as handler, a as hasParseableColor, u as hex2rgba, i as insetMap, m as makeGlobalStaticRules, p as parseColor, v as parseCssColor, k as positionMap, l as resolveBreakpoints, r as resolveVerticalBreakpoints, s as splitShorthand, y as valueHandlers, x as xyzMap } from './shared/preset-mini.6c1c8016.mjs';
2
+ export { a as variantGetBracket, v as variantGetParameter, b as variantMatcher, c as variantParentMatcher } from './shared/preset-mini.74f9d55e.mjs';
3
3
  import '@unocss/core';
@@ -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 './types-c1be36b6.js';
4
- import './colors-9b4e2c30.js';
5
- import './default-e9b20bc4.js';
6
- import './utilities-50ca92a9.js';
3
+ import { T as Theme } from './types-d991ba46.js';
4
+ import './colors-dabdd21f.js';
5
+ import './default-1f25a0ae.js';
6
+ import './utilities-d496540e.js';
7
7
 
8
8
  declare const variantAria: VariantObject;
9
9
 
package/dist/variants.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { c as calcMaxWidthBySize, a as variantAria, b as variantBreakpoints, f as variantColorsMediaOrClass, d as variantCombinators, e as variantContainerQuery, m as variantCssLayer, k as variantCustomMedia, g as variantDataAttribute, i as variantImportant, n as variantInternalLayer, h as variantLanguageDirections, q as variantNegative, u as variantPartClasses, j as variantPrint, s as variantPseudoClassFunctions, r as variantPseudoClassesAndElements, o as variantScope, l as variantSelector, w as variantSupports, t as variantTaggedPseudoClasses, p as variantVariables, v as variants } from './shared/preset-mini.407f1930.mjs';
2
- import './shared/preset-mini.6c244f7e.mjs';
1
+ export { c as calcMaxWidthBySize, a as variantAria, b as variantBreakpoints, f as variantColorsMediaOrClass, d as variantCombinators, e as variantContainerQuery, m as variantCssLayer, k as variantCustomMedia, g as variantDataAttribute, i as variantImportant, n as variantInternalLayer, h as variantLanguageDirections, q as variantNegative, u as variantPartClasses, j as variantPrint, s as variantPseudoClassFunctions, r as variantPseudoClassesAndElements, o as variantScope, l as variantSelector, w as variantSupports, t as variantTaggedPseudoClasses, p as variantVariables, v as variants } from './shared/preset-mini.424c142b.mjs';
2
+ import './shared/preset-mini.6c1c8016.mjs';
3
3
  import '@unocss/core';
4
- import './shared/preset-mini.9af3cc95.mjs';
4
+ import './shared/preset-mini.74f9d55e.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-mini",
3
- "version": "0.53.4",
3
+ "version": "0.53.6",
4
4
  "description": "The minimal preset for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -61,8 +61,8 @@
61
61
  "*.css"
62
62
  ],
63
63
  "dependencies": {
64
- "@unocss/core": "0.53.4",
65
- "@unocss/extractor-arbitrary-variants": "0.53.4"
64
+ "@unocss/core": "0.53.6",
65
+ "@unocss/extractor-arbitrary-variants": "0.53.6"
66
66
  },
67
67
  "scripts": {
68
68
  "build": "unbuild",