-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuno.config.ts
73 lines (71 loc) · 1.93 KB
/
uno.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// uno.config.ts
import { presetAttributify } from "@unocss/preset-attributify";
import { presetTypography } from "@unocss/preset-typography";
import { presetUno } from "@unocss/preset-uno";
// import transformerDirectives from "@unocss/transformer-directives";
import transformerVariantGroup from "@unocss/transformer-variant-group";
import { defineConfig } from "@unocss/vite";
import presetAutoprefixer from "unocss-preset-autoprefixer";
export default defineConfig({
presets: [
presetUno({
variablePrefix: "style-",
}),
presetAutoprefixer(),
presetAttributify({
prefix: "u-",
}),
presetTypography(),
],
shortcuts: [
[/^card-(.*)\/(.*)$/, ([, color, opacity]) => `border border-${color}-200 border-opacity-${opacity} bg-${color}-600 bg-opacity-${Number(opacity) - 10} rounded-md`],
[/^card-highlight-(.*)$/, ([, c]) => `hover:border-${c}-200/50`],
],
theme: {
colors: {
brilliantsea: {
50: "#f0fdfc",
100: "#C8F4F4",
200: "#8CE8E8",
300: "#55DDDD",
400: "#28C6C6",
500: "#21A5A5",
600: "#1B8484",
700: "#146262",
800: "#0E4444",
900: "#072222",
},
greendark: {
100: "#abf3e2",
200: "#56e8c6",
300: "#1bc49c",
400: "#0f6f59",
500: "#041d17",
600: "#031611",
700: "#02100d",
800: "#010b09",
900: "#010504",
},
greenspring: {
100: "#c9fdeb",
200: "#92fcd7",
300: "#5cfac3",
400: "#25f8ae",
500: "#07e194",
600: "#06b276",
700: "#048658",
800: "#03593b",
900: "#012d1d",
},
},
fontFamily: {
content: "'Martian Mono Variable'",
head: "'Unbounded Variable'",
},
},
transformers: [
transformerVariantGroup(),
// Causes Nuxt to crash when using Bun's runtime, should be fixed by Bun.
// transformerDirectives(),
],
});