@unocss/preset-mini 0.58.8 → 0.59.0-beta.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.
- package/dist/index.mjs +6 -6
- package/dist/rules.mjs +3 -3
- package/dist/shared/{preset-mini.DLBE_qKL.mjs → preset-mini.BLqeNSHq.mjs} +1 -1
- package/dist/shared/{preset-mini.D4T3hEuN.mjs → preset-mini.BkfCAdS7.mjs} +2 -2
- package/dist/shared/{preset-mini.Cr9SAx7D.mjs → preset-mini.CWuOZAHF.mjs} +14 -3
- package/dist/shared/{preset-mini.CPzuJ4uB.mjs → preset-mini.Cn7UNwSE.mjs} +1 -1
- package/dist/shared/{preset-mini.zoN9eE0Q.mjs → preset-mini.DeOzy57x.mjs} +1 -1
- package/dist/theme.mjs +3 -3
- package/dist/utils.d.mts +2 -2
- package/dist/utils.d.ts +2 -2
- package/dist/utils.mjs +1 -1
- package/dist/variants.mjs +2 -2
- package/package.json +18 -23
- package/dist/colors.cjs +0 -363
- package/dist/colors.d.cts +0 -354
- package/dist/index.cjs +0 -91
- package/dist/index.d.cts +0 -75
- package/dist/rules.cjs +0 -75
- package/dist/rules.d.cts +0 -129
- package/dist/shared/preset-mini.BCYTcd-i.cjs +0 -582
- package/dist/shared/preset-mini.BP7cviYW.d.cts +0 -75
- package/dist/shared/preset-mini.Bl8k7GEB.cjs +0 -796
- package/dist/shared/preset-mini.CxmMzOLj.cjs +0 -1033
- package/dist/shared/preset-mini.DLRoYX1Y.cjs +0 -322
- package/dist/shared/preset-mini.P5Rzuhf5.d.cts +0 -77
- package/dist/shared/preset-mini.bn9iWcrm.d.cts +0 -728
- package/dist/shared/preset-mini.hSTXklYn.cjs +0 -352
- package/dist/theme.cjs +0 -42
- package/dist/theme.d.cts +0 -270
- package/dist/utils.cjs +0 -42
- package/dist/utils.d.cts +0 -58
- package/dist/variants.cjs +0 -34
- package/dist/variants.d.cts +0 -47
|
@@ -1,322 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const colors = require('../colors.cjs');
|
|
4
|
-
const transform = require('./preset-mini.hSTXklYn.cjs');
|
|
5
|
-
|
|
6
|
-
const fontFamily = {
|
|
7
|
-
sans: [
|
|
8
|
-
"ui-sans-serif",
|
|
9
|
-
"system-ui",
|
|
10
|
-
"-apple-system",
|
|
11
|
-
"BlinkMacSystemFont",
|
|
12
|
-
'"Segoe UI"',
|
|
13
|
-
"Roboto",
|
|
14
|
-
'"Helvetica Neue"',
|
|
15
|
-
"Arial",
|
|
16
|
-
'"Noto Sans"',
|
|
17
|
-
"sans-serif",
|
|
18
|
-
'"Apple Color Emoji"',
|
|
19
|
-
'"Segoe UI Emoji"',
|
|
20
|
-
'"Segoe UI Symbol"',
|
|
21
|
-
'"Noto Color Emoji"'
|
|
22
|
-
].join(","),
|
|
23
|
-
serif: [
|
|
24
|
-
"ui-serif",
|
|
25
|
-
"Georgia",
|
|
26
|
-
"Cambria",
|
|
27
|
-
'"Times New Roman"',
|
|
28
|
-
"Times",
|
|
29
|
-
"serif"
|
|
30
|
-
].join(","),
|
|
31
|
-
mono: [
|
|
32
|
-
"ui-monospace",
|
|
33
|
-
"SFMono-Regular",
|
|
34
|
-
"Menlo",
|
|
35
|
-
"Monaco",
|
|
36
|
-
"Consolas",
|
|
37
|
-
'"Liberation Mono"',
|
|
38
|
-
'"Courier New"',
|
|
39
|
-
"monospace"
|
|
40
|
-
].join(",")
|
|
41
|
-
};
|
|
42
|
-
const fontSize = {
|
|
43
|
-
"xs": ["0.75rem", "1rem"],
|
|
44
|
-
"sm": ["0.875rem", "1.25rem"],
|
|
45
|
-
"base": ["1rem", "1.5rem"],
|
|
46
|
-
"lg": ["1.125rem", "1.75rem"],
|
|
47
|
-
"xl": ["1.25rem", "1.75rem"],
|
|
48
|
-
"2xl": ["1.5rem", "2rem"],
|
|
49
|
-
"3xl": ["1.875rem", "2.25rem"],
|
|
50
|
-
"4xl": ["2.25rem", "2.5rem"],
|
|
51
|
-
"5xl": ["3rem", "1"],
|
|
52
|
-
"6xl": ["3.75rem", "1"],
|
|
53
|
-
"7xl": ["4.5rem", "1"],
|
|
54
|
-
"8xl": ["6rem", "1"],
|
|
55
|
-
"9xl": ["8rem", "1"]
|
|
56
|
-
};
|
|
57
|
-
const textIndent = {
|
|
58
|
-
"DEFAULT": "1.5rem",
|
|
59
|
-
"xs": "0.5rem",
|
|
60
|
-
"sm": "1rem",
|
|
61
|
-
"md": "1.5rem",
|
|
62
|
-
"lg": "2rem",
|
|
63
|
-
"xl": "2.5rem",
|
|
64
|
-
"2xl": "3rem",
|
|
65
|
-
"3xl": "4rem"
|
|
66
|
-
};
|
|
67
|
-
const textStrokeWidth = {
|
|
68
|
-
DEFAULT: "1.5rem",
|
|
69
|
-
none: "0",
|
|
70
|
-
sm: "thin",
|
|
71
|
-
md: "medium",
|
|
72
|
-
lg: "thick"
|
|
73
|
-
};
|
|
74
|
-
const textShadow = {
|
|
75
|
-
DEFAULT: ["0 0 1px rgb(0 0 0 / 0.2)", "0 0 1px rgb(1 0 5 / 0.1)"],
|
|
76
|
-
none: "0 0 rgb(0 0 0 / 0)",
|
|
77
|
-
sm: "1px 1px 3px rgb(36 37 47 / 0.25)",
|
|
78
|
-
md: ["0 1px 2px rgb(30 29 39 / 0.19)", "1px 2px 4px rgb(54 64 147 / 0.18)"],
|
|
79
|
-
lg: ["3px 3px 6px rgb(0 0 0 / 0.26)", "0 0 5px rgb(15 3 86 / 0.22)"],
|
|
80
|
-
xl: ["1px 1px 3px rgb(0 0 0 / 0.29)", "2px 4px 7px rgb(73 64 125 / 0.35)"]
|
|
81
|
-
};
|
|
82
|
-
const lineHeight = {
|
|
83
|
-
none: "1",
|
|
84
|
-
tight: "1.25",
|
|
85
|
-
snug: "1.375",
|
|
86
|
-
normal: "1.5",
|
|
87
|
-
relaxed: "1.625",
|
|
88
|
-
loose: "2"
|
|
89
|
-
};
|
|
90
|
-
const letterSpacing = {
|
|
91
|
-
tighter: "-0.05em",
|
|
92
|
-
tight: "-0.025em",
|
|
93
|
-
normal: "0em",
|
|
94
|
-
wide: "0.025em",
|
|
95
|
-
wider: "0.05em",
|
|
96
|
-
widest: "0.1em"
|
|
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
|
-
// int[0, 900] -> int
|
|
109
|
-
};
|
|
110
|
-
const wordSpacing = letterSpacing;
|
|
111
|
-
|
|
112
|
-
const breakpoints = {
|
|
113
|
-
"sm": "640px",
|
|
114
|
-
"md": "768px",
|
|
115
|
-
"lg": "1024px",
|
|
116
|
-
"xl": "1280px",
|
|
117
|
-
"2xl": "1536px"
|
|
118
|
-
};
|
|
119
|
-
const verticalBreakpoints = { ...breakpoints };
|
|
120
|
-
const lineWidth = {
|
|
121
|
-
DEFAULT: "1px",
|
|
122
|
-
none: "0"
|
|
123
|
-
};
|
|
124
|
-
const spacing = {
|
|
125
|
-
"DEFAULT": "1rem",
|
|
126
|
-
"none": "0",
|
|
127
|
-
"xs": "0.75rem",
|
|
128
|
-
"sm": "0.875rem",
|
|
129
|
-
"lg": "1.125rem",
|
|
130
|
-
"xl": "1.25rem",
|
|
131
|
-
"2xl": "1.5rem",
|
|
132
|
-
"3xl": "1.875rem",
|
|
133
|
-
"4xl": "2.25rem",
|
|
134
|
-
"5xl": "3rem",
|
|
135
|
-
"6xl": "3.75rem",
|
|
136
|
-
"7xl": "4.5rem",
|
|
137
|
-
"8xl": "6rem",
|
|
138
|
-
"9xl": "8rem"
|
|
139
|
-
};
|
|
140
|
-
const duration = {
|
|
141
|
-
DEFAULT: "150ms",
|
|
142
|
-
none: "0s",
|
|
143
|
-
75: "75ms",
|
|
144
|
-
100: "100ms",
|
|
145
|
-
150: "150ms",
|
|
146
|
-
200: "200ms",
|
|
147
|
-
300: "300ms",
|
|
148
|
-
500: "500ms",
|
|
149
|
-
700: "700ms",
|
|
150
|
-
1e3: "1000ms"
|
|
151
|
-
};
|
|
152
|
-
const borderRadius = {
|
|
153
|
-
"DEFAULT": "0.25rem",
|
|
154
|
-
"none": "0",
|
|
155
|
-
"sm": "0.125rem",
|
|
156
|
-
"md": "0.375rem",
|
|
157
|
-
"lg": "0.5rem",
|
|
158
|
-
"xl": "0.75rem",
|
|
159
|
-
"2xl": "1rem",
|
|
160
|
-
"3xl": "1.5rem",
|
|
161
|
-
"full": "9999px"
|
|
162
|
-
};
|
|
163
|
-
const boxShadow = {
|
|
164
|
-
"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)"],
|
|
165
|
-
"none": "0 0 rgb(0 0 0 / 0)",
|
|
166
|
-
"sm": "var(--un-shadow-inset) 0 1px 2px 0 rgb(0 0 0 / 0.05)",
|
|
167
|
-
"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)"],
|
|
168
|
-
"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)"],
|
|
169
|
-
"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)"],
|
|
170
|
-
"2xl": "var(--un-shadow-inset) 0 25px 50px -12px rgb(0 0 0 / 0.25)",
|
|
171
|
-
"inner": "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)"
|
|
172
|
-
};
|
|
173
|
-
const easing = {
|
|
174
|
-
"DEFAULT": "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
175
|
-
"linear": "linear",
|
|
176
|
-
"in": "cubic-bezier(0.4, 0, 1, 1)",
|
|
177
|
-
"out": "cubic-bezier(0, 0, 0.2, 1)",
|
|
178
|
-
"in-out": "cubic-bezier(0.4, 0, 0.2, 1)"
|
|
179
|
-
};
|
|
180
|
-
const ringWidth = {
|
|
181
|
-
DEFAULT: "1px",
|
|
182
|
-
none: "0"
|
|
183
|
-
};
|
|
184
|
-
const zIndex = {
|
|
185
|
-
auto: "auto"
|
|
186
|
-
};
|
|
187
|
-
const media = {
|
|
188
|
-
mouse: "(hover) and (pointer: fine)"
|
|
189
|
-
};
|
|
190
|
-
|
|
191
|
-
const blur = {
|
|
192
|
-
"DEFAULT": "8px",
|
|
193
|
-
"0": "0",
|
|
194
|
-
"sm": "4px",
|
|
195
|
-
"md": "12px",
|
|
196
|
-
"lg": "16px",
|
|
197
|
-
"xl": "24px",
|
|
198
|
-
"2xl": "40px",
|
|
199
|
-
"3xl": "64px"
|
|
200
|
-
};
|
|
201
|
-
const dropShadow = {
|
|
202
|
-
"DEFAULT": ["0 1px 2px rgb(0 0 0 / 0.1)", "0 1px 1px rgb(0 0 0 / 0.06)"],
|
|
203
|
-
"sm": "0 1px 1px rgb(0 0 0 / 0.05)",
|
|
204
|
-
"md": ["0 4px 3px rgb(0 0 0 / 0.07)", "0 2px 2px rgb(0 0 0 / 0.06)"],
|
|
205
|
-
"lg": ["0 10px 8px rgb(0 0 0 / 0.04)", "0 4px 3px rgb(0 0 0 / 0.1)"],
|
|
206
|
-
"xl": ["0 20px 13px rgb(0 0 0 / 0.03)", "0 8px 5px rgb(0 0 0 / 0.08)"],
|
|
207
|
-
"2xl": "0 25px 25px rgb(0 0 0 / 0.15)",
|
|
208
|
-
"none": "0 0 rgb(0 0 0 / 0)"
|
|
209
|
-
};
|
|
210
|
-
|
|
211
|
-
const baseSize = {
|
|
212
|
-
"xs": "20rem",
|
|
213
|
-
"sm": "24rem",
|
|
214
|
-
"md": "28rem",
|
|
215
|
-
"lg": "32rem",
|
|
216
|
-
"xl": "36rem",
|
|
217
|
-
"2xl": "42rem",
|
|
218
|
-
"3xl": "48rem",
|
|
219
|
-
"4xl": "56rem",
|
|
220
|
-
"5xl": "64rem",
|
|
221
|
-
"6xl": "72rem",
|
|
222
|
-
"7xl": "80rem",
|
|
223
|
-
"prose": "65ch"
|
|
224
|
-
};
|
|
225
|
-
const width = {
|
|
226
|
-
auto: "auto",
|
|
227
|
-
...baseSize,
|
|
228
|
-
screen: "100vw"
|
|
229
|
-
};
|
|
230
|
-
const maxWidth = {
|
|
231
|
-
none: "none",
|
|
232
|
-
...baseSize,
|
|
233
|
-
screen: "100vw"
|
|
234
|
-
};
|
|
235
|
-
const height = {
|
|
236
|
-
auto: "auto",
|
|
237
|
-
...baseSize,
|
|
238
|
-
screen: "100vh"
|
|
239
|
-
};
|
|
240
|
-
const maxHeight = {
|
|
241
|
-
none: "none",
|
|
242
|
-
...baseSize,
|
|
243
|
-
screen: "100vh"
|
|
244
|
-
};
|
|
245
|
-
const containers = Object.fromEntries(Object.entries(baseSize).map(([k, v]) => [k, `(min-width: ${v})`]));
|
|
246
|
-
|
|
247
|
-
const preflightBase = {
|
|
248
|
-
...transform.transformBase,
|
|
249
|
-
...transform.boxShadowsBase,
|
|
250
|
-
...transform.ringBase
|
|
251
|
-
};
|
|
252
|
-
|
|
253
|
-
const theme = {
|
|
254
|
-
width,
|
|
255
|
-
height,
|
|
256
|
-
maxWidth,
|
|
257
|
-
maxHeight,
|
|
258
|
-
minWidth: maxWidth,
|
|
259
|
-
minHeight: maxHeight,
|
|
260
|
-
inlineSize: width,
|
|
261
|
-
blockSize: height,
|
|
262
|
-
maxInlineSize: maxWidth,
|
|
263
|
-
maxBlockSize: maxHeight,
|
|
264
|
-
minInlineSize: maxWidth,
|
|
265
|
-
minBlockSize: maxHeight,
|
|
266
|
-
colors: colors.colors,
|
|
267
|
-
fontFamily,
|
|
268
|
-
fontSize,
|
|
269
|
-
fontWeight,
|
|
270
|
-
breakpoints,
|
|
271
|
-
verticalBreakpoints,
|
|
272
|
-
borderRadius,
|
|
273
|
-
lineHeight,
|
|
274
|
-
letterSpacing,
|
|
275
|
-
wordSpacing,
|
|
276
|
-
boxShadow,
|
|
277
|
-
textIndent,
|
|
278
|
-
textShadow,
|
|
279
|
-
textStrokeWidth,
|
|
280
|
-
blur,
|
|
281
|
-
dropShadow,
|
|
282
|
-
easing,
|
|
283
|
-
lineWidth,
|
|
284
|
-
spacing,
|
|
285
|
-
duration,
|
|
286
|
-
ringWidth,
|
|
287
|
-
preflightBase,
|
|
288
|
-
containers,
|
|
289
|
-
zIndex,
|
|
290
|
-
media
|
|
291
|
-
};
|
|
292
|
-
|
|
293
|
-
exports.baseSize = baseSize;
|
|
294
|
-
exports.blur = blur;
|
|
295
|
-
exports.borderRadius = borderRadius;
|
|
296
|
-
exports.boxShadow = boxShadow;
|
|
297
|
-
exports.breakpoints = breakpoints;
|
|
298
|
-
exports.containers = containers;
|
|
299
|
-
exports.dropShadow = dropShadow;
|
|
300
|
-
exports.duration = duration;
|
|
301
|
-
exports.easing = easing;
|
|
302
|
-
exports.fontFamily = fontFamily;
|
|
303
|
-
exports.fontSize = fontSize;
|
|
304
|
-
exports.fontWeight = fontWeight;
|
|
305
|
-
exports.height = height;
|
|
306
|
-
exports.letterSpacing = letterSpacing;
|
|
307
|
-
exports.lineHeight = lineHeight;
|
|
308
|
-
exports.lineWidth = lineWidth;
|
|
309
|
-
exports.maxHeight = maxHeight;
|
|
310
|
-
exports.maxWidth = maxWidth;
|
|
311
|
-
exports.media = media;
|
|
312
|
-
exports.preflightBase = preflightBase;
|
|
313
|
-
exports.ringWidth = ringWidth;
|
|
314
|
-
exports.spacing = spacing;
|
|
315
|
-
exports.textIndent = textIndent;
|
|
316
|
-
exports.textShadow = textShadow;
|
|
317
|
-
exports.textStrokeWidth = textStrokeWidth;
|
|
318
|
-
exports.theme = theme;
|
|
319
|
-
exports.verticalBreakpoints = verticalBreakpoints;
|
|
320
|
-
exports.width = width;
|
|
321
|
-
exports.wordSpacing = wordSpacing;
|
|
322
|
-
exports.zIndex = zIndex;
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { CSSObject, Arrayable } from '@unocss/core';
|
|
2
|
-
|
|
3
|
-
interface ThemeAnimation {
|
|
4
|
-
keyframes?: Record<string, string>;
|
|
5
|
-
durations?: Record<string, string>;
|
|
6
|
-
timingFns?: Record<string, string>;
|
|
7
|
-
properties?: Record<string, object>;
|
|
8
|
-
counts?: Record<string, string | number>;
|
|
9
|
-
}
|
|
10
|
-
interface Colors {
|
|
11
|
-
[key: string]: Colors & {
|
|
12
|
-
DEFAULT?: string;
|
|
13
|
-
} | string;
|
|
14
|
-
}
|
|
15
|
-
interface Theme {
|
|
16
|
-
width?: Record<string, string>;
|
|
17
|
-
height?: Record<string, string>;
|
|
18
|
-
maxWidth?: Record<string, string>;
|
|
19
|
-
maxHeight?: Record<string, string>;
|
|
20
|
-
minWidth?: Record<string, string>;
|
|
21
|
-
minHeight?: Record<string, string>;
|
|
22
|
-
inlineSize?: Record<string, string>;
|
|
23
|
-
blockSize?: Record<string, string>;
|
|
24
|
-
maxInlineSize?: Record<string, string>;
|
|
25
|
-
maxBlockSize?: Record<string, string>;
|
|
26
|
-
minInlineSize?: Record<string, string>;
|
|
27
|
-
minBlockSize?: Record<string, string>;
|
|
28
|
-
borderRadius?: Record<string, string>;
|
|
29
|
-
breakpoints?: Record<string, string>;
|
|
30
|
-
verticalBreakpoints?: Record<string, string>;
|
|
31
|
-
colors?: Colors;
|
|
32
|
-
borderColor?: Colors;
|
|
33
|
-
backgroundColor?: Colors;
|
|
34
|
-
textColor?: Colors;
|
|
35
|
-
shadowColor?: Colors;
|
|
36
|
-
accentColor?: Colors;
|
|
37
|
-
fontFamily?: Record<string, string>;
|
|
38
|
-
fontSize?: Record<string, string | [string, string | CSSObject] | [string, string, string]>;
|
|
39
|
-
fontWeight?: Record<string, string>;
|
|
40
|
-
lineHeight?: Record<string, string>;
|
|
41
|
-
letterSpacing?: Record<string, string>;
|
|
42
|
-
wordSpacing?: Record<string, string>;
|
|
43
|
-
boxShadow?: Record<string, string | string[]>;
|
|
44
|
-
textIndent?: Record<string, string>;
|
|
45
|
-
textShadow?: Record<string, string | string[]>;
|
|
46
|
-
textStrokeWidth?: Record<string, string>;
|
|
47
|
-
ringWidth?: Record<string, string>;
|
|
48
|
-
lineWidth?: Record<string, string>;
|
|
49
|
-
spacing?: Record<string, string>;
|
|
50
|
-
duration?: Record<string, string>;
|
|
51
|
-
aria?: Record<string, string>;
|
|
52
|
-
data?: Record<string, string>;
|
|
53
|
-
zIndex?: Record<string, string>;
|
|
54
|
-
blur?: Record<string, string>;
|
|
55
|
-
dropShadow?: Record<string, string | string[]>;
|
|
56
|
-
easing?: Record<string, string>;
|
|
57
|
-
media?: Record<string, string>;
|
|
58
|
-
supports?: Record<string, string>;
|
|
59
|
-
containers?: Record<string, string>;
|
|
60
|
-
animation?: ThemeAnimation;
|
|
61
|
-
gridAutoColumn?: Record<string, string>;
|
|
62
|
-
gridAutoRow?: Record<string, string>;
|
|
63
|
-
gridColumn?: Record<string, string>;
|
|
64
|
-
gridRow?: Record<string, string>;
|
|
65
|
-
gridTemplateColumn?: Record<string, string>;
|
|
66
|
-
gridTemplateRow?: Record<string, string>;
|
|
67
|
-
container?: {
|
|
68
|
-
center?: boolean;
|
|
69
|
-
padding?: string | Record<string, string>;
|
|
70
|
-
maxWidth?: Record<string, string>;
|
|
71
|
-
};
|
|
72
|
-
/** Used to generate CSS custom properties placeholder in preflight */
|
|
73
|
-
preflightRoot?: Arrayable<string>;
|
|
74
|
-
preflightBase?: Record<string, string | number>;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export type { Colors as C, Theme as T, ThemeAnimation as a };
|