forked from unocss-community/unocss-preset-theme
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
59 lines (58 loc) · 1.41 KB
/
vite.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
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { presetIcons, presetUno } from 'unocss'
import type { Theme } from 'unocss/preset-uno'
import presetTheme from '@wtto00/unocss-preset-theme'
import unocss from 'unocss/vite'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue(),
unocss<Theme>({
theme: {
colors: {
'primary': '#1677ff',
'primary-border': '#1677ff',
'text': 'rgba(0, 0, 0, 0.88)',
'container': '#ffffff',
'border': '#d9d9d9',
},
spacing: {
xss: '4px',
xs: '8px',
sm: '12px',
base: '16px',
lg: '24px',
xl: '32px',
},
},
presets: [
presetUno(),
presetIcons(),
presetTheme<Theme>({
theme: {
dark: {
colors: {
'primary': '#1668dc',
'primary-border': '#1668dc',
'border': '#424242',
'container': '#141414',
'text': 'rgba(255, 255, 255, 0.85)',
},
},
compact: {
spacing: {
xss: '2px',
xs: '4px',
sm: '6px',
base: '8px',
lg: '12px',
xl: '16px',
},
},
},
}),
],
}),
],
})