-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
53 lines (47 loc) · 1.47 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
import type { Config } from "tailwindcss";
import typography from "@tailwindcss/typography";
const config: Config = {
content: [
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
screens: {
xs: "300px",
},
animation: {
"translate-header":
"translate-header 1.25s var(--primary-curve) .8s forwards",
"reveal-image": "reveal-image 2.25s var(--primary-curve) .8s forwards",
"divider-scale": "divider-scale .8s var(--primary-curve) .5s forwards",
"fade-in": "fade-in .8s var(--primary-curve) .8s forwards",
},
keyframes: {
"translate-header": {
"0%": { transform: "translate3d(0, -100%, 0)" },
"100%": { transform: "translate3d(0, 0, 0)" },
},
"reveal-image": {
"0%": {
"clip-path": "polygon(0 100%, 100% 100%, 100% 100%, 0% 100%)",
transform: "scale3d(1.3,1.3,1.3)",
"transform-origin": "25% 0",
},
"100%": { "clip-path": "polygon(0 0, 100% 0, 100% 100%, 0% 100%)" },
},
"divider-scale": {
"0%": { transform: "scale3d(0, 1, 1)" },
"100%": { transform: "scale3d(1,1,1)" },
},
"fade-in": {
"0%": { opacity: "0" },
"100%": { opacity: "1" },
},
},
},
},
plugins: [typography],
};
export default config;