-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathwindi.config.ts
52 lines (51 loc) · 1.29 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import { defineConfig } from 'windicss/helpers'
export default defineConfig({
darkMode: 'class',
extract: {
include: ['src/**/*.{vue,html,ts,md}', 'pages/**/*.md'],
exclude: ['node_modules', '.git'],
},
attributify: {
prefix: 'w:',
},
theme: {
screens: {
'<w-content': { raw: '(max-width: calc(48rem + 48px))' },
'>w-content': { raw: '(min-width: calc(48rem + 48px))' },
},
extend: {
colors: {
'bg-base': 'var(--bg-base)',
'bg-deep': 'var(--bg-deep)',
'bg-deeper': 'var(--bg-deeper)',
'accent': 'var(--color-accent)',
'border': 'var(--color-border)',
'lite': 'var(--text-lite)',
'base': 'var(--text-base)',
'deep': 'var(--text-deep)',
'deeper': 'var(--text-deeper)',
},
},
fontSize: {
sm: ['14px', '20px'],
base: ['16px', '24px'],
lg: ['20px', '28px'],
xl: ['24px', '32px'],
},
cursor: {
'auto': 'auto',
'default': 'default',
'pointer': 'pointer',
'wait': 'wait',
'text': 'text',
'move': 'move',
'not-allowed': 'not-allowed',
'crosshair': 'crosshair',
'zoom-in': 'zoom-in',
'zoom-out': 'zoom-out',
},
},
shortcuts: {
'w-content': 'max-w-48rem mx-auto <w-content:mx-24px',
},
})