-
-
Notifications
You must be signed in to change notification settings - Fork 50
/
windi.config.ts
50 lines (46 loc) · 1.13 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
import { defineConfig } from 'windicss/helpers'
import lineClamp from 'windicss/plugin/line-clamp'
import { ThemeColorConfig } from './theme.config'
export default defineConfig({
content: ['./src/**/*.html', './src/**/*.vue', './src/**/*.tsx'],
darkMode: 'class',
theme: {
extend: {
screens: {
'light-mode': { raw: '(prefers-color-scheme: light)' },
'dark-mode': { raw: '(prefers-color-scheme: dark)' },
phone: { raw: '(max-width: 768px)' },
desktop: { raw: '(min-width: 1024px)' },
tablet: { raw: '(max-width: 1023px)' },
},
zIndex: {
'-10': -10,
'-1': -1,
0: 0,
1: 1,
10: 10,
20: 20,
30: 30,
40: 40,
50: 50,
60: 60,
70: 70,
80: 80,
90: 90,
100: 100,
auto: 'auto',
},
colors: {
primary: {
default: 'var(--color-primary)',
deep: 'var(--color-primary-deep)',
shallow: 'var(--color-primary-shallow)',
},
gray$: {
default: '#ddd',
},
},
},
},
plugins: [lineClamp],
})