-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwindi.config.ts
58 lines (49 loc) · 1.22 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
53
54
55
56
57
58
import { defineConfig } from 'windicss/helpers';
import typography from 'windicss/plugin/typography';
const heroPatterns = require('@windicss/plugin-heropatterns')({
// the list of patterns you want to generate a class for
// the names must be in kebab-case
// an empty array will generate all 87 patterns
patterns: ['circuit-board'],
// The foreground colors of the pattern
colors: {
normal: '#0023b6',
'dark': '#6bdcd9', // also works with rgb(0,0,205)
},
// The foreground opacity
opacity: {
default: '0.8'
},
});
export default defineConfig({
darkMode: 'class',
plugins: [
typography(),
require('@windicss/plugin-scrollbar'),
heroPatterns
],
shortcuts: {
'page-padding': 'px-8 md:px-16 lg:px-24 xl:px-48 2xl:px-60',
'app-background': 'bg-app-background dark:bg-app-background-dark',
'app-header-background': 'bg-app-background/80 dark:bg-app-background-dark/80'
},
variants: {
scrollbar: [
'rounded'
]
},
theme: {
extend: {
colors: {
primary: {
DEFAULT: '#0023b6',
dark: '#6bdcd9',
},
'app-background': {
DEFAULT: '#f1eff1',
dark: '#2c214f',
}
}
}
},
})