-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathunocss.config.ts
45 lines (42 loc) · 1.33 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
import presetUno from "@unocss/preset-uno";
import presetIcons from "@unocss/preset-icons";
import transformerVariantGroup from "@unocss/transformer-variant-group";
import { defineConfig } from "unocss";
const cols = Array(5)
.fill(0)
.map((_, i) => `grid-cols-${i + 1}`)
.join(" ");
const rows = Array(5)
.fill(0)
.map((_, i) => `grid-rows-${i + 1}`)
.join(" ");
const cryptoIcons = ["eth", "avax", "btc", "dai", "matic", "sol"];
export const config = defineConfig({
presets: [presetIcons(), presetUno()],
transformers: [transformerVariantGroup()],
shortcuts: {
btn: "shadow-md flex items-center z-10 disabled:filter-grayscale disabled:opacity-90 uppercase font-semibold rounded disabled:hover:brightness-100 hover:brightness-110 transition-all duration-75 ease-in-out",
"btn-primary-blue": "bg-#19A8F5 text-white",
"btn-primary-pink": "bg-#ef3fff text-white",
"btn-lg": "text-2xl px-8 py-2",
"btn-md": "text-lg px-6 py-1",
"btn-sm": "text-base px-4 py-1",
},
safelist: [
`${cols} ${rows}`.split(" "),
cryptoIcons.map((i) => `i-cryptocurrency-color-${i}`),
].flat(),
theme: {
colors: {
typo: {
secondary: "#C3E6FF",
tertiary: "#7183A1",
},
background: {
primary: "#151321",
secondary: "#2D2D45",
tertiary: "#373458",
},
},
},
});