-
Notifications
You must be signed in to change notification settings - Fork 3
/
windi.config.ts
46 lines (43 loc) · 956 Bytes
/
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
import colors from 'windicss/colors';
import { defineConfig } from 'windicss/helpers';
const extract = {
include: [
'components/**/*.vue',
'layouts/**/*.vue',
'pages/**/*.vue',
'plugins/**/*.js',
'nuxt.config.js',
'app.vue',
// TypeScript
'plugins/**/*.ts',
'nuxt.config.ts',
],
};
const theme = {
extend: {
colors: {
transparent: 'transparent',
...colors,
},
fontFamily: {
sans: ['Inter var', ...require('windicss/defaultTheme').fontFamily.sans],
},
},
};
const plugins = [
require('windicss/plugin/filters'),
require('windicss/plugin/aspect-ratio'),
require('windicss/plugin/line-clamp'),
require('windicss/plugin/scroll-snap'),
require('windicss/plugin/typography')({
dark: true,
modifiers: ['DEFAULT', 'sm', 'lg', 'red'],
}),
require('windicss/plugin/forms'),
];
export default defineConfig({
darkMode: 'class',
extract,
theme,
plugins,
});