Repository navigation
Expand file tree
/
Copy pathtailwind.config.js
More file actions
122 lines (122 loc) · 3.69 KB
/
Copy pathtailwind.config.js
File metadata and controls
122 lines (122 loc) · 3.69 KB
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
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: ["class"],
content: [
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
container: {
center: true,
padding: {
DEFAULT: "1rem",
sm: "1.5rem",
lg: "2rem",
xl: "3rem",
"2xl": "4rem",
},
screens: {
"2xl": "1400px",
},
},
extend: {
colors: {
border: "var(--color-border)", // slate-200
input: "var(--color-input)", // slate-200
ring: "var(--color-ring)", // blue-600
background: "var(--color-background)", // slate-50
foreground: "var(--color-foreground)", // slate-800
primary: {
DEFAULT: "var(--color-primary)", // blue-600
foreground: "var(--color-primary-foreground)", // white
},
secondary: {
DEFAULT: "var(--color-secondary)", // violet-600
foreground: "var(--color-secondary-foreground)", // white
},
accent: {
DEFAULT: "var(--color-accent)", // amber-500
foreground: "var(--color-accent-foreground)", // gray-800
},
destructive: {
DEFAULT: "var(--color-destructive)", // red-600
foreground: "var(--color-destructive-foreground)", // white
},
success: {
DEFAULT: "var(--color-success)", // emerald-600
foreground: "var(--color-success-foreground)", // white
},
warning: {
DEFAULT: "var(--color-warning)", // amber-600
foreground: "var(--color-warning-foreground)", // white
},
error: {
DEFAULT: "var(--color-error)", // red-600
foreground: "var(--color-error-foreground)", // white
},
muted: {
DEFAULT: "var(--color-muted)", // slate-100
foreground: "var(--color-muted-foreground)", // slate-500
},
card: {
DEFAULT: "var(--color-card)", // white
foreground: "var(--color-card-foreground)", // slate-700
},
popover: {
DEFAULT: "var(--color-popover)", // white
foreground: "var(--color-popover-foreground)", // slate-700
},
},
borderRadius: {
sm: "var(--radius-sm)",
md: "var(--radius-md)",
lg: "var(--radius-lg)",
xl: "var(--radius-xl)",
},
fontFamily: {
heading: ["Outfit", "sans-serif"],
body: ["Source Sans 3", "sans-serif"],
caption: ["Inter", "sans-serif"],
data: ["JetBrains Mono", "monospace"],
},
spacing: {
18: "4.5rem",
72: "18rem",
84: "21rem",
96: "24rem",
144: "36rem",
},
maxWidth: {
"8xl": "88rem",
"9xl": "96rem",
},
transitionDuration: {
250: "250ms",
},
transitionTimingFunction: {
smooth: "cubic-bezier(0.4, 0, 0.2, 1)",
},
keyframes: {
"pulse-subtle": {
"0%, 100%": { opacity: "1" },
"50%": { opacity: "0.8" },
},
"slide-up": {
"0%": { transform: "translateY(10px)", opacity: "0" },
"100%": { transform: "translateY(0)", opacity: "1" },
},
"slide-down": {
"0%": { transform: "translateY(-10px)", opacity: "0" },
"100%": { transform: "translateY(0)", opacity: "1" },
},
},
animation: {
"pulse-subtle": "pulse-subtle 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",
"slide-up": "slide-up 250ms cubic-bezier(0.4, 0, 0.2, 1)",
"slide-down": "slide-down 250ms cubic-bezier(0.4, 0, 0.2, 1)",
},
},
},
plugins: [],
};