-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunocss.config.ts
84 lines (83 loc) · 2.12 KB
/
unocss.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
74
75
76
77
78
79
80
81
82
83
84
import { defineConfig } from "@unocss/vite";
import presetWind from "@unocss/preset-wind";
import presetAttributify from "@unocss/preset-attributify";
import presetWebFonts from "@unocss/preset-web-fonts";
import presetIcons from "@unocss/preset-icons";
import transformerVariantGroup from "@unocss/transformer-variant-group";
import extractorSvelte from "@unocss/extractor-svelte";
export default defineConfig({
presets: [
presetAttributify(),
presetWind(),
presetIcons(),
extractorSvelte(),
presetWebFonts({
fonts: {
sans: [
{
name: "Noto Sans JP",
weights: ["400", "500", "700"],
},
],
logo: [
{
name: "Space Mono",
weights: ["400"],
},
],
},
}),
],
transformers: [transformerVariantGroup()],
theme: {
colors: {
accent: {
accent: "#487AF9",
success: "#347d39",
edit: "#116329",
warning: "#c69026",
error: "#EA4E60",
},
bg: {
primary: "#22272e",
secondary: "#2d333b",
tertiary: "#323942",
disabled: "#181818",
button: "#373e47",
buttonHover: "#444c56",
backdrop: "#1C2128",
successDisabled: "rgba(35,134,54,0.6)",
successHover: "#46954a",
warning: "#37332a",
},
ui: { tertiary: "#636e7b" },
border: {
primary: "#444c56",
button: "#CDD9E5",
buttonHover: "#768390",
warning: "#AE7C14",
successDisabled: "rgba(35,134,54,0.6)",
},
text: {
primary: "#adbac7",
secondary: "#CDD9E5",
tertiary: "#768390",
link: "#2e7cd5",
white: "#FFFFFF",
disabled: "#484f58",
successDisabled: "rgba(255,255,255,0.5)",
},
},
fontSize: {
body: ["1rem", "160%"],
body2: [".875rem", "160%"],
body3: [".8rem", "160%"],
h1: ["1.75rem", "145%"],
h2: ["1.5rem", "145%"],
h3: ["1.25rem", "145%"],
h4: ["1.125rem", "145%"],
caption: [".75rem", "142%"],
input: [".875rem", "100%"],
},
},
});