-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtailwind.config.ts
86 lines (85 loc) · 2.61 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
import type { Config } from "tailwindcss"
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}",
"./src/templates/**/*.{js,ts,jsx,tsx,mdx}"
],
darkMode: "class",
theme: {
extend: {
container: {
center: true,
padding: {
DEFAULT: "1rem",
sm: "2rem"
},
screens: {
sm: "100%", // Full width for small screens (mobile)
md: "100%", // Full width for medium screens (tablet)
lg: "1024px", // 1024px width for large screens (desktop)
xl: "1280px", // 1280px width for extra-large screens (desktop)
"2xl": "1536px" // 1536px width for double extra-large screens (desktop)
}
},
fontFamily: {
alteHaas: [
'"Alte Haas Grotesk"',
"ui-sans-serif",
"system-ui",
"sans-serif"
]
},
padding: {
container: "4.5rem",
section: "6rem"
},
colors: {
primary: "hsl(var(--primary))",
secondary: "hsl(var(--secondary))",
background: "hsl(var(--background))",
"background-secondary": "hsl(var(--background-secondary))",
highlight: "hsl(var(--highlight))",
lightColor: "hsl(var(--light))",
darkColor: "hsl(var(--dark))"
},
boxShadow: {
button: "0px 0px 0px 1px rgba(0, 0, 0, 0.2) inset"
},
backgroundImage: {
"gradient-radial": "radial-gradient(var(--tw-gradient-stops))",
"gradient-conic":
"conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))"
},
keyframes: {
drawerAnimationDown: {
"0%": { transform: "translateY(-100%)" },
"100%": { transform: "translateY(0)" }
},
drawerAnimationUp: {
"0%": { transform: "translateY(0)" },
"100%": { transform: "translateY(-100%)" }
}
},
animation: {
drawerDown: "drawerAnimationDown 0.3s ease-in forwards",
drawerUp: "drawerAnimationUp 0.3s ease-out forwards"
},
/* Sets the base font size using the clamp() function:
- Minimum size: 1rem (16px)
- Preferred size: 2vw (2% of the viewport width)
- Maximum size: 1.2rem (19.2px)
*/
fontSize: {
base: "clamp(1rem, 2vw, 1.2rem)",
h1: "clamp(3rem, 5vw, 4.5rem)",
h2: "clamp(1.75rem, 4vw, 2.25rem)",
h3: "clamp(1.5rem, 3.5vw, 2rem)",
paragraph: "clamp(1.5rem, 2.5vw, 1.5rem)"
}
}
},
plugins: []
}
export default config