-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtailwind.config.ts
126 lines (123 loc) · 3.34 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
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
import type { Config } from "tailwindcss";
import defaultTheme from "tailwindcss/defaultTheme";
const config: Config = {
content: [
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
"./app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
keyframes: {
ping: {
"0%": { transform: "scale(1)" },
"100%": { transform: "scale(0.8)" },
},
slideDown: {
from: {
height: "0",
},
to: {
height: "var(--radix-accordion-content-height)",
},
},
slideUp: {
from: {
height: "var(--radix-accordion-content-height)",
},
to: {
height: "0",
},
},
scaleXOpen: {
from: {
transform: "scaleX(0)",
},
to: {
transform: "scaleX(1)",
},
},
scaleXClose: {
from: {
transform: "scaleX(1)",
},
to: {
transform: "scaleX(0)",
},
},
fadeIn: {
from: {
opacity: "0",
},
to: {
opacity: "1",
},
},
fadeOut: {
from: {
opacity: "1",
},
to: {
opacity: "0",
},
},
blink: {
"0%": { opacity: "0.2" },
"20%": { opacity: "1" },
"100% ": { opacity: "0.2" },
},
},
extend: {
animation: {
ping: "2s ease-in-out infinite alternate ping",
slideDown: "300ms slideDown ease-in-out",
slideUp: "300ms slideUp ease-in-out",
blink: "blink 1.4s both infinite",
scaleXOpen: "scaleXOpen 500ms var(--ease-out-sine)",
scaleXClose: "scaleXClose 500ms var(--ease-out-sine)",
fadeIn: "fadeIn 500ms var(--ease-out-sine)",
fadeOut: "fadeOut 500ms var(--ease-out-sine)",
},
boxShadow: {
overlay: "0 9999px 0 9999px #0006",
},
colors: {
text: "rgb(var(--color-text) / <alpha-value>)",
star: "rgb(var(--color-star) / <alpha-value>)",
"hero-headphones-cta": "rgb(var(--color-hero-headphones-cta) / <alpha-value>)",
"main-bg": "rgb(var(--color-background-main) / <alpha-value>)",
"button-bg": "rgb(var(--color-button-background) / <alpha-value>)",
"feature-table": "rgb(var(--color-feature-table-background) / <alpha-value>)",
},
backgroundImage: {
"hero-mw08": "var(--background-hero-mw08)",
"hero-earphones": "var(--background-hero-earphones)",
"hero-headphones": "var(--background-hero-headphones)",
"hero-inner-mw08": "var(--background-hero-inner-mw08)",
"hero-inner-earphones": "var(--background-hero-inner-earphones)",
"hero-inner-headphones": "var(--background-hero-inner-headphones)",
"hotspot-shadow": "var(--background-hotspot-shadow)",
},
fontFamily: {
sans: ["var(--font-din-next)", ...defaultTheme.fontFamily.sans],
},
lineHeight: {
heading: "1.1",
},
spacing: {
"2.5": "0.625rem",
"3.5": "0.875rem",
"7.5": "1.875rem",
"4.5": "1.125rem",
},
borderColor: ({ theme }) => ({
...theme("colors"),
DEFAULT: "rgb(var(--color-text) / .12)",
}),
borderRadius: {
button: "3.75rem",
},
},
},
plugins: [],
};
export default config;