This repository was archived by the owner on Oct 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtailwind.config.js
75 lines (73 loc) · 1.78 KB
/
tailwind.config.js
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
72
73
74
75
const defaultTheme = require("tailwindcss/defaultTheme");
/** @type {import("tailwindcss").Config} */
const tailwindCssConfig = {
content: ["./src/**/*.{js,ts,jsx,tsx}"],
plugins: [],
theme: {
extend: {
animation: {
caret: "caret 1s linear infinite",
scroll: "scroll 4s linear infinite",
twinkle: "twinkle 30s alternate infinite linear",
},
backgroundImage: {
horizon:
"radial-gradient(#000000 70%, #ffffff 70.1%, #0ea5e9 70.3%, #0ea5e900 70.7%)",
twinkle: "url(/assets/images/twinkle.png)",
},
fontFamily: {
sans: ["var(--font-titillium-web)", ...defaultTheme.fontFamily.mono],
},
gridTemplateColumns: {
timeline: "minmax(0, 1fr) 8rem minmax(0, 1fr)",
},
keyframes: {
caret: {
"0%, 49.99%, 100%": {
opacity: "0",
},
"50%, 99.99%": {
opacity: "1",
},
},
scroll: {
"0%, 25%": {
opacity: "0",
transform: "translateY(-1rem)",
},
"50%": {
opacity: "10",
},
"75%, 100%": {
opacity: "0",
transform: "translateY(1rem)",
},
},
twinkle: {
from: {
backgroundPosition: "0 0",
},
to: {
backgroundPosition: "-1000px 500px",
},
},
},
screens: Object.fromEntries(
Object.entries(defaultTheme.screens).map(([key, value]) => [
`h-${key}`,
{
raw: `(min-height: ${value})`,
},
])
),
},
zIndex: {
0: "0",
1: "1",
drawer: "4",
loader: "2",
navbar: "3",
},
},
};
module.exports = tailwindCssConfig;