-
Notifications
You must be signed in to change notification settings - Fork 0
/
uno.config.ts
56 lines (55 loc) · 1.12 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
46
47
48
49
50
51
52
53
54
55
56
// uno.config.ts
import { defineConfig, presetIcons, presetUno, presetWebFonts } from 'unocss'
import { presetRadix } from 'unocss-preset-radix'
// @ts-ignore
import { presetShortcuts, presetResponsive } from 'hommeui/uno'
export default defineConfig({
theme: {
lineHeight: {
base: 1.625,
heading: 1.25,
},
fontWeight: {
base: 400,
heading: 600,
button: 600,
},
borderRadius: {
panel: '16px',
card: '8px',
image: '8px',
button: '4px',
input: '4px',
},
},
presets: [
presetUno(),
presetResponsive(),
presetShortcuts(),
presetIcons(),
presetWebFonts({
fonts: {
heading: {
name: 'Inter',
weights: [600],
italic: true,
},
text: {
name: 'Inter',
weights: [300, 400, 500, 600, 700],
italic: true,
},
},
}),
// @ts-ignore
presetRadix({
lightSelector: '.light',
darkSelector: '.dark',
palette: ['slate', 'blue', 'red'],
aliases: {
base: 'slate',
primary: 'blue',
},
}),
],
})