-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwindi.config.ts
48 lines (44 loc) · 1.36 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
import plugin from 'windicss/plugin'
export default {
theme: {
extend: {
colors: {
primary: 'var(--primary)',
},
fontFamily: {
display: 'PT Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace',
body: 'PT Sans,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"',
}
},
},
plugins: [
plugin(function ({ addComponents, theme }) {
const screens = theme('screens');
const components = {
'.debug-screens::before': Object.assign({
content: '"screen: xs"',
position: 'fixed',
zIndex: '2147483647',
bottom: '0',
left: '0',
padding: '.3333333em .5em',
fontSize: '12px',
lineHeight: '1',
fontFamily: 'sans-serif',
backgroundColor: '#000',
color: '#fff',
boxShadow: '0 0 0 1px #fff',
}),
};
Object.entries(screens)
.forEach(([screen, width]) => {
components[`@media (min-width: ${width})`] = {
'.debug-screens::before': {
content: `"screen: ${screen}"`,
},
};
});
addComponents(components);
}),
]
}