-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.mjs
103 lines (103 loc) · 2.51 KB
/
tailwind.config.mjs
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
/** @type {import('tailwindcss').Config} */
export default {
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
theme: {
fontWeight: {
thin: 100,
regular: 300,
medium: 500,
bold: 700,
black: 900,
},
extend: {
screens: {
lg: "1400px",
},
colors: {
brand: "#00FF6F",
"brand-100": "#A8E87B",
"gray-888": "#888888",
},
transitionTimingFunction: {
"cubic-menu": "cubic-bezier(0.25, 0.8, 0.25, 1)",
},
transitionDuration: {
400: "0.4s",
},
fontSize: {
xxs: "0.625rem",
},
letterSpacing: {
third: "0.33rem",
},
keyframes: {
"scroll-x": {
"0%": {
transform: "translateX(0)",
},
"100%": {
transform: "translateX(calc(-100% - 20px))",
},
},
pulse: {
"40%": {
opacity: 1,
transform: "scale(1)",
},
"100%": {
opacity: 0,
transform: "scale(2.2)",
},
},
rotation: {
"0%": { transform: "rotate(0deg)" },
"100%": { transform: "rotate(360deg)" },
},
},
animation: {
"scroll-x": "scroll-x 25s linear infinite",
pulse: "pulse 3s linear infinite",
spin: "rotation 1s linear infinite",
},
},
},
plugins: [
function ({ addUtilities, matchUtilities, theme }) {
addUtilities({
".bg-clip-text": {
"-webkit-background-clip": "text",
},
".text-transparent": {
"-webkit-text-fill-color": "transparent",
},
".animation-reverse": {
"animation-direction": "reverse",
},
".gradient-mask": {
"mask-image":
"linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 12.5%, rgb(0, 0, 0) 87.5%, rgba(0, 0, 0, 0) 100%)",
},
".magic-gradient-mask": {
mask: "radial-gradient(100% 75% at 50% 71.1%,#000000 31.012457770270263%,rgba(0,0,0,0) 89.08009572072073%) add",
},
});
matchUtilities(
{
"animation-delay": (value) => {
return {
"animation-delay": value,
};
},
"animation-duration": (value) => {
return {
"animation-duration": value,
};
},
},
{
values: theme("transitionDelay"),
},
);
},
],
};