-
Notifications
You must be signed in to change notification settings - Fork 20
/
windi.config.ts
27 lines (26 loc) · 758 Bytes
/
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
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-gradient-to-r from-white to-purple-50 text-gray-900 dark:(from-fuchsia-700 to-purple-800 text-white)',
},
theme: {
extend: {
// fonts can be replaced here, remember to update the web font links in `index.html`
fontFamily: {
title: ['Gilroy Bold', 'sans-serif'],
},
},
},
}),
)