-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuno.config.ts
45 lines (43 loc) · 1.36 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
import { defineConfig, presetUno, presetIcons } from 'unocss'
import { IconifyJSON } from '@iconify/types'
import carbonIcons from '@iconify-json/carbon/icons.json'
import mdiIcons from '@iconify-json/mdi/icons.json'
import simpleIcons from '@iconify-json/simple-icons/icons.json'
export default defineConfig({
presets: [
presetUno({
dark: 'class',
}),
presetIcons({
scale: 1.2,
collections: {
carbon: () => carbonIcons as IconifyJSON,
mdi: () => mdiIcons as IconifyJSON,
simple: () => simpleIcons as IconifyJSON,
}
}),
],
theme: {
colors: {
border: 'var(--border)',
background: 'var(--background)',
foreground: 'var(--foreground)',
primary: {
DEFAULT: 'var(--primary)',
foreground: 'var(--primary-foreground)',
},
secondary: {
DEFAULT: 'hsl(var(--secondary))',
foreground: 'hsl(var(--secondary-foreground))',
},
muted: {
DEFAULT: 'var(--muted)',
foreground: 'var(--muted-foreground)',
},
accent: {
DEFAULT: 'var(--accent)',
foreground: 'var(--accent-foreground)',
},
},
}
})