-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
40 lines (39 loc) · 1.23 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
import { defineConfig } from 'vite'
import Unocss from 'unocss/vite'
import Components from 'unplugin-vue-components/vite'
import { presetAttributify, presetIcons, presetUno } from 'unocss'
export default defineConfig({
plugins: [
Components({
include: [/\.vue/, /\.md/],
dirs: [
'.vitepress/components',
'.vitepress/components/Code',
],
dts: '.vitepress/components.d.ts',
}),
Unocss({
shortcuts: [
['btn', 'inline-flex items-center justify-center py-2 px-5 rounded-lg transition bg-gray-100 hover:bg-gray-200 :dark:bg-gray-400 dark:bg-opacity-20 dark:hover:bg-opacity-40 border-1 border-solid border-transparent'],
['btn--active', 'border-primary'],
['btn--primary', 'bg-primary hover:bg-primary-dark text-white font-semibold dark:bg-green-600 dark:hover:bg-green-500 dark:text-black'],
['btn--outline-gray', 'border-1 border-solid border-gray-300'],
],
theme: {
colors: {
'primary': '#42b883',
'primary-dark': '#33a06f',
},
},
presets: [
presetUno({
dark: 'media',
}),
presetAttributify(),
presetIcons({
scale: 1.2,
}),
],
}),
],
})