-
Notifications
You must be signed in to change notification settings - Fork 2
/
windi.config.ts
44 lines (43 loc) · 1 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
import { defineConfig } from "windicss/helpers";
export default defineConfig({
extract: {
include: ["./src/**/*.{jsx,tsx,css,ts}"],
exclude: ["node_modules", ".git", ".next/**/*"],
},
theme: {
extend: {
animation: {
skeleton: "skeleton 3s ease infinite",
},
keyframes: {
skeleton: {
"from, 50%, to": {
opacity: "1",
},
"25%, 75%": {
opacity: "0.3",
},
},
},
},
},
shortcuts: {
focusable:
"focus-visible:ring-2 focus:outline-none focus-visible:ring-cyan-400 ",
center: "flex items-center justify-center",
},
plugins: [
require("windicss/plugin/forms"),
require("windicss/plugin/typography")(),
require("@windicss/plugin-animations")({
settings: {
animatedSpeed: 1000,
heartBeatSpeed: 1000,
hingeSpeed: 2000,
bounceInSpeed: 750,
bounceOutSpeed: 750,
animationDelaySpeed: 1000,
},
}),
],
});