@unocss/preset-mini 0.57.7 → 0.58.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/colors.d.cts +1 -1
  2. package/dist/colors.d.mts +1 -1
  3. package/dist/colors.d.ts +1 -1
  4. package/dist/index.cjs +12 -12
  5. package/dist/index.d.cts +6 -6
  6. package/dist/index.d.mts +6 -6
  7. package/dist/index.d.ts +6 -6
  8. package/dist/index.mjs +7 -7
  9. package/dist/rules.cjs +50 -972
  10. package/dist/rules.d.cts +2 -6
  11. package/dist/rules.d.mts +2 -6
  12. package/dist/rules.d.ts +2 -6
  13. package/dist/rules.mjs +5 -931
  14. package/dist/shared/{preset-mini.MACvs-wn.cjs → preset-mini.-3Qybdh5.cjs} +49 -39
  15. package/dist/shared/{preset-mini.Stl9mkMB.mjs → preset-mini.0CcynBZx.mjs} +45 -26
  16. package/dist/shared/{preset-mini.dPVVIvNm.mjs → preset-mini.0UJFjS_1.mjs} +16 -6
  17. package/dist/shared/{preset-mini.XmVozI6N.d.mts → preset-mini.20fUBpHS.d.cts} +4 -3
  18. package/dist/shared/{preset-mini.QW22c5Df.d.ts → preset-mini.8w2rXvMk.d.ts} +4 -3
  19. package/dist/shared/preset-mini.AVP8I7_j.mjs +747 -0
  20. package/dist/shared/preset-mini.ORVb5Lu8.mjs +978 -0
  21. package/dist/shared/{preset-mini.ImRm63ih.cjs → preset-mini.UhMMbd34.cjs} +44 -26
  22. package/dist/shared/{preset-mini.4DxDu2I8.d.mts → preset-mini.YxT4AwuI.d.cts} +1 -1
  23. package/dist/shared/preset-mini.fgwIVvur.cjs +322 -0
  24. package/dist/shared/preset-mini.g6cWGZM2.cjs +1021 -0
  25. package/dist/shared/{preset-mini.5daNC9yh.d.ts → preset-mini.gVNz4b9u.d.ts} +1 -1
  26. package/dist/shared/{preset-mini.7XoWRZIl.d.mts → preset-mini.hpPpX7ws.d.cts} +1 -1
  27. package/dist/shared/{preset-mini.7XoWRZIl.d.ts → preset-mini.hpPpX7ws.d.mts} +1 -1
  28. package/dist/shared/{preset-mini.7XoWRZIl.d.cts → preset-mini.hpPpX7ws.d.ts} +1 -1
  29. package/dist/shared/preset-mini.jXC5Sr98.cjs +772 -0
  30. package/dist/shared/{preset-mini.Jpc0QYPj.d.cts → preset-mini.nzD7Hw_0.d.mts} +4 -3
  31. package/dist/shared/{preset-mini.5-XKlNyK.d.cts → preset-mini.vMrmsD3H.d.mts} +1 -1
  32. package/dist/shared/preset-mini.zC_vZg74.mjs +291 -0
  33. package/dist/theme.cjs +34 -318
  34. package/dist/theme.d.cts +3 -3
  35. package/dist/theme.d.mts +3 -3
  36. package/dist/theme.d.ts +3 -3
  37. package/dist/theme.mjs +5 -293
  38. package/dist/utils.cjs +23 -23
  39. package/dist/utils.d.cts +4 -4
  40. package/dist/utils.d.mts +4 -4
  41. package/dist/utils.d.ts +4 -4
  42. package/dist/utils.mjs +1 -1
  43. package/dist/variants.cjs +31 -739
  44. package/dist/variants.d.cts +5 -5
  45. package/dist/variants.d.mts +5 -5
  46. package/dist/variants.d.ts +5 -5
  47. package/dist/variants.mjs +4 -716
  48. package/package.json +4 -4
@@ -1,5 +1,5 @@
1
1
  import { DynamicMatcher, ParsedColorValue, CSSObject, VariantContext, StaticRule } from '@unocss/core';
2
- import { T as Theme } from './preset-mini.7XoWRZIl.cjs';
2
+ import { T as Theme } from './preset-mini.hpPpX7ws.mjs';
3
3
 
4
4
  declare const CONTROL_MINI_NO_NEGATIVE = "$$mini-no-negative";
5
5
  /**
@@ -13,7 +13,7 @@ type ThemeColorKeys = 'colors' | 'borderColor' | 'backgroundColor' | 'textColor'
13
13
  /**
14
14
  * Split utility shorthand delimited by / or :
15
15
  */
16
- declare function splitShorthand(body: string, type: string): string[];
16
+ declare function splitShorthand(body: string, type: string): string[] | undefined;
17
17
  /**
18
18
  * Parse color string into {@link ParsedColorValue} (if possible). Color value will first be matched to theme object before parsing.
19
19
  * See also color.tests.ts for more examples.
@@ -52,6 +52,7 @@ declare function parseColor(body: string, theme: Theme, key?: ThemeColorKeys): P
52
52
  *
53
53
  * @param property - Property for the css value to be created.
54
54
  * @param varName - Base name for the opacity variable.
55
+ * @param [key] - Theme key to select the color from.
55
56
  * @param [shouldPass] - Function to decide whether to pass the css.
56
57
  * @return object.
57
58
  */
@@ -67,7 +68,7 @@ declare function resolveVerticalBreakpoints(context: Readonly<VariantContext<The
67
68
  size: string;
68
69
  }[] | undefined;
69
70
  declare function makeGlobalStaticRules(prefix: string, property?: string): StaticRule[];
70
- declare function isCSSMathFn(value: string): boolean;
71
+ declare function isCSSMathFn(value: string | undefined): boolean;
71
72
  declare function isSize(str: string): boolean;
72
73
 
73
74
  export { CONTROL_MINI_NO_NEGATIVE as C, colorableShadows as a, resolveVerticalBreakpoints as b, colorResolver as c, directionSize as d, isSize as e, hasParseableColor as h, isCSSMathFn as i, makeGlobalStaticRules as m, parseColor as p, resolveBreakpoints as r, splitShorthand as s };
@@ -1,5 +1,5 @@
1
1
  import * as _unocss_core from '@unocss/core';
2
- import { C as Colors } from './preset-mini.7XoWRZIl.cjs';
2
+ import { C as Colors } from './preset-mini.hpPpX7ws.mjs';
3
3
 
4
4
  declare const theme: {
5
5
  width: {
@@ -0,0 +1,291 @@
1
+ import { colors } from '../colors.mjs';
2
+ import { q as transformBase, b as boxShadowsBase, r as ringBase } from './preset-mini.0UJFjS_1.mjs';
3
+
4
+ const fontFamily = {
5
+ sans: [
6
+ "ui-sans-serif",
7
+ "system-ui",
8
+ "-apple-system",
9
+ "BlinkMacSystemFont",
10
+ '"Segoe UI"',
11
+ "Roboto",
12
+ '"Helvetica Neue"',
13
+ "Arial",
14
+ '"Noto Sans"',
15
+ "sans-serif",
16
+ '"Apple Color Emoji"',
17
+ '"Segoe UI Emoji"',
18
+ '"Segoe UI Symbol"',
19
+ '"Noto Color Emoji"'
20
+ ].join(","),
21
+ serif: [
22
+ "ui-serif",
23
+ "Georgia",
24
+ "Cambria",
25
+ '"Times New Roman"',
26
+ "Times",
27
+ "serif"
28
+ ].join(","),
29
+ mono: [
30
+ "ui-monospace",
31
+ "SFMono-Regular",
32
+ "Menlo",
33
+ "Monaco",
34
+ "Consolas",
35
+ '"Liberation Mono"',
36
+ '"Courier New"',
37
+ "monospace"
38
+ ].join(",")
39
+ };
40
+ const fontSize = {
41
+ "xs": ["0.75rem", "1rem"],
42
+ "sm": ["0.875rem", "1.25rem"],
43
+ "base": ["1rem", "1.5rem"],
44
+ "lg": ["1.125rem", "1.75rem"],
45
+ "xl": ["1.25rem", "1.75rem"],
46
+ "2xl": ["1.5rem", "2rem"],
47
+ "3xl": ["1.875rem", "2.25rem"],
48
+ "4xl": ["2.25rem", "2.5rem"],
49
+ "5xl": ["3rem", "1"],
50
+ "6xl": ["3.75rem", "1"],
51
+ "7xl": ["4.5rem", "1"],
52
+ "8xl": ["6rem", "1"],
53
+ "9xl": ["8rem", "1"]
54
+ };
55
+ const textIndent = {
56
+ "DEFAULT": "1.5rem",
57
+ "xs": "0.5rem",
58
+ "sm": "1rem",
59
+ "md": "1.5rem",
60
+ "lg": "2rem",
61
+ "xl": "2.5rem",
62
+ "2xl": "3rem",
63
+ "3xl": "4rem"
64
+ };
65
+ const textStrokeWidth = {
66
+ DEFAULT: "1.5rem",
67
+ none: "0",
68
+ sm: "thin",
69
+ md: "medium",
70
+ lg: "thick"
71
+ };
72
+ const textShadow = {
73
+ DEFAULT: ["0 0 1px rgb(0 0 0 / 0.2)", "0 0 1px rgb(1 0 5 / 0.1)"],
74
+ none: "0 0 rgb(0 0 0 / 0)",
75
+ sm: "1px 1px 3px rgb(36 37 47 / 0.25)",
76
+ md: ["0 1px 2px rgb(30 29 39 / 0.19)", "1px 2px 4px rgb(54 64 147 / 0.18)"],
77
+ lg: ["3px 3px 6px rgb(0 0 0 / 0.26)", "0 0 5px rgb(15 3 86 / 0.22)"],
78
+ xl: ["1px 1px 3px rgb(0 0 0 / 0.29)", "2px 4px 7px rgb(73 64 125 / 0.35)"]
79
+ };
80
+ const lineHeight = {
81
+ none: "1",
82
+ tight: "1.25",
83
+ snug: "1.375",
84
+ normal: "1.5",
85
+ relaxed: "1.625",
86
+ loose: "2"
87
+ };
88
+ const letterSpacing = {
89
+ tighter: "-0.05em",
90
+ tight: "-0.025em",
91
+ normal: "0em",
92
+ wide: "0.025em",
93
+ wider: "0.05em",
94
+ widest: "0.1em"
95
+ };
96
+ const fontWeight = {
97
+ thin: "100",
98
+ extralight: "200",
99
+ light: "300",
100
+ normal: "400",
101
+ medium: "500",
102
+ semibold: "600",
103
+ bold: "700",
104
+ extrabold: "800",
105
+ black: "900"
106
+ // int[0, 900] -> int
107
+ };
108
+ const wordSpacing = letterSpacing;
109
+
110
+ const breakpoints = {
111
+ "sm": "640px",
112
+ "md": "768px",
113
+ "lg": "1024px",
114
+ "xl": "1280px",
115
+ "2xl": "1536px"
116
+ };
117
+ const verticalBreakpoints = { ...breakpoints };
118
+ const lineWidth = {
119
+ DEFAULT: "1px",
120
+ none: "0"
121
+ };
122
+ const spacing = {
123
+ "DEFAULT": "1rem",
124
+ "none": "0",
125
+ "xs": "0.75rem",
126
+ "sm": "0.875rem",
127
+ "lg": "1.125rem",
128
+ "xl": "1.25rem",
129
+ "2xl": "1.5rem",
130
+ "3xl": "1.875rem",
131
+ "4xl": "2.25rem",
132
+ "5xl": "3rem",
133
+ "6xl": "3.75rem",
134
+ "7xl": "4.5rem",
135
+ "8xl": "6rem",
136
+ "9xl": "8rem"
137
+ };
138
+ const duration = {
139
+ DEFAULT: "150ms",
140
+ none: "0s",
141
+ 75: "75ms",
142
+ 100: "100ms",
143
+ 150: "150ms",
144
+ 200: "200ms",
145
+ 300: "300ms",
146
+ 500: "500ms",
147
+ 700: "700ms",
148
+ 1e3: "1000ms"
149
+ };
150
+ const borderRadius = {
151
+ "DEFAULT": "0.25rem",
152
+ "none": "0",
153
+ "sm": "0.125rem",
154
+ "md": "0.375rem",
155
+ "lg": "0.5rem",
156
+ "xl": "0.75rem",
157
+ "2xl": "1rem",
158
+ "3xl": "1.5rem",
159
+ "full": "9999px"
160
+ };
161
+ const boxShadow = {
162
+ "DEFAULT": ["var(--un-shadow-inset) 0 1px 3px 0 rgb(0 0 0 / 0.1)", "var(--un-shadow-inset) 0 1px 2px -1px rgb(0 0 0 / 0.1)"],
163
+ "none": "0 0 rgb(0 0 0 / 0)",
164
+ "sm": "var(--un-shadow-inset) 0 1px 2px 0 rgb(0 0 0 / 0.05)",
165
+ "md": ["var(--un-shadow-inset) 0 4px 6px -1px rgb(0 0 0 / 0.1)", "var(--un-shadow-inset) 0 2px 4px -2px rgb(0 0 0 / 0.1)"],
166
+ "lg": ["var(--un-shadow-inset) 0 10px 15px -3px rgb(0 0 0 / 0.1)", "var(--un-shadow-inset) 0 4px 6px -4px rgb(0 0 0 / 0.1)"],
167
+ "xl": ["var(--un-shadow-inset) 0 20px 25px -5px rgb(0 0 0 / 0.1)", "var(--un-shadow-inset) 0 8px 10px -6px rgb(0 0 0 / 0.1)"],
168
+ "2xl": "var(--un-shadow-inset) 0 25px 50px -12px rgb(0 0 0 / 0.25)",
169
+ "inner": "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)"
170
+ };
171
+ const easing = {
172
+ "DEFAULT": "cubic-bezier(0.4, 0, 0.2, 1)",
173
+ "linear": "linear",
174
+ "in": "cubic-bezier(0.4, 0, 1, 1)",
175
+ "out": "cubic-bezier(0, 0, 0.2, 1)",
176
+ "in-out": "cubic-bezier(0.4, 0, 0.2, 1)"
177
+ };
178
+ const ringWidth = {
179
+ DEFAULT: "1px",
180
+ none: "0"
181
+ };
182
+ const zIndex = {
183
+ auto: "auto"
184
+ };
185
+ const media = {
186
+ mouse: "(hover) and (pointer: fine)"
187
+ };
188
+
189
+ const blur = {
190
+ "DEFAULT": "8px",
191
+ "0": "0",
192
+ "sm": "4px",
193
+ "md": "12px",
194
+ "lg": "16px",
195
+ "xl": "24px",
196
+ "2xl": "40px",
197
+ "3xl": "64px"
198
+ };
199
+ const dropShadow = {
200
+ "DEFAULT": ["0 1px 2px rgb(0 0 0 / 0.1)", "0 1px 1px rgb(0 0 0 / 0.06)"],
201
+ "sm": "0 1px 1px rgb(0 0 0 / 0.05)",
202
+ "md": ["0 4px 3px rgb(0 0 0 / 0.07)", "0 2px 2px rgb(0 0 0 / 0.06)"],
203
+ "lg": ["0 10px 8px rgb(0 0 0 / 0.04)", "0 4px 3px rgb(0 0 0 / 0.1)"],
204
+ "xl": ["0 20px 13px rgb(0 0 0 / 0.03)", "0 8px 5px rgb(0 0 0 / 0.08)"],
205
+ "2xl": "0 25px 25px rgb(0 0 0 / 0.15)",
206
+ "none": "0 0 rgb(0 0 0 / 0)"
207
+ };
208
+
209
+ const baseSize = {
210
+ "xs": "20rem",
211
+ "sm": "24rem",
212
+ "md": "28rem",
213
+ "lg": "32rem",
214
+ "xl": "36rem",
215
+ "2xl": "42rem",
216
+ "3xl": "48rem",
217
+ "4xl": "56rem",
218
+ "5xl": "64rem",
219
+ "6xl": "72rem",
220
+ "7xl": "80rem",
221
+ "prose": "65ch"
222
+ };
223
+ const width = {
224
+ auto: "auto",
225
+ ...baseSize,
226
+ screen: "100vw"
227
+ };
228
+ const maxWidth = {
229
+ none: "none",
230
+ ...baseSize,
231
+ screen: "100vw"
232
+ };
233
+ const height = {
234
+ auto: "auto",
235
+ ...baseSize,
236
+ screen: "100vh"
237
+ };
238
+ const maxHeight = {
239
+ none: "none",
240
+ ...baseSize,
241
+ screen: "100vh"
242
+ };
243
+ const containers = Object.fromEntries(Object.entries(baseSize).map(([k, v]) => [k, `(min-width: ${v})`]));
244
+
245
+ const preflightBase = {
246
+ ...transformBase,
247
+ ...boxShadowsBase,
248
+ ...ringBase
249
+ };
250
+
251
+ const theme = {
252
+ width,
253
+ height,
254
+ maxWidth,
255
+ maxHeight,
256
+ minWidth: maxWidth,
257
+ minHeight: maxHeight,
258
+ inlineSize: width,
259
+ blockSize: height,
260
+ maxInlineSize: maxWidth,
261
+ maxBlockSize: maxHeight,
262
+ minInlineSize: maxWidth,
263
+ minBlockSize: maxHeight,
264
+ colors,
265
+ fontFamily,
266
+ fontSize,
267
+ fontWeight,
268
+ breakpoints,
269
+ verticalBreakpoints,
270
+ borderRadius,
271
+ lineHeight,
272
+ letterSpacing,
273
+ wordSpacing,
274
+ boxShadow,
275
+ textIndent,
276
+ textShadow,
277
+ textStrokeWidth,
278
+ blur,
279
+ dropShadow,
280
+ easing,
281
+ lineWidth,
282
+ spacing,
283
+ duration,
284
+ ringWidth,
285
+ preflightBase,
286
+ containers,
287
+ zIndex,
288
+ media
289
+ };
290
+
291
+ export { maxWidth as A, height as B, maxHeight as C, containers as D, 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, media as q, ringWidth as r, spacing as s, theme as t, preflightBase as u, verticalBreakpoints as v, wordSpacing as w, baseSize as x, width as y, zIndex as z };
package/dist/theme.cjs CHANGED
@@ -1,326 +1,42 @@
1
1
  'use strict';
2
2
 
3
3
  const colors = require('./colors.cjs');
4
- const transform = require('./shared/preset-mini.MACvs-wn.cjs');
5
- require('./shared/preset-mini.ImRm63ih.cjs');
6
- require('@unocss/rule-utils');
4
+ const _default = require('./shared/preset-mini.fgwIVvur.cjs');
5
+ require('./shared/preset-mini.-3Qybdh5.cjs');
6
+ require('./shared/preset-mini.UhMMbd34.cjs');
7
7
  require('@unocss/core');
8
+ require('@unocss/rule-utils');
8
9
 
9
- const fontFamily = {
10
- sans: [
11
- "ui-sans-serif",
12
- "system-ui",
13
- "-apple-system",
14
- "BlinkMacSystemFont",
15
- '"Segoe UI"',
16
- "Roboto",
17
- '"Helvetica Neue"',
18
- "Arial",
19
- '"Noto Sans"',
20
- "sans-serif",
21
- '"Apple Color Emoji"',
22
- '"Segoe UI Emoji"',
23
- '"Segoe UI Symbol"',
24
- '"Noto Color Emoji"'
25
- ].join(","),
26
- serif: [
27
- "ui-serif",
28
- "Georgia",
29
- "Cambria",
30
- '"Times New Roman"',
31
- "Times",
32
- "serif"
33
- ].join(","),
34
- mono: [
35
- "ui-monospace",
36
- "SFMono-Regular",
37
- "Menlo",
38
- "Monaco",
39
- "Consolas",
40
- '"Liberation Mono"',
41
- '"Courier New"',
42
- "monospace"
43
- ].join(",")
44
- };
45
- const fontSize = {
46
- "xs": ["0.75rem", "1rem"],
47
- "sm": ["0.875rem", "1.25rem"],
48
- "base": ["1rem", "1.5rem"],
49
- "lg": ["1.125rem", "1.75rem"],
50
- "xl": ["1.25rem", "1.75rem"],
51
- "2xl": ["1.5rem", "2rem"],
52
- "3xl": ["1.875rem", "2.25rem"],
53
- "4xl": ["2.25rem", "2.5rem"],
54
- "5xl": ["3rem", "1"],
55
- "6xl": ["3.75rem", "1"],
56
- "7xl": ["4.5rem", "1"],
57
- "8xl": ["6rem", "1"],
58
- "9xl": ["8rem", "1"]
59
- };
60
- const textIndent = {
61
- "DEFAULT": "1.5rem",
62
- "xs": "0.5rem",
63
- "sm": "1rem",
64
- "md": "1.5rem",
65
- "lg": "2rem",
66
- "xl": "2.5rem",
67
- "2xl": "3rem",
68
- "3xl": "4rem"
69
- };
70
- const textStrokeWidth = {
71
- DEFAULT: "1.5rem",
72
- none: "0",
73
- sm: "thin",
74
- md: "medium",
75
- lg: "thick"
76
- };
77
- const textShadow = {
78
- DEFAULT: ["0 0 1px rgb(0 0 0 / 0.2)", "0 0 1px rgb(1 0 5 / 0.1)"],
79
- none: "0 0 rgb(0 0 0 / 0)",
80
- sm: "1px 1px 3px rgb(36 37 47 / 0.25)",
81
- md: ["0 1px 2px rgb(30 29 39 / 0.19)", "1px 2px 4px rgb(54 64 147 / 0.18)"],
82
- lg: ["3px 3px 6px rgb(0 0 0 / 0.26)", "0 0 5px rgb(15 3 86 / 0.22)"],
83
- xl: ["1px 1px 3px rgb(0 0 0 / 0.29)", "2px 4px 7px rgb(73 64 125 / 0.35)"]
84
- };
85
- const lineHeight = {
86
- none: "1",
87
- tight: "1.25",
88
- snug: "1.375",
89
- normal: "1.5",
90
- relaxed: "1.625",
91
- loose: "2"
92
- };
93
- const letterSpacing = {
94
- tighter: "-0.05em",
95
- tight: "-0.025em",
96
- normal: "0em",
97
- wide: "0.025em",
98
- wider: "0.05em",
99
- widest: "0.1em"
100
- };
101
- const fontWeight = {
102
- thin: "100",
103
- extralight: "200",
104
- light: "300",
105
- normal: "400",
106
- medium: "500",
107
- semibold: "600",
108
- bold: "700",
109
- extrabold: "800",
110
- black: "900"
111
- // int[0, 900] -> int
112
- };
113
- const wordSpacing = letterSpacing;
114
-
115
- const breakpoints = {
116
- "sm": "640px",
117
- "md": "768px",
118
- "lg": "1024px",
119
- "xl": "1280px",
120
- "2xl": "1536px"
121
- };
122
- const verticalBreakpoints = { ...breakpoints };
123
- const lineWidth = {
124
- DEFAULT: "1px",
125
- none: "0"
126
- };
127
- const spacing = {
128
- "DEFAULT": "1rem",
129
- "none": "0",
130
- "xs": "0.75rem",
131
- "sm": "0.875rem",
132
- "lg": "1.125rem",
133
- "xl": "1.25rem",
134
- "2xl": "1.5rem",
135
- "3xl": "1.875rem",
136
- "4xl": "2.25rem",
137
- "5xl": "3rem",
138
- "6xl": "3.75rem",
139
- "7xl": "4.5rem",
140
- "8xl": "6rem",
141
- "9xl": "8rem"
142
- };
143
- const duration = {
144
- DEFAULT: "150ms",
145
- none: "0s",
146
- 75: "75ms",
147
- 100: "100ms",
148
- 150: "150ms",
149
- 200: "200ms",
150
- 300: "300ms",
151
- 500: "500ms",
152
- 700: "700ms",
153
- 1e3: "1000ms"
154
- };
155
- const borderRadius = {
156
- "DEFAULT": "0.25rem",
157
- "none": "0",
158
- "sm": "0.125rem",
159
- "md": "0.375rem",
160
- "lg": "0.5rem",
161
- "xl": "0.75rem",
162
- "2xl": "1rem",
163
- "3xl": "1.5rem",
164
- "full": "9999px"
165
- };
166
- const boxShadow = {
167
- "DEFAULT": ["var(--un-shadow-inset) 0 1px 3px 0 rgb(0 0 0 / 0.1)", "var(--un-shadow-inset) 0 1px 2px -1px rgb(0 0 0 / 0.1)"],
168
- "none": "0 0 rgb(0 0 0 / 0)",
169
- "sm": "var(--un-shadow-inset) 0 1px 2px 0 rgb(0 0 0 / 0.05)",
170
- "md": ["var(--un-shadow-inset) 0 4px 6px -1px rgb(0 0 0 / 0.1)", "var(--un-shadow-inset) 0 2px 4px -2px rgb(0 0 0 / 0.1)"],
171
- "lg": ["var(--un-shadow-inset) 0 10px 15px -3px rgb(0 0 0 / 0.1)", "var(--un-shadow-inset) 0 4px 6px -4px rgb(0 0 0 / 0.1)"],
172
- "xl": ["var(--un-shadow-inset) 0 20px 25px -5px rgb(0 0 0 / 0.1)", "var(--un-shadow-inset) 0 8px 10px -6px rgb(0 0 0 / 0.1)"],
173
- "2xl": "var(--un-shadow-inset) 0 25px 50px -12px rgb(0 0 0 / 0.25)",
174
- "inner": "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)"
175
- };
176
- const easing = {
177
- "DEFAULT": "cubic-bezier(0.4, 0, 0.2, 1)",
178
- "linear": "linear",
179
- "in": "cubic-bezier(0.4, 0, 1, 1)",
180
- "out": "cubic-bezier(0, 0, 0.2, 1)",
181
- "in-out": "cubic-bezier(0.4, 0, 0.2, 1)"
182
- };
183
- const ringWidth = {
184
- DEFAULT: "1px",
185
- none: "0"
186
- };
187
- const zIndex = {
188
- auto: "auto"
189
- };
190
- const media = {
191
- mouse: "(hover) and (pointer: fine)"
192
- };
193
-
194
- const blur = {
195
- "DEFAULT": "8px",
196
- "0": "0",
197
- "sm": "4px",
198
- "md": "12px",
199
- "lg": "16px",
200
- "xl": "24px",
201
- "2xl": "40px",
202
- "3xl": "64px"
203
- };
204
- const dropShadow = {
205
- "DEFAULT": ["0 1px 2px rgb(0 0 0 / 0.1)", "0 1px 1px rgb(0 0 0 / 0.06)"],
206
- "sm": "0 1px 1px rgb(0 0 0 / 0.05)",
207
- "md": ["0 4px 3px rgb(0 0 0 / 0.07)", "0 2px 2px rgb(0 0 0 / 0.06)"],
208
- "lg": ["0 10px 8px rgb(0 0 0 / 0.04)", "0 4px 3px rgb(0 0 0 / 0.1)"],
209
- "xl": ["0 20px 13px rgb(0 0 0 / 0.03)", "0 8px 5px rgb(0 0 0 / 0.08)"],
210
- "2xl": "0 25px 25px rgb(0 0 0 / 0.15)",
211
- "none": "0 0 rgb(0 0 0 / 0)"
212
- };
213
-
214
- const baseSize = {
215
- "xs": "20rem",
216
- "sm": "24rem",
217
- "md": "28rem",
218
- "lg": "32rem",
219
- "xl": "36rem",
220
- "2xl": "42rem",
221
- "3xl": "48rem",
222
- "4xl": "56rem",
223
- "5xl": "64rem",
224
- "6xl": "72rem",
225
- "7xl": "80rem",
226
- "prose": "65ch"
227
- };
228
- const width = {
229
- auto: "auto",
230
- ...baseSize,
231
- screen: "100vw"
232
- };
233
- const maxWidth = {
234
- none: "none",
235
- ...baseSize,
236
- screen: "100vw"
237
- };
238
- const height = {
239
- auto: "auto",
240
- ...baseSize,
241
- screen: "100vh"
242
- };
243
- const maxHeight = {
244
- none: "none",
245
- ...baseSize,
246
- screen: "100vh"
247
- };
248
- const containers = Object.fromEntries(Object.entries(baseSize).map(([k, v]) => [k, `(min-width: ${v})`]));
249
-
250
- const preflightBase = {
251
- ...transform.transformBase,
252
- ...transform.boxShadowsBase,
253
- ...transform.ringBase
254
- };
255
10
 
256
- const theme = {
257
- width,
258
- height,
259
- maxWidth,
260
- maxHeight,
261
- minWidth: maxWidth,
262
- minHeight: maxHeight,
263
- inlineSize: width,
264
- blockSize: height,
265
- maxInlineSize: maxWidth,
266
- maxBlockSize: maxHeight,
267
- minInlineSize: maxWidth,
268
- minBlockSize: maxHeight,
269
- colors: colors.colors,
270
- fontFamily,
271
- fontSize,
272
- fontWeight,
273
- breakpoints,
274
- verticalBreakpoints,
275
- borderRadius,
276
- lineHeight,
277
- letterSpacing,
278
- wordSpacing,
279
- boxShadow,
280
- textIndent,
281
- textShadow,
282
- textStrokeWidth,
283
- blur,
284
- dropShadow,
285
- easing,
286
- lineWidth,
287
- spacing,
288
- duration,
289
- ringWidth,
290
- preflightBase,
291
- containers,
292
- zIndex,
293
- media
294
- };
295
11
 
296
12
  exports.colors = colors.colors;
297
- exports.baseSize = baseSize;
298
- exports.blur = blur;
299
- exports.borderRadius = borderRadius;
300
- exports.boxShadow = boxShadow;
301
- exports.breakpoints = breakpoints;
302
- exports.containers = containers;
303
- exports.dropShadow = dropShadow;
304
- exports.duration = duration;
305
- exports.easing = easing;
306
- exports.fontFamily = fontFamily;
307
- exports.fontSize = fontSize;
308
- exports.fontWeight = fontWeight;
309
- exports.height = height;
310
- exports.letterSpacing = letterSpacing;
311
- exports.lineHeight = lineHeight;
312
- exports.lineWidth = lineWidth;
313
- exports.maxHeight = maxHeight;
314
- exports.maxWidth = maxWidth;
315
- exports.media = media;
316
- exports.preflightBase = preflightBase;
317
- exports.ringWidth = ringWidth;
318
- exports.spacing = spacing;
319
- exports.textIndent = textIndent;
320
- exports.textShadow = textShadow;
321
- exports.textStrokeWidth = textStrokeWidth;
322
- exports.theme = theme;
323
- exports.verticalBreakpoints = verticalBreakpoints;
324
- exports.width = width;
325
- exports.wordSpacing = wordSpacing;
326
- exports.zIndex = zIndex;
13
+ exports.baseSize = _default.baseSize;
14
+ exports.blur = _default.blur;
15
+ exports.borderRadius = _default.borderRadius;
16
+ exports.boxShadow = _default.boxShadow;
17
+ exports.breakpoints = _default.breakpoints;
18
+ exports.containers = _default.containers;
19
+ exports.dropShadow = _default.dropShadow;
20
+ exports.duration = _default.duration;
21
+ exports.easing = _default.easing;
22
+ exports.fontFamily = _default.fontFamily;
23
+ exports.fontSize = _default.fontSize;
24
+ exports.fontWeight = _default.fontWeight;
25
+ exports.height = _default.height;
26
+ exports.letterSpacing = _default.letterSpacing;
27
+ exports.lineHeight = _default.lineHeight;
28
+ exports.lineWidth = _default.lineWidth;
29
+ exports.maxHeight = _default.maxHeight;
30
+ exports.maxWidth = _default.maxWidth;
31
+ exports.media = _default.media;
32
+ exports.preflightBase = _default.preflightBase;
33
+ exports.ringWidth = _default.ringWidth;
34
+ exports.spacing = _default.spacing;
35
+ exports.textIndent = _default.textIndent;
36
+ exports.textShadow = _default.textShadow;
37
+ exports.textStrokeWidth = _default.textStrokeWidth;
38
+ exports.theme = _default.theme;
39
+ exports.verticalBreakpoints = _default.verticalBreakpoints;
40
+ exports.width = _default.width;
41
+ exports.wordSpacing = _default.wordSpacing;
42
+ exports.zIndex = _default.zIndex;
package/dist/theme.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { colors } from './colors.cjs';
2
- export { t as theme } from './shared/preset-mini.5-XKlNyK.cjs';
3
- import { T as Theme } from './shared/preset-mini.7XoWRZIl.cjs';
4
- export { C as Colors, a as ThemeAnimation } from './shared/preset-mini.7XoWRZIl.cjs';
2
+ export { t as theme } from './shared/preset-mini.YxT4AwuI.cjs';
3
+ import { T as Theme } from './shared/preset-mini.hpPpX7ws.cjs';
4
+ export { C as Colors, a as ThemeAnimation } from './shared/preset-mini.hpPpX7ws.cjs';
5
5
  import '@unocss/core';
6
6
 
7
7
  declare const blur: {