@unocss/preset-mini 66.5.10 → 66.5.12

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 (44) hide show
  1. package/dist/chunk-gol_9zmq.mjs +36 -0
  2. package/dist/colors-C9l2trjD.d.mts +431 -0
  3. package/dist/colors-Cxq9P2g9.mjs +362 -0
  4. package/dist/colors.d.mts +2 -354
  5. package/dist/colors.mjs +2 -360
  6. package/dist/index-CnsmLem5.d.mts +71 -0
  7. package/dist/index.d.mts +5 -76
  8. package/dist/index.mjs +67 -70
  9. package/dist/rules-CuP-xMI2.mjs +1683 -0
  10. package/dist/rules.d.mts +72 -48
  11. package/dist/rules.mjs +4 -5
  12. package/dist/theme-5nLH7UVx.d.mts +1085 -0
  13. package/dist/theme-DeYMqZAV.mjs +347 -0
  14. package/dist/theme.d.mts +3 -338
  15. package/dist/theme.mjs +5 -6
  16. package/dist/utils-CNv_IKMQ.d.mts +122 -0
  17. package/dist/utils-DLpYZ57Q.mjs +638 -0
  18. package/dist/utils.d.mts +5 -77
  19. package/dist/utils.mjs +5 -3
  20. package/dist/variants.d.mts +38 -24
  21. package/dist/variants.mjs +661 -4
  22. package/package.json +7 -8
  23. package/colors.d.ts +0 -1
  24. package/dist/colors.d.ts +0 -354
  25. package/dist/index.d.ts +0 -76
  26. package/dist/rules.d.ts +0 -130
  27. package/dist/shared/preset-mini.BSnAbT9I.d.mts +0 -748
  28. package/dist/shared/preset-mini.B_2UJsV2.mjs +0 -693
  29. package/dist/shared/preset-mini.BjJC-NnU.d.mts +0 -79
  30. package/dist/shared/preset-mini.BjJC-NnU.d.ts +0 -79
  31. package/dist/shared/preset-mini.CRliz1QB.d.ts +0 -76
  32. package/dist/shared/preset-mini.CVEK1uAa.mjs +0 -355
  33. package/dist/shared/preset-mini.CoOfBKs_.d.ts +0 -748
  34. package/dist/shared/preset-mini.DBTjVFxS.mjs +0 -580
  35. package/dist/shared/preset-mini.QLusboLD.mjs +0 -1064
  36. package/dist/shared/preset-mini.kmtdc_h1.mjs +0 -324
  37. package/dist/shared/preset-mini.oF7XTPi1.d.mts +0 -76
  38. package/dist/theme.d.ts +0 -338
  39. package/dist/utils.d.ts +0 -77
  40. package/dist/variants.d.ts +0 -52
  41. package/rules.d.ts +0 -1
  42. package/theme.d.ts +0 -1
  43. package/utils.d.ts +0 -1
  44. package/variants.d.ts +0 -1
package/dist/colors.mjs CHANGED
@@ -1,361 +1,3 @@
1
- const colors = {
2
- inherit: "inherit",
3
- current: "currentColor",
4
- transparent: "transparent",
5
- black: "#000",
6
- white: "#fff",
7
- rose: {
8
- 50: "#fff1f2",
9
- 100: "#ffe4e6",
10
- 200: "#fecdd3",
11
- 300: "#fda4af",
12
- 400: "#fb7185",
13
- 500: "#f43f5e",
14
- 600: "#e11d48",
15
- 700: "#be123c",
16
- 800: "#9f1239",
17
- 900: "#881337",
18
- 950: "#4c0519"
19
- },
20
- pink: {
21
- 50: "#fdf2f8",
22
- 100: "#fce7f3",
23
- 200: "#fbcfe8",
24
- 300: "#f9a8d4",
25
- 400: "#f472b6",
26
- 500: "#ec4899",
27
- 600: "#db2777",
28
- 700: "#be185d",
29
- 800: "#9d174d",
30
- 900: "#831843",
31
- 950: "#500724"
32
- },
33
- fuchsia: {
34
- 50: "#fdf4ff",
35
- 100: "#fae8ff",
36
- 200: "#f5d0fe",
37
- 300: "#f0abfc",
38
- 400: "#e879f9",
39
- 500: "#d946ef",
40
- 600: "#c026d3",
41
- 700: "#a21caf",
42
- 800: "#86198f",
43
- 900: "#701a75",
44
- 950: "#4a044e"
45
- },
46
- purple: {
47
- 50: "#faf5ff",
48
- 100: "#f3e8ff",
49
- 200: "#e9d5ff",
50
- 300: "#d8b4fe",
51
- 400: "#c084fc",
52
- 500: "#a855f7",
53
- 600: "#9333ea",
54
- 700: "#7e22ce",
55
- 800: "#6b21a8",
56
- 900: "#581c87",
57
- 950: "#3b0764"
58
- },
59
- violet: {
60
- 50: "#f5f3ff",
61
- 100: "#ede9fe",
62
- 200: "#ddd6fe",
63
- 300: "#c4b5fd",
64
- 400: "#a78bfa",
65
- 500: "#8b5cf6",
66
- 600: "#7c3aed",
67
- 700: "#6d28d9",
68
- 800: "#5b21b6",
69
- 900: "#4c1d95",
70
- 950: "#2e1065"
71
- },
72
- indigo: {
73
- 50: "#eef2ff",
74
- 100: "#e0e7ff",
75
- 200: "#c7d2fe",
76
- 300: "#a5b4fc",
77
- 400: "#818cf8",
78
- 500: "#6366f1",
79
- 600: "#4f46e5",
80
- 700: "#4338ca",
81
- 800: "#3730a3",
82
- 900: "#312e81",
83
- 950: "#1e1b4b"
84
- },
85
- blue: {
86
- 50: "#eff6ff",
87
- 100: "#dbeafe",
88
- 200: "#bfdbfe",
89
- 300: "#93c5fd",
90
- 400: "#60a5fa",
91
- 500: "#3b82f6",
92
- 600: "#2563eb",
93
- 700: "#1d4ed8",
94
- 800: "#1e40af",
95
- 900: "#1e3a8a",
96
- 950: "#172554"
97
- },
98
- sky: {
99
- 50: "#f0f9ff",
100
- 100: "#e0f2fe",
101
- 200: "#bae6fd",
102
- 300: "#7dd3fc",
103
- 400: "#38bdf8",
104
- 500: "#0ea5e9",
105
- 600: "#0284c7",
106
- 700: "#0369a1",
107
- 800: "#075985",
108
- 900: "#0c4a6e",
109
- 950: "#082f49"
110
- },
111
- cyan: {
112
- 50: "#ecfeff",
113
- 100: "#cffafe",
114
- 200: "#a5f3fc",
115
- 300: "#67e8f9",
116
- 400: "#22d3ee",
117
- 500: "#06b6d4",
118
- 600: "#0891b2",
119
- 700: "#0e7490",
120
- 800: "#155e75",
121
- 900: "#164e63",
122
- 950: "#083344"
123
- },
124
- teal: {
125
- 50: "#f0fdfa",
126
- 100: "#ccfbf1",
127
- 200: "#99f6e4",
128
- 300: "#5eead4",
129
- 400: "#2dd4bf",
130
- 500: "#14b8a6",
131
- 600: "#0d9488",
132
- 700: "#0f766e",
133
- 800: "#115e59",
134
- 900: "#134e4a",
135
- 950: "#042f2e"
136
- },
137
- emerald: {
138
- 50: "#ecfdf5",
139
- 100: "#d1fae5",
140
- 200: "#a7f3d0",
141
- 300: "#6ee7b7",
142
- 400: "#34d399",
143
- 500: "#10b981",
144
- 600: "#059669",
145
- 700: "#047857",
146
- 800: "#065f46",
147
- 900: "#064e3b",
148
- 950: "#022c22"
149
- },
150
- green: {
151
- 50: "#f0fdf4",
152
- 100: "#dcfce7",
153
- 200: "#bbf7d0",
154
- 300: "#86efac",
155
- 400: "#4ade80",
156
- 500: "#22c55e",
157
- 600: "#16a34a",
158
- 700: "#15803d",
159
- 800: "#166534",
160
- 900: "#14532d",
161
- 950: "#052e16"
162
- },
163
- lime: {
164
- 50: "#f7fee7",
165
- 100: "#ecfccb",
166
- 200: "#d9f99d",
167
- 300: "#bef264",
168
- 400: "#a3e635",
169
- 500: "#84cc16",
170
- 600: "#65a30d",
171
- 700: "#4d7c0f",
172
- 800: "#3f6212",
173
- 900: "#365314",
174
- 950: "#1a2e05"
175
- },
176
- yellow: {
177
- 50: "#fefce8",
178
- 100: "#fef9c3",
179
- 200: "#fef08a",
180
- 300: "#fde047",
181
- 400: "#facc15",
182
- 500: "#eab308",
183
- 600: "#ca8a04",
184
- 700: "#a16207",
185
- 800: "#854d0e",
186
- 900: "#713f12",
187
- 950: "#422006"
188
- },
189
- amber: {
190
- 50: "#fffbeb",
191
- 100: "#fef3c7",
192
- 200: "#fde68a",
193
- 300: "#fcd34d",
194
- 400: "#fbbf24",
195
- 500: "#f59e0b",
196
- 600: "#d97706",
197
- 700: "#b45309",
198
- 800: "#92400e",
199
- 900: "#78350f",
200
- 950: "#451a03"
201
- },
202
- orange: {
203
- 50: "#fff7ed",
204
- 100: "#ffedd5",
205
- 200: "#fed7aa",
206
- 300: "#fdba74",
207
- 400: "#fb923c",
208
- 500: "#f97316",
209
- 600: "#ea580c",
210
- 700: "#c2410c",
211
- 800: "#9a3412",
212
- 900: "#7c2d12",
213
- 950: "#431407"
214
- },
215
- red: {
216
- 50: "#fef2f2",
217
- 100: "#fee2e2",
218
- 200: "#fecaca",
219
- 300: "#fca5a5",
220
- 400: "#f87171",
221
- 500: "#ef4444",
222
- 600: "#dc2626",
223
- 700: "#b91c1c",
224
- 800: "#991b1b",
225
- 900: "#7f1d1d",
226
- 950: "#450a0a"
227
- },
228
- gray: {
229
- 50: "#f9fafb",
230
- 100: "#f3f4f6",
231
- 200: "#e5e7eb",
232
- 300: "#d1d5db",
233
- 400: "#9ca3af",
234
- 500: "#6b7280",
235
- 600: "#4b5563",
236
- 700: "#374151",
237
- 800: "#1f2937",
238
- 900: "#111827",
239
- 950: "#030712"
240
- },
241
- slate: {
242
- 50: "#f8fafc",
243
- 100: "#f1f5f9",
244
- 200: "#e2e8f0",
245
- 300: "#cbd5e1",
246
- 400: "#94a3b8",
247
- 500: "#64748b",
248
- 600: "#475569",
249
- 700: "#334155",
250
- 800: "#1e293b",
251
- 900: "#0f172a",
252
- 950: "#020617"
253
- },
254
- zinc: {
255
- 50: "#fafafa",
256
- 100: "#f4f4f5",
257
- 200: "#e4e4e7",
258
- 300: "#d4d4d8",
259
- 400: "#a1a1aa",
260
- 500: "#71717a",
261
- 600: "#52525b",
262
- 700: "#3f3f46",
263
- 800: "#27272a",
264
- 900: "#18181b",
265
- 950: "#09090b"
266
- },
267
- neutral: {
268
- 50: "#fafafa",
269
- 100: "#f5f5f5",
270
- 200: "#e5e5e5",
271
- 300: "#d4d4d4",
272
- 400: "#a3a3a3",
273
- 500: "#737373",
274
- 600: "#525252",
275
- 700: "#404040",
276
- 800: "#262626",
277
- 900: "#171717",
278
- 950: "#0a0a0a"
279
- },
280
- stone: {
281
- 50: "#fafaf9",
282
- 100: "#f5f5f4",
283
- 200: "#e7e5e4",
284
- 300: "#d6d3d1",
285
- 400: "#a8a29e",
286
- 500: "#78716c",
287
- 600: "#57534e",
288
- 700: "#44403c",
289
- 800: "#292524",
290
- 900: "#1c1917",
291
- 950: "#0c0a09"
292
- },
293
- light: {
294
- 50: "#fdfdfd",
295
- 100: "#fcfcfc",
296
- 200: "#fafafa",
297
- 300: "#f8f9fa",
298
- 400: "#f6f6f6",
299
- 500: "#f2f2f2",
300
- 600: "#f1f3f5",
301
- 700: "#e9ecef",
302
- 800: "#dee2e6",
303
- 900: "#dde1e3",
304
- 950: "#d8dcdf"
305
- },
306
- dark: {
307
- 50: "#4a4a4a",
308
- 100: "#3c3c3c",
309
- 200: "#323232",
310
- 300: "#2d2d2d",
311
- 400: "#222222",
312
- 500: "#1f1f1f",
313
- 600: "#1c1c1e",
314
- 700: "#1b1b1b",
315
- 800: "#181818",
316
- 900: "#0f0f0f",
317
- 950: "#080808"
318
- },
319
- get lightblue() {
320
- return this.sky;
321
- },
322
- get lightBlue() {
323
- return this.sky;
324
- },
325
- get warmgray() {
326
- return this.stone;
327
- },
328
- get warmGray() {
329
- return this.stone;
330
- },
331
- get truegray() {
332
- return this.neutral;
333
- },
334
- get trueGray() {
335
- return this.neutral;
336
- },
337
- get coolgray() {
338
- return this.gray;
339
- },
340
- get coolGray() {
341
- return this.gray;
342
- },
343
- get bluegray() {
344
- return this.slate;
345
- },
346
- get blueGray() {
347
- return this.slate;
348
- }
349
- };
350
- Object.values(colors).forEach((color) => {
351
- if (typeof color !== "string" && color !== void 0) {
352
- color.DEFAULT = color.DEFAULT || color[400];
353
- Object.keys(color).forEach((key) => {
354
- const short = +key / 100;
355
- if (short === Math.round(short))
356
- color[short] = color[key];
357
- });
358
- }
359
- });
1
+ import { t as colors } from "./colors-Cxq9P2g9.mjs";
360
2
 
361
- export { colors };
3
+ export { colors };
@@ -0,0 +1,71 @@
1
+ import { r as Theme } from "./colors-C9l2trjD.mjs";
2
+ import * as _unocss_core0 from "@unocss/core";
3
+ import { Postprocessor, Preflight, PresetOptions } from "@unocss/core";
4
+
5
+ //#region src/preflights.d.ts
6
+ declare function preflights(options: PresetMiniOptions): Preflight<Theme>[] | undefined;
7
+ //#endregion
8
+ //#region src/index.d.ts
9
+ interface DarkModeSelectors {
10
+ /**
11
+ * Selectors for light variant.
12
+ *
13
+ * @default '.light'
14
+ */
15
+ light?: string | string[];
16
+ /**
17
+ * Selectors for dark variant.
18
+ *
19
+ * @default '.dark'
20
+ */
21
+ dark?: string | string[];
22
+ }
23
+ interface PresetMiniOptions extends PresetOptions {
24
+ /**
25
+ * Dark mode options
26
+ *
27
+ * @default 'class'
28
+ */
29
+ dark?: 'class' | 'media' | DarkModeSelectors;
30
+ /**
31
+ * Generate tagged pseudo selector as `[group=""]` instead of `.group`
32
+ *
33
+ * @default false
34
+ */
35
+ attributifyPseudo?: boolean;
36
+ /**
37
+ * Prefix for CSS variables.
38
+ *
39
+ * @default 'un-'
40
+ */
41
+ variablePrefix?: string;
42
+ /**
43
+ * Utils prefix. When using tagged pseudo selector, only the first truthy prefix will be used.
44
+ *
45
+ * @default undefined
46
+ */
47
+ prefix?: string | string[];
48
+ /**
49
+ * Generate preflight
50
+ *
51
+ * @default true
52
+ */
53
+ preflight?: boolean | 'on-demand';
54
+ /**
55
+ * Enable arbitrary variants, for example `<div class="[&>*]:m-1 [&[open]]:p-2"></div>`.
56
+ *
57
+ * Disable this might slightly improve the performance.
58
+ *
59
+ * @default true
60
+ */
61
+ arbitraryVariants?: boolean;
62
+ }
63
+ /**
64
+ * The basic preset for UnoCSS, with only the most essential utilities.
65
+ *
66
+ * @see https://unocss.dev/presets/mini
67
+ */
68
+ declare const presetMini: _unocss_core0.PresetFactory<Theme, PresetMiniOptions>;
69
+ declare function VarPrefixPostprocessor(prefix: string): Postprocessor | undefined;
70
+ //#endregion
71
+ export { preflights as a, presetMini as i, PresetMiniOptions as n, VarPrefixPostprocessor as r, DarkModeSelectors as t };
package/dist/index.d.mts CHANGED
@@ -1,76 +1,5 @@
1
- import * as _unocss_core from '@unocss/core';
2
- import { Preflight, PresetOptions, Postprocessor } from '@unocss/core';
3
- import { T as Theme } from './shared/preset-mini.BjJC-NnU.mjs';
4
- export { a as ThemeAnimation } from './shared/preset-mini.BjJC-NnU.mjs';
5
- export { colors } from './colors.mjs';
6
- export { t as theme } from './shared/preset-mini.BSnAbT9I.mjs';
7
- export { p as parseColor } from './shared/preset-mini.oF7XTPi1.mjs';
8
- import '@unocss/rule-utils';
9
-
10
- declare function preflights(options: PresetMiniOptions): Preflight<Theme>[] | undefined;
11
-
12
- interface DarkModeSelectors {
13
- /**
14
- * Selectors for light variant.
15
- *
16
- * @default '.light'
17
- */
18
- light?: string | string[];
19
- /**
20
- * Selectors for dark variant.
21
- *
22
- * @default '.dark'
23
- */
24
- dark?: string | string[];
25
- }
26
- interface PresetMiniOptions extends PresetOptions {
27
- /**
28
- * Dark mode options
29
- *
30
- * @default 'class'
31
- */
32
- dark?: 'class' | 'media' | DarkModeSelectors;
33
- /**
34
- * Generate tagged pseudo selector as `[group=""]` instead of `.group`
35
- *
36
- * @default false
37
- */
38
- attributifyPseudo?: boolean;
39
- /**
40
- * Prefix for CSS variables.
41
- *
42
- * @default 'un-'
43
- */
44
- variablePrefix?: string;
45
- /**
46
- * Utils prefix. When using tagged pseudo selector, only the first truthy prefix will be used.
47
- *
48
- * @default undefined
49
- */
50
- prefix?: string | string[];
51
- /**
52
- * Generate preflight
53
- *
54
- * @default true
55
- */
56
- preflight?: boolean | 'on-demand';
57
- /**
58
- * Enable arbitrary variants, for example `<div class="[&>*]:m-1 [&[open]]:p-2"></div>`.
59
- *
60
- * Disable this might slightly improve the performance.
61
- *
62
- * @default true
63
- */
64
- arbitraryVariants?: boolean;
65
- }
66
- /**
67
- * The basic preset for UnoCSS, with only the most essential utilities.
68
- *
69
- * @see https://unocss.dev/presets/mini
70
- */
71
- declare const presetMini: _unocss_core.PresetFactory<Theme, PresetMiniOptions>;
72
-
73
- declare function VarPrefixPostprocessor(prefix: string): Postprocessor | undefined;
74
-
75
- export { Theme, VarPrefixPostprocessor, presetMini as default, preflights, presetMini };
76
- export type { DarkModeSelectors, PresetMiniOptions };
1
+ import { i as ThemeAnimation, r as Theme, t as colors } from "./colors-C9l2trjD.mjs";
2
+ import { N as theme } from "./theme-5nLH7UVx.mjs";
3
+ import { a as preflights, i as presetMini, n as PresetMiniOptions, r as VarPrefixPostprocessor, t as DarkModeSelectors } from "./index-CnsmLem5.mjs";
4
+ import { l as parseColor } from "./utils-CNv_IKMQ.mjs";
5
+ export { DarkModeSelectors, PresetMiniOptions, Theme, ThemeAnimation, VarPrefixPostprocessor, colors, presetMini as default, presetMini, parseColor, preflights, theme };
package/dist/index.mjs CHANGED
@@ -1,82 +1,79 @@
1
- import { entriesToCss, toArray, definePreset } from '@unocss/core';
2
- import { extractorArbitraryVariants } from '@unocss/extractor-arbitrary-variants';
3
- import { g as globalKeywords } from './shared/preset-mini.DBTjVFxS.mjs';
4
- export { k as parseColor } from './shared/preset-mini.DBTjVFxS.mjs';
5
- import { i as variants } from './shared/preset-mini.B_2UJsV2.mjs';
6
- import { r as rules } from './shared/preset-mini.QLusboLD.mjs';
7
- import { t as theme } from './shared/preset-mini.kmtdc_h1.mjs';
8
- export { colors } from './colors.mjs';
9
- import '@unocss/rule-utils';
10
- import './shared/preset-mini.CVEK1uAa.mjs';
1
+ import { C as globalKeywords, d as parseColor } from "./utils-DLpYZ57Q.mjs";
2
+ import { t as rules } from "./rules-CuP-xMI2.mjs";
3
+ import { t as colors } from "./colors-Cxq9P2g9.mjs";
4
+ import { t as theme } from "./theme-DeYMqZAV.mjs";
5
+ import { variants } from "./variants.mjs";
6
+ import { definePreset, entriesToCss, toArray } from "@unocss/core";
7
+ import { extractorArbitraryVariants } from "@unocss/extractor-arbitrary-variants";
11
8
 
9
+ //#region src/preflights.ts
12
10
  function preflights(options) {
13
- if (options.preflight) {
14
- return [
15
- {
16
- layer: "preflights",
17
- getCSS({ theme, generator }) {
18
- if (theme.preflightBase) {
19
- let entries = Object.entries(theme.preflightBase);
20
- if (options.preflight === "on-demand") {
21
- const keys = new Set(Array.from(generator.activatedRules).map((r) => r[2]?.custom?.preflightKeys).filter(Boolean).flat());
22
- entries = entries.filter(([k]) => keys.has(k));
23
- }
24
- if (entries.length > 0) {
25
- let css = entriesToCss(entries);
26
- if (options.variablePrefix !== "un-") {
27
- css = css.replace(/--un-/g, `--${options.variablePrefix}`);
28
- }
29
- const roots = toArray(theme.preflightRoot ?? ["*,::before,::after", "::backdrop"]);
30
- return roots.map((root) => `${root}{${css}}`).join("");
31
- }
32
- }
33
- }
34
- }
35
- ];
36
- }
11
+ if (options.preflight) return [{
12
+ layer: "preflights",
13
+ getCSS({ theme: theme$1, generator }) {
14
+ if (theme$1.preflightBase) {
15
+ let entries = Object.entries(theme$1.preflightBase);
16
+ if (options.preflight === "on-demand") {
17
+ const keys = new Set(Array.from(generator.activatedRules).map((r) => r[2]?.custom?.preflightKeys).filter(Boolean).flat());
18
+ entries = entries.filter(([k]) => keys.has(k));
19
+ }
20
+ if (entries.length > 0) {
21
+ let css = entriesToCss(entries);
22
+ if (options.variablePrefix !== "un-") css = css.replace(/--un-/g, `--${options.variablePrefix}`);
23
+ return toArray(theme$1.preflightRoot ?? ["*,::before,::after", "::backdrop"]).map((root) => `${root}{${css}}`).join("");
24
+ }
25
+ }
26
+ }
27
+ }];
37
28
  }
38
29
 
30
+ //#endregion
31
+ //#region src/shorthands.ts
39
32
  const shorthands = {
40
- position: [
41
- "relative",
42
- "absolute",
43
- "fixed",
44
- "sticky",
45
- "static"
46
- ],
47
- globalKeyword: globalKeywords
33
+ position: [
34
+ "relative",
35
+ "absolute",
36
+ "fixed",
37
+ "sticky",
38
+ "static"
39
+ ],
40
+ globalKeyword: globalKeywords
48
41
  };
49
42
 
43
+ //#endregion
44
+ //#region src/index.ts
45
+ /**
46
+ * The basic preset for UnoCSS, with only the most essential utilities.
47
+ *
48
+ * @see https://unocss.dev/presets/mini
49
+ */
50
50
  const presetMini = definePreset((options = {}) => {
51
- options.dark = options.dark ?? "class";
52
- options.attributifyPseudo = options.attributifyPseudo ?? false;
53
- options.preflight = options.preflight ?? true;
54
- options.variablePrefix = options.variablePrefix ?? "un-";
55
- return {
56
- name: "@unocss/preset-mini",
57
- theme,
58
- rules,
59
- variants: variants(options),
60
- options,
61
- prefix: options.prefix,
62
- postprocess: VarPrefixPostprocessor(options.variablePrefix),
63
- preflights: preflights(options),
64
- extractorDefault: options.arbitraryVariants === false ? void 0 : extractorArbitraryVariants(),
65
- autocomplete: {
66
- shorthands
67
- }
68
- };
51
+ options.dark = options.dark ?? "class";
52
+ options.attributifyPseudo = options.attributifyPseudo ?? false;
53
+ options.preflight = options.preflight ?? true;
54
+ options.variablePrefix = options.variablePrefix ?? "un-";
55
+ return {
56
+ name: "@unocss/preset-mini",
57
+ theme,
58
+ rules,
59
+ variants: variants(options),
60
+ options,
61
+ prefix: options.prefix,
62
+ postprocess: VarPrefixPostprocessor(options.variablePrefix),
63
+ preflights: preflights(options),
64
+ extractorDefault: options.arbitraryVariants === false ? void 0 : extractorArbitraryVariants(),
65
+ autocomplete: { shorthands }
66
+ };
69
67
  });
68
+ var src_default = presetMini;
70
69
  function VarPrefixPostprocessor(prefix) {
71
- if (prefix !== "un-") {
72
- return (obj) => {
73
- obj.entries.forEach((i) => {
74
- i[0] = i[0].replace(/^--un-/, `--${prefix}`);
75
- if (typeof i[1] === "string")
76
- i[1] = i[1].replace(/var\(--un-/g, `var(--${prefix}`);
77
- });
78
- };
79
- }
70
+ if (prefix !== "un-") return (obj) => {
71
+ obj.entries.forEach((i) => {
72
+ i[0] = i[0].replace(/^--un-/, `--${prefix}`);
73
+ if (typeof i[1] === "string") i[1] = i[1].replace(/var\(--un-/g, `var(--${prefix}`);
74
+ });
75
+ };
80
76
  }
81
77
 
82
- export { VarPrefixPostprocessor, presetMini as default, preflights, presetMini, theme };
78
+ //#endregion
79
+ export { VarPrefixPostprocessor, colors, src_default as default, parseColor, preflights, presetMini, theme };