-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
57 lines (55 loc) · 1.58 KB
/
tailwind.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
import hocus from "tailwindcss-hocus";
import typography from "@tailwindcss/typography";
import type { Config } from "tailwindcss/types/config";
const tailwindConfig: Config = {
content: ["./pages/**/*.{js,ts,jsx,tsx}", "./src/**/*.{js,ts,jsx,tsx}"],
darkMode: "class", // or 'media' or 'class'
plugins: [typography, hocus],
theme: {
extend: {
keyframes: {
scroll: {
"0%": { transform: "translateX(1.5rem)" },
"100%": { transform: "translateX(-100%)" },
},
wave: {
"from, 50%, to": { transform: "rotate(0deg)" },
"10%, 30%": { transform: "rotate(-10deg)" },
"20%": { transform: "rotate(12deg)" },
"40%": { transform: "rotate(9deg)" },
},
grid: {
"0%": { transform: "translateY(-50%)" },
"100%": { transform: "translateY(0)" },
},
spin: {
"0%": {
rotate: "0deg",
},
"15%, 35%": {
rotate: "90deg",
},
"65%, 85%": {
rotate: "270deg",
},
"100%": {
rotate: "360deg",
},
},
slide: {
to: {
transform: "translate(calc(100cqw - 100%), 0)",
},
},
},
animation: {
scroll: "scroll 15s linear infinite",
wave: "wave 2.5s infinite",
spin: "spin calc(var(--speed) * 2) infinite linear",
slide: "slide var(--speed) ease-in-out infinite alternate",
grid: "grid 15s linear infinite",
},
},
},
};
export default tailwindConfig;