@unocss/preset-mini 0.53.5 → 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.ee3178c9.cjs');
8
- const _default$1 = require('./shared/preset-mini.ca73a5f0.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.ca82e1e9.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
 
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.922dda3d.mjs';
4
- import { r as rules } from './shared/preset-mini.95617a64.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.1c162eeb.mjs';
8
- export { t as theme } from './shared/preset-mini.1c162eeb.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.ee3178c9.cjs');
6
- const _default = require('./shared/preset-mini.ca73a5f0.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
 
@@ -29,7 +29,6 @@ exports.flexGridJustifiesAlignments = transform.flexGridJustifiesAlignments;
29
29
  exports.floats = transform.floats;
30
30
  exports.fontSmoothings = transform.fontSmoothings;
31
31
  exports.fontStyles = transform.fontStyles;
32
- exports.fonts = transform.fonts;
33
32
  exports.handlerBorderStyle = transform.handlerBorderStyle;
34
33
  exports.insets = transform.insets;
35
34
  exports.justifies = transform.justifies;
@@ -43,14 +42,10 @@ exports.positions = transform.positions;
43
42
  exports.resizes = transform.resizes;
44
43
  exports.ringBase = transform.ringBase;
45
44
  exports.rings = transform.rings;
46
- exports.tabSizes = transform.tabSizes;
47
45
  exports.textAligns = transform.textAligns;
48
46
  exports.textColors = transform.textColors;
49
47
  exports.textDecorations = transform.textDecorations;
50
- exports.textIndents = transform.textIndents;
51
48
  exports.textOverflows = transform.textOverflows;
52
- exports.textShadows = transform.textShadows;
53
- exports.textStrokes = transform.textStrokes;
54
49
  exports.textTransforms = transform.textTransforms;
55
50
  exports.textWraps = transform.textWraps;
56
51
  exports.transformBase = transform.transformBase;
@@ -67,6 +62,7 @@ exports.containerParent = _default.containerParent;
67
62
  exports.cssProperty = _default.cssProperty;
68
63
  exports.cssVariables = _default.cssVariables;
69
64
  exports.flex = _default.flex;
65
+ exports.fonts = _default.fonts;
70
66
  exports.gaps = _default.gaps;
71
67
  exports.grids = _default.grids;
72
68
  exports.margins = _default.margins;
@@ -75,3 +71,7 @@ exports.questionMark = _default.questionMark;
75
71
  exports.rules = _default.rules;
76
72
  exports.sizes = _default.sizes;
77
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[];
package/dist/rules.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { J as alignments, G as appearance, x as appearances, b as bgColors, Y as borderStyles, a as borders, s as boxShadows, W as boxShadowsBase, P as boxSizing, D as breaks, c as colorScheme, T as contains, e as contentVisibility, f as contents, w as cursors, d as displays, L as flexGridJustifiesAlignments, N as floats, r as fontSmoothings, q as fontStyles, g as fonts, Z as handlerBorderStyle, M as insets, I as justifies, o as opacity, H as orders, F as outline, E as overflows, K as placements, y as pointerEvents, v as positions, z as resizes, X as ringBase, u as rings, t as tabSizes, n as textAligns, p as textColors, j as textDecorations, h as textIndents, i as textOverflows, l as textShadows, k as textStrokes, m as textTransforms, U as textWraps, V as transformBase, R as transforms, Q as transitions, B as userSelects, _ as varEmpty, A as verticalAligns, C as whitespaces, S as willChange, O as zIndexes } from './shared/preset-mini.922dda3d.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.95617a64.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, c as colorScheme, a as borders, e as contentVisibility, f as contents, g as fonts, t as tabSizes, h as textIndents, i as textOverflows, j as textDecorations, k as textStrokes, l as textShadows, m as textTransforms, n as textAligns, p as textColors, q as fontStyles, r as fontSmoothings, s as boxShadows, u as rings, v as positions, w as cursors, x as appearances, y as pointerEvents, z as resizes, A as verticalAligns, B as userSelects, C as whitespaces, D as breaks, E as overflows, F as outline, G as appearance, H as orders, I as justifies, J as alignments, K as placements, L as flexGridJustifiesAlignments, M as insets, N as floats, O as zIndexes, P as boxSizing, Q as transitions, R as transforms, S as willChange, T as contains, U as textWraps } from './preset-mini.922dda3d.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
  }
@@ -311,4 +415,4 @@ const rules = [
311
415
  questionMark
312
416
  ].flat(1);
313
417
 
314
- 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.ee3178c9.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
  }
@@ -264,13 +368,13 @@ const rules = [
264
368
  transform.borders,
265
369
  transform.contentVisibility,
266
370
  transform.contents,
267
- transform.fonts,
268
- transform.tabSizes,
269
- transform.textIndents,
371
+ fonts,
372
+ tabSizes,
373
+ textIndents,
270
374
  transform.textOverflows,
271
375
  transform.textDecorations,
272
- transform.textStrokes,
273
- transform.textShadows,
376
+ textStrokes,
377
+ textShadows,
274
378
  transform.textTransforms,
275
379
  transform.textAligns,
276
380
  transform.textColors,
@@ -318,6 +422,7 @@ exports.containerParent = containerParent;
318
422
  exports.cssProperty = cssProperty;
319
423
  exports.cssVariables = cssVariables;
320
424
  exports.flex = flex;
425
+ exports.fonts = fonts;
321
426
  exports.gaps = gaps;
322
427
  exports.grids = grids;
323
428
  exports.margins = margins;
@@ -326,3 +431,7 @@ exports.questionMark = questionMark;
326
431
  exports.rules = rules;
327
432
  exports.sizes = sizes;
328
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",
@@ -229,117 +229,6 @@ const transitions = [
229
229
  ...colors.makeGlobalStaticRules("transition")
230
230
  ];
231
231
 
232
- const weightMap = {
233
- thin: "100",
234
- extralight: "200",
235
- light: "300",
236
- normal: "400",
237
- medium: "500",
238
- semibold: "600",
239
- bold: "700",
240
- extrabold: "800",
241
- black: "900"
242
- };
243
- function handleLineHeight(s, theme) {
244
- return theme.lineHeight?.[s] || colors.h.bracket.cssvar.global.rem(s);
245
- }
246
- const fonts = [
247
- [
248
- /^text-(.+)$/,
249
- ([, s = "base"], { theme }) => {
250
- const [size, leading] = colors.splitShorthand(s, "length");
251
- const sizePairs = core.toArray(theme.fontSize?.[size]);
252
- const lineHeight = leading ? handleLineHeight(leading, theme) : void 0;
253
- if (sizePairs?.[0]) {
254
- const [fontSize2, height] = sizePairs;
255
- return {
256
- "font-size": fontSize2,
257
- "line-height": lineHeight ?? height ?? "1"
258
- };
259
- }
260
- const fontSize = colors.h.bracketOfLength.rem(size);
261
- if (lineHeight && fontSize) {
262
- return {
263
- "font-size": fontSize,
264
- "line-height": lineHeight
265
- };
266
- }
267
- return { "font-size": colors.h.bracketOfLength.rem(s) };
268
- },
269
- { autocomplete: "text-$fontSize" }
270
- ],
271
- [/^text-size-(.+)$/, ([, s], { theme }) => {
272
- const themed = core.toArray(theme.fontSize?.[s]);
273
- const size = themed?.[0] ?? colors.h.bracket.cssvar.global.rem(s);
274
- if (size != null)
275
- return { "font-size": size };
276
- }, { autocomplete: "text-size-$fontSize" }],
277
- [
278
- /^(?:font|fw)-?([^-]+)$/,
279
- ([, s]) => ({ "font-weight": weightMap[s] || colors.h.bracket.global.number(s) }),
280
- { autocomplete: `(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(weightMap).join("|")})` }
281
- ],
282
- [
283
- /^(?:font-)?(?:leading|lh|line-height)-(.+)$/,
284
- ([, s], { theme }) => ({ "line-height": handleLineHeight(s, theme) }),
285
- { autocomplete: "(leading|lh|line-height)-$lineHeight" }
286
- ],
287
- ["font-synthesis-weight", { "font-synthesis": "weight" }],
288
- ["font-synthesis-style", { "font-synthesis": "style" }],
289
- ["font-synthesis-small-caps", { "font-synthesis": "small-caps" }],
290
- ["font-synthesis-none", { "font-synthesis": "none" }],
291
- [/^font-synthesis-(.+)$/, ([, s]) => ({ "font-synthesis": colors.h.bracket.cssvar.global(s) })],
292
- [
293
- /^(?:font-)?tracking-(.+)$/,
294
- ([, s], { theme }) => ({ "letter-spacing": theme.letterSpacing?.[s] || colors.h.bracket.cssvar.global.rem(s) }),
295
- { autocomplete: "tracking-$letterSpacing" }
296
- ],
297
- [
298
- /^(?:font-)?word-spacing-(.+)$/,
299
- ([, s], { theme }) => ({ "word-spacing": theme.wordSpacing?.[s] || colors.h.bracket.cssvar.global.rem(s) }),
300
- { autocomplete: "word-spacing-$wordSpacing" }
301
- ],
302
- [
303
- /^font-(.+)$/,
304
- ([, d], { theme }) => ({ "font-family": theme.fontFamily?.[d] || colors.h.bracket.cssvar.global(d) }),
305
- { autocomplete: "font-$fontFamily" }
306
- ]
307
- ];
308
- const tabSizes = [
309
- [/^tab(?:-(.+))?$/, ([, s]) => {
310
- const v = colors.h.bracket.cssvar.global.number(s || "4");
311
- if (v != null) {
312
- return {
313
- "-moz-tab-size": v,
314
- "-o-tab-size": v,
315
- "tab-size": v
316
- };
317
- }
318
- }]
319
- ];
320
- const textIndents = [
321
- [/^indent(?:-(.+))?$/, ([, s], { theme }) => ({ "text-indent": theme.textIndent?.[s || "DEFAULT"] || colors.h.bracket.cssvar.global.fraction.rem(s) }), { autocomplete: "indent-$textIndent" }]
322
- ];
323
- const textStrokes = [
324
- [/^text-stroke(?:-(.+))?$/, ([, s], { theme }) => ({ "-webkit-text-stroke-width": theme.textStrokeWidth?.[s || "DEFAULT"] || colors.h.bracket.cssvar.px(s) }), { autocomplete: "text-stroke-$textStrokeWidth" }],
325
- [/^text-stroke-(.+)$/, colors.colorResolver("-webkit-text-stroke-color", "text-stroke"), { autocomplete: "text-stroke-$colors" }],
326
- [/^text-stroke-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-text-stroke-opacity": colors.h.bracket.percent.cssvar(opacity) }), { autocomplete: "text-stroke-(op|opacity)-<percent>" }]
327
- ];
328
- const textShadows = [
329
- [/^text-shadow(?:-(.+))?$/, ([, s], { theme }) => {
330
- const v = theme.textShadow?.[s || "DEFAULT"];
331
- if (v != null) {
332
- return {
333
- "--un-text-shadow": colors.colorableShadows(v, "--un-text-shadow-color").join(","),
334
- "text-shadow": "var(--un-text-shadow)"
335
- };
336
- }
337
- return { "text-shadow": colors.h.bracket.cssvar.global(s) };
338
- }, { autocomplete: "text-shadow-$textShadow" }],
339
- [/^text-shadow-color-(.+)$/, colors.colorResolver("--un-text-shadow-color", "text-shadow"), { autocomplete: "text-shadow-color-$colors" }],
340
- [/^text-shadow-color-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-text-shadow-opacity": colors.h.bracket.percent.cssvar(opacity) }), { autocomplete: "text-shadow-color-(op|opacity)-<percent>" }]
341
- ];
342
-
343
232
  const overflowValues = [
344
233
  "auto",
345
234
  "hidden",
@@ -805,7 +694,6 @@ exports.flexGridJustifiesAlignments = flexGridJustifiesAlignments;
805
694
  exports.floats = floats;
806
695
  exports.fontSmoothings = fontSmoothings;
807
696
  exports.fontStyles = fontStyles;
808
- exports.fonts = fonts;
809
697
  exports.handlerBorderStyle = handlerBorderStyle;
810
698
  exports.insets = insets;
811
699
  exports.justifies = justifies;
@@ -819,14 +707,10 @@ exports.positions = positions;
819
707
  exports.resizes = resizes;
820
708
  exports.ringBase = ringBase;
821
709
  exports.rings = rings;
822
- exports.tabSizes = tabSizes;
823
710
  exports.textAligns = textAligns;
824
711
  exports.textColors = textColors;
825
712
  exports.textDecorations = textDecorations;
826
- exports.textIndents = textIndents;
827
713
  exports.textOverflows = textOverflows;
828
- exports.textShadows = textShadows;
829
- exports.textStrokes = textStrokes;
830
714
  exports.textTransforms = textTransforms;
831
715
  exports.textWraps = textWraps;
832
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",
@@ -227,117 +227,6 @@ const transitions = [
227
227
  ...makeGlobalStaticRules("transition")
228
228
  ];
229
229
 
230
- const weightMap = {
231
- thin: "100",
232
- extralight: "200",
233
- light: "300",
234
- normal: "400",
235
- medium: "500",
236
- semibold: "600",
237
- bold: "700",
238
- extrabold: "800",
239
- black: "900"
240
- };
241
- function handleLineHeight(s, theme) {
242
- return theme.lineHeight?.[s] || h.bracket.cssvar.global.rem(s);
243
- }
244
- const fonts = [
245
- [
246
- /^text-(.+)$/,
247
- ([, s = "base"], { theme }) => {
248
- const [size, leading] = splitShorthand(s, "length");
249
- const sizePairs = toArray(theme.fontSize?.[size]);
250
- const lineHeight = leading ? handleLineHeight(leading, theme) : void 0;
251
- if (sizePairs?.[0]) {
252
- const [fontSize2, height] = sizePairs;
253
- return {
254
- "font-size": fontSize2,
255
- "line-height": lineHeight ?? height ?? "1"
256
- };
257
- }
258
- const fontSize = h.bracketOfLength.rem(size);
259
- if (lineHeight && fontSize) {
260
- return {
261
- "font-size": fontSize,
262
- "line-height": lineHeight
263
- };
264
- }
265
- return { "font-size": h.bracketOfLength.rem(s) };
266
- },
267
- { autocomplete: "text-$fontSize" }
268
- ],
269
- [/^text-size-(.+)$/, ([, s], { theme }) => {
270
- const themed = toArray(theme.fontSize?.[s]);
271
- const size = themed?.[0] ?? h.bracket.cssvar.global.rem(s);
272
- if (size != null)
273
- return { "font-size": size };
274
- }, { autocomplete: "text-size-$fontSize" }],
275
- [
276
- /^(?:font|fw)-?([^-]+)$/,
277
- ([, s]) => ({ "font-weight": weightMap[s] || h.bracket.global.number(s) }),
278
- { autocomplete: `(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(weightMap).join("|")})` }
279
- ],
280
- [
281
- /^(?:font-)?(?:leading|lh|line-height)-(.+)$/,
282
- ([, s], { theme }) => ({ "line-height": handleLineHeight(s, theme) }),
283
- { autocomplete: "(leading|lh|line-height)-$lineHeight" }
284
- ],
285
- ["font-synthesis-weight", { "font-synthesis": "weight" }],
286
- ["font-synthesis-style", { "font-synthesis": "style" }],
287
- ["font-synthesis-small-caps", { "font-synthesis": "small-caps" }],
288
- ["font-synthesis-none", { "font-synthesis": "none" }],
289
- [/^font-synthesis-(.+)$/, ([, s]) => ({ "font-synthesis": h.bracket.cssvar.global(s) })],
290
- [
291
- /^(?:font-)?tracking-(.+)$/,
292
- ([, s], { theme }) => ({ "letter-spacing": theme.letterSpacing?.[s] || h.bracket.cssvar.global.rem(s) }),
293
- { autocomplete: "tracking-$letterSpacing" }
294
- ],
295
- [
296
- /^(?:font-)?word-spacing-(.+)$/,
297
- ([, s], { theme }) => ({ "word-spacing": theme.wordSpacing?.[s] || h.bracket.cssvar.global.rem(s) }),
298
- { autocomplete: "word-spacing-$wordSpacing" }
299
- ],
300
- [
301
- /^font-(.+)$/,
302
- ([, d], { theme }) => ({ "font-family": theme.fontFamily?.[d] || h.bracket.cssvar.global(d) }),
303
- { autocomplete: "font-$fontFamily" }
304
- ]
305
- ];
306
- const tabSizes = [
307
- [/^tab(?:-(.+))?$/, ([, s]) => {
308
- const v = h.bracket.cssvar.global.number(s || "4");
309
- if (v != null) {
310
- return {
311
- "-moz-tab-size": v,
312
- "-o-tab-size": v,
313
- "tab-size": v
314
- };
315
- }
316
- }]
317
- ];
318
- const textIndents = [
319
- [/^indent(?:-(.+))?$/, ([, s], { theme }) => ({ "text-indent": theme.textIndent?.[s || "DEFAULT"] || h.bracket.cssvar.global.fraction.rem(s) }), { autocomplete: "indent-$textIndent" }]
320
- ];
321
- const textStrokes = [
322
- [/^text-stroke(?:-(.+))?$/, ([, s], { theme }) => ({ "-webkit-text-stroke-width": theme.textStrokeWidth?.[s || "DEFAULT"] || h.bracket.cssvar.px(s) }), { autocomplete: "text-stroke-$textStrokeWidth" }],
323
- [/^text-stroke-(.+)$/, colorResolver("-webkit-text-stroke-color", "text-stroke"), { autocomplete: "text-stroke-$colors" }],
324
- [/^text-stroke-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-text-stroke-opacity": h.bracket.percent.cssvar(opacity) }), { autocomplete: "text-stroke-(op|opacity)-<percent>" }]
325
- ];
326
- const textShadows = [
327
- [/^text-shadow(?:-(.+))?$/, ([, s], { theme }) => {
328
- const v = theme.textShadow?.[s || "DEFAULT"];
329
- if (v != null) {
330
- return {
331
- "--un-text-shadow": colorableShadows(v, "--un-text-shadow-color").join(","),
332
- "text-shadow": "var(--un-text-shadow)"
333
- };
334
- }
335
- return { "text-shadow": h.bracket.cssvar.global(s) };
336
- }, { autocomplete: "text-shadow-$textShadow" }],
337
- [/^text-shadow-color-(.+)$/, colorResolver("--un-text-shadow-color", "text-shadow"), { autocomplete: "text-shadow-color-$colors" }],
338
- [/^text-shadow-color-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-text-shadow-opacity": h.bracket.percent.cssvar(opacity) }), { autocomplete: "text-shadow-color-(op|opacity)-<percent>" }]
339
- ];
340
-
341
230
  const overflowValues = [
342
231
  "auto",
343
232
  "hidden",
@@ -783,4 +672,4 @@ function handleSkew([, d, b]) {
783
672
  }
784
673
  }
785
674
 
786
- export { verticalAligns as A, userSelects as B, whitespaces as C, breaks as D, overflows as E, outline as F, appearance as G, orders as H, justifies as I, alignments as J, placements as K, flexGridJustifiesAlignments as L, insets as M, floats as N, zIndexes as O, boxSizing as P, transitions as Q, transforms as R, willChange as S, contains as T, textWraps as U, transformBase as V, boxShadowsBase as W, ringBase as X, borderStyles as Y, handlerBorderStyle as Z, varEmpty as _, borders as a, bgColors as b, colorScheme as c, displays as d, contentVisibility as e, contents as f, fonts as g, textIndents as h, textOverflows as i, textDecorations as j, textStrokes as k, textShadows as l, textTransforms as m, textAligns as n, opacity as o, textColors as p, fontStyles as q, fontSmoothings as r, boxShadows as s, tabSizes as t, rings as u, positions as v, cursors as w, appearances as x, pointerEvents as y, resizes 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.ee3178c9.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 { V as transformBase, W as boxShadowsBase, X as ringBase } from './preset-mini.922dda3d.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.ca82e1e9.cjs');
7
- require('./shared/preset-mini.ee3178c9.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.1c162eeb.mjs';
3
- import './shared/preset-mini.922dda3d.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.5",
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.5",
65
- "@unocss/extractor-arbitrary-variants": "0.53.5"
64
+ "@unocss/core": "0.53.6",
65
+ "@unocss/extractor-arbitrary-variants": "0.53.6"
66
66
  },
67
67
  "scripts": {
68
68
  "build": "unbuild",