-
Notifications
You must be signed in to change notification settings - Fork 1
/
windi.config.ts
71 lines (69 loc) · 1.69 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
59
60
61
62
63
64
65
66
67
68
69
70
71
import { defineConfig } from "windicss/helpers";
import { colors } from "./src/lib/colors";
export default defineConfig({
darkMode: "class",
extract: {
include: ["**/*.{jsx,tsx,css}"],
exclude: ["node_modules", ".git", ".next"],
},
plugins: [
require("windicss/plugin/line-clamp"),
require("windicss/plugin/typography"),
],
shortcuts: {
"default-focus":
"focus:(outline-none ring-4 ring-offset-4 dark:ring-offset-primary-900 ring-primary-500)",
"default-transition": "transition ease-in-out duration-300",
},
theme: {
extend: {
animation: {
wave: "wave 2.25s ease-in-out infinite",
},
backgroundOpacity: {
15: "0.15",
},
colors,
keyframes: {
wave: {
"0%": { transform: "rotate(0deg)" },
"10%": { transform: "rotate(14deg)" },
"20%": { transform: "rotate(-8deg)" },
"30%": { transform: "rotate(14deg)" },
"40%": { transform: "rotate(-4deg)" },
"50%": { transform: "rotate(10deg)" },
"60%": { transform: "rotate(0deg)" },
"100%": { transform: "rotate(0deg)" },
},
},
saturate: {
DEFAULT: {
200: "saturate(2)",
},
},
transformOrigin: {
70: "70% 70%",
},
typography: {
DEFAULT: {
css: {
img: {
maxWidth: "100%",
},
},
},
},
},
typography: {
DEFAULT: {
css: {
pre: {
marginTop: "0 !important",
borderTopLeftRadius: "0 !important",
borderTopRightRadius: "0 !important",
},
},
},
},
},
});