@unocss/preset-uno 0.1.0-beta.2 → 0.1.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.
@@ -0,0 +1,408 @@
1
+ // src/theme/colors.ts
2
+ var colors = {
3
+ black: "#000",
4
+ white: "#fff",
5
+ rose: {
6
+ 50: "#fff1f2",
7
+ 100: "#ffe4e6",
8
+ 200: "#fecdd3",
9
+ 300: "#fda4af",
10
+ 400: "#fb7185",
11
+ 500: "#f43f5e",
12
+ 600: "#e11d48",
13
+ 700: "#be123c",
14
+ 800: "#9f1239",
15
+ 900: "#881337"
16
+ },
17
+ pink: {
18
+ 50: "#fdf2f8",
19
+ 100: "#fce7f3",
20
+ 200: "#fbcfe8",
21
+ 300: "#f9a8d4",
22
+ 400: "#f472b6",
23
+ 500: "#ec4899",
24
+ 600: "#db2777",
25
+ 700: "#be185d",
26
+ 800: "#9d174d",
27
+ 900: "#831843"
28
+ },
29
+ fuchsia: {
30
+ 50: "#fdf4ff",
31
+ 100: "#fae8ff",
32
+ 200: "#f5d0fe",
33
+ 300: "#f0abfc",
34
+ 400: "#e879f9",
35
+ 500: "#d946ef",
36
+ 600: "#c026d3",
37
+ 700: "#a21caf",
38
+ 800: "#86198f",
39
+ 900: "#701a75"
40
+ },
41
+ purple: {
42
+ 50: "#faf5ff",
43
+ 100: "#f3e8ff",
44
+ 200: "#e9d5ff",
45
+ 300: "#d8b4fe",
46
+ 400: "#c084fc",
47
+ 500: "#a855f7",
48
+ 600: "#9333ea",
49
+ 700: "#7e22ce",
50
+ 800: "#6b21a8",
51
+ 900: "#581c87"
52
+ },
53
+ violet: {
54
+ 50: "#f5f3ff",
55
+ 100: "#ede9fe",
56
+ 200: "#ddd6fe",
57
+ 300: "#c4b5fd",
58
+ 400: "#a78bfa",
59
+ 500: "#8b5cf6",
60
+ 600: "#7c3aed",
61
+ 700: "#6d28d9",
62
+ 800: "#5b21b6",
63
+ 900: "#4c1d95"
64
+ },
65
+ indigo: {
66
+ 50: "#eef2ff",
67
+ 100: "#e0e7ff",
68
+ 200: "#c7d2fe",
69
+ 300: "#a5b4fc",
70
+ 400: "#818cf8",
71
+ 500: "#6366f1",
72
+ 600: "#4f46e5",
73
+ 700: "#4338ca",
74
+ 800: "#3730a3",
75
+ 900: "#312e81"
76
+ },
77
+ blue: {
78
+ 50: "#eff6ff",
79
+ 100: "#dbeafe",
80
+ 200: "#bfdbfe",
81
+ 300: "#93c5fd",
82
+ 400: "#60a5fa",
83
+ 500: "#3b82f6",
84
+ 600: "#2563eb",
85
+ 700: "#1d4ed8",
86
+ 800: "#1e40af",
87
+ 900: "#1e3a8a"
88
+ },
89
+ sky: {
90
+ 50: "#f0f9ff",
91
+ 100: "#e0f2fe",
92
+ 200: "#bae6fd",
93
+ 300: "#7dd3fc",
94
+ 400: "#38bdf8",
95
+ 500: "#0ea5e9",
96
+ 600: "#0284c7",
97
+ 700: "#0369a1",
98
+ 800: "#075985",
99
+ 900: "#0c4a6e"
100
+ },
101
+ cyan: {
102
+ 50: "#ecfeff",
103
+ 100: "#cffafe",
104
+ 200: "#a5f3fc",
105
+ 300: "#67e8f9",
106
+ 400: "#22d3ee",
107
+ 500: "#06b6d4",
108
+ 600: "#0891b2",
109
+ 700: "#0e7490",
110
+ 800: "#155e75",
111
+ 900: "#164e63"
112
+ },
113
+ teal: {
114
+ 50: "#f0fdfa",
115
+ 100: "#ccfbf1",
116
+ 200: "#99f6e4",
117
+ 300: "#5eead4",
118
+ 400: "#2dd4bf",
119
+ 500: "#14b8a6",
120
+ 600: "#0d9488",
121
+ 700: "#0f766e",
122
+ 800: "#115e59",
123
+ 900: "#134e4a"
124
+ },
125
+ emerald: {
126
+ 50: "#ecfdf5",
127
+ 100: "#d1fae5",
128
+ 200: "#a7f3d0",
129
+ 300: "#6ee7b7",
130
+ 400: "#34d399",
131
+ 500: "#10b981",
132
+ 600: "#059669",
133
+ 700: "#047857",
134
+ 800: "#065f46",
135
+ 900: "#064e3b"
136
+ },
137
+ green: {
138
+ 50: "#f0fdf4",
139
+ 100: "#dcfce7",
140
+ 200: "#bbf7d0",
141
+ 300: "#86efac",
142
+ 400: "#4ade80",
143
+ 500: "#22c55e",
144
+ 600: "#16a34a",
145
+ 700: "#15803d",
146
+ 800: "#166534",
147
+ 900: "#14532d"
148
+ },
149
+ lime: {
150
+ 50: "#f7fee7",
151
+ 100: "#ecfccb",
152
+ 200: "#d9f99d",
153
+ 300: "#bef264",
154
+ 400: "#a3e635",
155
+ 500: "#84cc16",
156
+ 600: "#65a30d",
157
+ 700: "#4d7c0f",
158
+ 800: "#3f6212",
159
+ 900: "#365314"
160
+ },
161
+ yellow: {
162
+ 50: "#fefce8",
163
+ 100: "#fef9c3",
164
+ 200: "#fef08a",
165
+ 300: "#fde047",
166
+ 400: "#facc15",
167
+ 500: "#eab308",
168
+ 600: "#ca8a04",
169
+ 700: "#a16207",
170
+ 800: "#854d0e",
171
+ 900: "#713f12"
172
+ },
173
+ amber: {
174
+ 50: "#fffbeb",
175
+ 100: "#fef3c7",
176
+ 200: "#fde68a",
177
+ 300: "#fcd34d",
178
+ 400: "#fbbf24",
179
+ 500: "#f59e0b",
180
+ 600: "#d97706",
181
+ 700: "#b45309",
182
+ 800: "#92400e",
183
+ 900: "#78350f"
184
+ },
185
+ orange: {
186
+ 50: "#fff7ed",
187
+ 100: "#ffedd5",
188
+ 200: "#fed7aa",
189
+ 300: "#fdba74",
190
+ 400: "#fb923c",
191
+ 500: "#f97316",
192
+ 600: "#ea580c",
193
+ 700: "#c2410c",
194
+ 800: "#9a3412",
195
+ 900: "#7c2d12"
196
+ },
197
+ red: {
198
+ 50: "#fef2f2",
199
+ 100: "#fee2e2",
200
+ 200: "#fecaca",
201
+ 300: "#fca5a5",
202
+ 400: "#f87171",
203
+ 500: "#ef4444",
204
+ 600: "#dc2626",
205
+ 700: "#b91c1c",
206
+ 800: "#991b1b",
207
+ 900: "#7f1d1d"
208
+ },
209
+ warmgray: {
210
+ 50: "#fafaf9",
211
+ 100: "#f5f5f4",
212
+ 200: "#e7e5e4",
213
+ 300: "#d6d3d1",
214
+ 400: "#a8a29e",
215
+ 500: "#78716c",
216
+ 600: "#57534e",
217
+ 700: "#44403c",
218
+ 800: "#292524",
219
+ 900: "#1c1917"
220
+ },
221
+ truegray: {
222
+ 50: "#fafafa",
223
+ 100: "#f5f5f5",
224
+ 200: "#e5e5e5",
225
+ 300: "#d4d4d4",
226
+ 400: "#a3a3a3",
227
+ 500: "#737373",
228
+ 600: "#525252",
229
+ 700: "#404040",
230
+ 800: "#262626",
231
+ 900: "#171717"
232
+ },
233
+ gray: {
234
+ 50: "#fafafa",
235
+ 100: "#f4f4f5",
236
+ 200: "#e4e4e7",
237
+ 300: "#d4d4d8",
238
+ 400: "#a1a1aa",
239
+ 500: "#71717a",
240
+ 600: "#52525b",
241
+ 700: "#3f3f46",
242
+ 800: "#27272a",
243
+ 900: "#18181b"
244
+ },
245
+ coolgray: {
246
+ 50: "#f9fafb",
247
+ 100: "#f3f4f6",
248
+ 200: "#e5e7eb",
249
+ 300: "#d1d5db",
250
+ 400: "#9ca3af",
251
+ 500: "#6b7280",
252
+ 600: "#4b5563",
253
+ 700: "#374151",
254
+ 800: "#1f2937",
255
+ 900: "#111827"
256
+ },
257
+ bluegray: {
258
+ 50: "#f8fafc",
259
+ 100: "#f1f5f9",
260
+ 200: "#e2e8f0",
261
+ 300: "#cbd5e1",
262
+ 400: "#94a3b8",
263
+ 500: "#64748b",
264
+ 600: "#475569",
265
+ 700: "#334155",
266
+ 800: "#1e293b",
267
+ 900: "#0f172a"
268
+ },
269
+ light: {
270
+ 50: "#fdfdfd",
271
+ 100: "#fcfcfc",
272
+ 200: "#fafafa",
273
+ 300: "#f8f9fa",
274
+ 400: "#f6f6f6",
275
+ 500: "#f2f2f2",
276
+ 600: "#f1f3f5",
277
+ 700: "#e9ecef",
278
+ 800: "#dee2e6",
279
+ 900: "#dde1e3"
280
+ },
281
+ dark: {
282
+ 50: "#4a4a4a",
283
+ 100: "#3c3c3c",
284
+ 200: "#323232",
285
+ 300: "#2d2d2d",
286
+ 400: "#222222",
287
+ 500: "#1f1f1f",
288
+ 600: "#1c1c1e",
289
+ 700: "#1b1b1b",
290
+ 800: "#181818",
291
+ 900: "#0f0f0f"
292
+ }
293
+ };
294
+ Object.values(colors).forEach((color) => {
295
+ if (typeof color !== "string") {
296
+ color.DEFAULT = color.DEFAULT || color[400];
297
+ Object.keys(color).forEach((key) => {
298
+ const short = +key / 100;
299
+ if (short === Math.round(short))
300
+ color[short] = color[key];
301
+ });
302
+ }
303
+ });
304
+
305
+ // src/theme/font.ts
306
+ var fontFamily = {
307
+ sans: [
308
+ "ui-sans-serif",
309
+ "system-ui",
310
+ "-apple-system",
311
+ "BlinkMacSystemFont",
312
+ '"Segoe UI"',
313
+ "Roboto",
314
+ '"Helvetica Neue"',
315
+ "Arial",
316
+ '"Noto Sans"',
317
+ "sans-serif",
318
+ '"Apple Color Emoji"',
319
+ '"Segoe UI Emoji"',
320
+ '"Segoe UI Symbol"',
321
+ '"Noto Color Emoji"'
322
+ ].join(","),
323
+ serif: [
324
+ "ui-serif",
325
+ "Georgia",
326
+ "Cambria",
327
+ '"Times New Roman"',
328
+ "Times",
329
+ "serif"
330
+ ].join(","),
331
+ mono: [
332
+ "ui-monospace",
333
+ "SFMono-Regular",
334
+ "Menlo",
335
+ "Monaco",
336
+ "Consolas",
337
+ '"Liberation Mono"',
338
+ '"Courier New"',
339
+ "monospace"
340
+ ].join(",")
341
+ };
342
+ var fontSize = {
343
+ "xs": ["0.75rem", "1rem"],
344
+ "sm": ["0.875rem", "1.25rem"],
345
+ "base": ["1rem", "1.5rem"],
346
+ "lg": ["1.125rem", "1.75rem"],
347
+ "xl": ["1.25rem", "1.75rem"],
348
+ "2xl": ["1.5rem", "2rem"],
349
+ "3xl": ["1.875rem", "2.25rem"],
350
+ "4xl": ["2.25rem", "2.5rem"],
351
+ "5xl": ["3rem", "1"],
352
+ "6xl": ["3.75rem", "1"],
353
+ "7xl": ["4.5rem", "1"],
354
+ "8xl": ["6rem", "1"],
355
+ "9xl": ["8rem", "1"]
356
+ };
357
+ var lineHeight = {
358
+ none: "1",
359
+ tight: "1.25",
360
+ snug: "1.375",
361
+ normal: "1.5",
362
+ relaxed: "1.625",
363
+ loose: "2"
364
+ };
365
+ var letterSpacing = {
366
+ tighter: "-0.05em",
367
+ tight: "-0.025em",
368
+ normal: "0em",
369
+ wide: "0.025em",
370
+ wider: "0.05em",
371
+ widest: "0.1em"
372
+ };
373
+
374
+ // src/theme/index.ts
375
+ var breakpoints = {
376
+ "sm": "640px",
377
+ "md": "768px",
378
+ "lg": "1024px",
379
+ "xl": "1280px",
380
+ "2xl": "1536px"
381
+ };
382
+ var borderRadius = {
383
+ "DEFAULT": "0.25rem",
384
+ "none": "0px",
385
+ "sm": "0.125rem",
386
+ "md": "0.375rem",
387
+ "lg": "0.5rem",
388
+ "xl": "0.75rem",
389
+ "2xl": "1rem",
390
+ "3xl": "1.5rem",
391
+ "full": "9999px"
392
+ };
393
+ var theme = {
394
+ colors,
395
+ fontFamily,
396
+ fontSize,
397
+ breakpoints,
398
+ borderRadius,
399
+ lineHeight,
400
+ letterSpacing
401
+ };
402
+
403
+ export {
404
+ colors,
405
+ breakpoints,
406
+ borderRadius,
407
+ theme
408
+ };