-
Notifications
You must be signed in to change notification settings - Fork 4
/
windi.config.ts
44 lines (41 loc) · 1.11 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
/* eslint-disable import/no-extraneous-dependencies */
import { defineConfig } from "vite-plugin-windicss"
import colors from "windicss/colors"
import { PluginUtils } from "windicss/types/interfaces"
// @ts-ignore: Missing types
import Animations from "@windicss/plugin-animations"
const plugin = ({ addDynamic }: PluginUtils) => {
addDynamic("animate-delay", ({ Utility }) =>
Utility.handler.handleTime().createProperty("animation-delay"),
)
}
export default defineConfig({
safelist: ["!animate-delay-250ms", "!animate-delay-500ms", "!animate-delay-750ms"],
corePlugins: {
accessibility: false,
},
plugins: [Animations(), plugin],
shortcuts: {
"grayed-out": "filter brightness-50 grayscale-50 opacity-50",
},
theme: {
fontFamily: {
sans: ["Rubik", "sans-serif"],
serif: ["Radiance", "serif"],
},
screens: {
sm: "768px",
md: "1024px",
lg: "1280px",
},
extend: {
colors: {
trans: "transparent",
current: "currentColor",
gray: colors.stone,
danger: colors.rose,
primary: colors.amber,
},
},
},
})