-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwindi.config.js
46 lines (44 loc) · 1.04 KB
/
windi.config.js
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
// windi.config.js
import { defineConfig } from 'windicss/helpers'
import plugin from 'windicss/plugin'
export default defineConfig({
attributify: true,
extract: {
exclude: [
'node_modules/**/*',
'.git/**/*',
],
},
plugins: [
plugin(({ addBase, theme }) => {
addBase({
'h1': {
fontSize: theme('fontSize.3xl'),
fontWeight: theme('fontWeight.semibold'),
},
'h2': {
fontSize: theme('fontSize.2xl'),
fontWeight: theme('fontWeight.semibold'),
},
'h3': {
fontSize: theme('fontSize.xl'),
fontWeight: theme('fontWeight.semibold'),
},
'h4': {
fontSize: theme('fontSize.lg'),
fontWeight: theme('fontWeight.medium'),
},
'h5': {
fontSize: theme('fontSize.md'),
fontWeight: theme('fontWeight.medium'),
},
'a': {
textDecoration: 'underline',
},
'a:hover': {
textDecoration: 'none',
},
})
}),
],
})