-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuno.config.ts
34 lines (34 loc) · 872 Bytes
/
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
// unocss.config.ts
import { defineConfig } from "@unocss/webpack";
import presetUno from "@unocss/preset-uno";
import type { Theme } from "@unocss/preset-uno";
import presetIcons from "@unocss/preset-icons";
import presetTheme from "unocss-preset-theme";
import transformerVariantGroup from "@unocss/transformer-variant-group";
import { rules, shortcuts } from "./uno-rules";
import { darkTheme, lightTheme } from "./uno-radix-colors";
export default defineConfig<Theme>({
rules,
shortcuts,
transformers: [transformerVariantGroup()],
theme: lightTheme,
presets: [
presetUno({
dark: "class",
}),
presetIcons({
scale: 1.2,
}),
// @ts-ignore
presetTheme<Theme>({
selectors: {
dark: ".dark",
light: ".light",
},
prefix: "--rdx",
theme: {
dark: darkTheme,
},
}),
],
});