@unocss/preset-mini 0.55.1 → 0.55.3

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 (56) hide show
  1. package/dist/colors.cjs +360 -6
  2. package/dist/{colors-dabdd21f.d.ts → colors.d.cts} +3 -2
  3. package/dist/colors.d.mts +354 -0
  4. package/dist/colors.d.ts +353 -2
  5. package/dist/colors.mjs +361 -1
  6. package/dist/index.cjs +12 -12
  7. package/dist/index.d.cts +69 -0
  8. package/dist/index.d.mts +69 -0
  9. package/dist/index.d.ts +6 -6
  10. package/dist/index.mjs +9 -10
  11. package/dist/rules.cjs +928 -48
  12. package/dist/rules.d.cts +133 -0
  13. package/dist/rules.d.mts +133 -0
  14. package/dist/rules.d.ts +1 -1
  15. package/dist/rules.mjs +891 -4
  16. package/dist/shared/preset-mini.0d957b3b.d.mts +721 -0
  17. package/dist/shared/preset-mini.0fac4963.mjs +320 -0
  18. package/dist/shared/preset-mini.2f8c3259.d.mts +67 -0
  19. package/dist/{types-d991ba46.d.ts → shared/preset-mini.32abac2c.d.cts} +1 -1
  20. package/dist/shared/preset-mini.32abac2c.d.mts +71 -0
  21. package/dist/shared/preset-mini.32abac2c.d.ts +71 -0
  22. package/dist/{default-1f25a0ae.d.ts → shared/preset-mini.3a79e471.d.ts} +1 -1
  23. package/dist/shared/preset-mini.5bfee53b.cjs +344 -0
  24. package/dist/shared/preset-mini.7b9de562.d.cts +67 -0
  25. package/dist/shared/{preset-mini.a21c5071.cjs → preset-mini.b4ad509c.cjs} +12 -8
  26. package/dist/shared/{preset-mini.6c1c8016.mjs → preset-mini.f1fe435e.mjs} +13 -9
  27. package/dist/shared/preset-mini.f67366b3.d.cts +721 -0
  28. package/dist/{utilities-d496540e.d.ts → shared/preset-mini.fa67009f.d.ts} +1 -1
  29. package/dist/theme.cjs +308 -34
  30. package/dist/theme.d.cts +264 -0
  31. package/dist/theme.d.mts +264 -0
  32. package/dist/theme.d.ts +5 -5
  33. package/dist/theme.mjs +284 -4
  34. package/dist/utils.cjs +81 -10
  35. package/dist/utils.d.cts +65 -0
  36. package/dist/utils.d.mts +65 -0
  37. package/dist/utils.d.ts +13 -31
  38. package/dist/utils.mjs +81 -3
  39. package/dist/variants.cjs +737 -33
  40. package/dist/variants.d.cts +46 -0
  41. package/dist/variants.d.mts +46 -0
  42. package/dist/variants.d.ts +4 -4
  43. package/dist/variants.mjs +714 -4
  44. package/package.json +3 -3
  45. package/dist/shared/preset-mini.0131b915.mjs +0 -704
  46. package/dist/shared/preset-mini.1c66bf79.mjs +0 -361
  47. package/dist/shared/preset-mini.74f9d55e.mjs +0 -80
  48. package/dist/shared/preset-mini.811eb23d.mjs +0 -681
  49. package/dist/shared/preset-mini.8dd73081.mjs +0 -452
  50. package/dist/shared/preset-mini.9d93761b.cjs +0 -729
  51. package/dist/shared/preset-mini.b8d9397e.cjs +0 -471
  52. package/dist/shared/preset-mini.ce5169f2.cjs +0 -730
  53. package/dist/shared/preset-mini.d778b487.cjs +0 -85
  54. package/dist/shared/preset-mini.de3bd9f7.mjs +0 -284
  55. package/dist/shared/preset-mini.e078d7da.cjs +0 -313
  56. package/dist/shared/preset-mini.f3fc54d2.cjs +0 -363
@@ -1,361 +0,0 @@
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
- });
360
-
361
- export { colors as c };
@@ -1,80 +0,0 @@
1
- import { escapeRegExp } from '@unocss/core';
2
- import { q as getBracket } from './preset-mini.6c1c8016.mjs';
3
-
4
- function variantMatcher(name, handler) {
5
- let re;
6
- return {
7
- name,
8
- match(input, ctx) {
9
- if (!re)
10
- re = new RegExp(`^${escapeRegExp(name)}(?:${ctx.generator.config.separators.join("|")})`);
11
- const match = input.match(re);
12
- if (match) {
13
- return {
14
- matcher: input.slice(match[0].length),
15
- handle: (input2, next) => next({
16
- ...input2,
17
- ...handler(input2)
18
- })
19
- };
20
- }
21
- },
22
- autocomplete: `${name}:`
23
- };
24
- }
25
- function variantParentMatcher(name, parent) {
26
- let re;
27
- return {
28
- name,
29
- match(input, ctx) {
30
- if (!re)
31
- re = new RegExp(`^${escapeRegExp(name)}(?:${ctx.generator.config.separators.join("|")})`);
32
- const match = input.match(re);
33
- if (match) {
34
- return {
35
- matcher: input.slice(match[0].length),
36
- handle: (input2, next) => next({
37
- ...input2,
38
- parent: `${input2.parent ? `${input2.parent} $$ ` : ""}${parent}`
39
- })
40
- };
41
- }
42
- },
43
- autocomplete: `${name}:`
44
- };
45
- }
46
- function variantGetBracket(prefix, matcher, separators) {
47
- if (matcher.startsWith(`${prefix}[`)) {
48
- const [match, rest] = getBracket(matcher.slice(prefix.length), "[", "]") ?? [];
49
- if (match && rest) {
50
- for (const separator of separators) {
51
- if (rest.startsWith(separator))
52
- return [match, rest.slice(separator.length), separator];
53
- }
54
- return [match, rest, ""];
55
- }
56
- }
57
- }
58
- function variantGetParameter(prefix, matcher, separators) {
59
- if (matcher.startsWith(prefix)) {
60
- const body = variantGetBracket(prefix, matcher, separators);
61
- if (body) {
62
- const [label = "", rest = body[1]] = variantGetParameter("/", body[1], separators) ?? [];
63
- return [body[0], rest, label];
64
- }
65
- for (const separator of separators.filter((x) => x !== "/")) {
66
- const pos = matcher.indexOf(separator, prefix.length);
67
- if (pos !== -1) {
68
- const labelPos = matcher.indexOf("/", prefix.length);
69
- const unlabelled = labelPos === -1 || pos <= labelPos;
70
- return [
71
- matcher.slice(prefix.length, unlabelled ? pos : labelPos),
72
- matcher.slice(pos + separator.length),
73
- unlabelled ? "" : matcher.slice(labelPos + 1, pos)
74
- ];
75
- }
76
- }
77
- }
78
- }
79
-
80
- export { variantGetBracket as a, variantMatcher as b, variantParentMatcher as c, variantGetParameter as v };