forked from NvChad/nvchad.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
unocss.config.ts
59 lines (50 loc) · 1.05 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
// lets me use unocss classes in css files
import transformerDirectives from "@unocss/transformer-directives";
import {
defineConfig,
presetAttributify,
presetIcons,
presetUno,
} from "unocss";
export default defineConfig({
theme: {
colors: {
white: {
1: "#fff",
2: "#c9d0dd",
},
onedark: "#1E222A",
dark: {
1: "#13141b",
2: "#171821",
3: "#222331",
4: "#2d2f41",
},
// for light theme
grey: {
1: "#8798AD",
2: "#536387",
4: "#2E384D",
},
},
},
presets: [
presetUno(),
presetIcons({
scale: 1.2,
}),
presetAttributify(),
],
rules: [
["softShadow", { "box-shadow": "rgba(0, 0, 0, 0.35) 0px 5px 15px" }],
["lightenBg", { filter: "brightness(125%)" }],
["darkenBg", { filter: "brightness(93%)" }],
["box", { "max-width": "1700px" }],
],
shortcuts: [
["vertCentered", "flex items-center gap-2", { layer: "utilites" }],
],
transformers: [
transformerDirectives(),
],
});