-
Notifications
You must be signed in to change notification settings - Fork 12
/
windi.config.ts
30 lines (29 loc) · 1.15 KB
/
windi.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
import { resolve } from 'path'
import { mergeWindicssConfig, defineConfig } from 'vite-plugin-windicss'
import BaseConfig from '@slidev/client/windi.config'
// extend the base config
export default mergeWindicssConfig(
BaseConfig,
defineConfig({
extract: {
include: [
resolve(__dirname, '**/*.{vue,ts}'),
],
},
shortcuts: {
// custom the default background
'bg-main': 'bg-purple-50 text-purple-900 dark:(bg-[#121212] text-purple-100)',
'border-image': 'border border-[#121212] border-opacity-10 shadow-md shadow-[#121212] dark:(border-purple-100 border-opacity-10 shadow-purple-100)',
'bg-barBottom': 'bg-purple-900 text-purple-50 dark:(bg-purple-900 text-purple-50)',
},
theme: {
extend: {
// fonts can be replaced here, remember to update the web font links in `index.html`
fontFamily: {
sans: '"Rubik", ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"',
mono: '"Fira Code", monospace',
},
},
},
}),
)