-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathtailwind.config.ts
199 lines (196 loc) · 7.22 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
import type { Config } from "tailwindcss";
import typography from "@tailwindcss/typography";
import radix from "tailwindcss-radix";
const config: Config = {
content: ["./src/**/*.{js,ts,jsx,tsx,mdx}"],
darkMode: "class",
theme: {
fontFamily: {
sans: "var(--font-sans)",
mono: "var(--font-mono)",
},
colors: {
// Dynamic colors
black: "#000",
white: "#fff",
transparent: "transparent",
accent: {
50: "rgb(var(--accent-rgb-50) / <alpha-value>)",
100: "rgb(var(--accent-rgb-100) / <alpha-value>)",
200: "rgb(var(--accent-rgb-200) / <alpha-value>)",
300: "rgb(var(--accent-rgb-300) / <alpha-value>)",
400: "rgb(var(--accent-rgb-400) / <alpha-value>)",
500: "rgb(var(--accent-rgb-500) / <alpha-value>)",
600: "rgb(var(--accent-rgb-600) / <alpha-value>)",
700: "rgb(var(--accent-rgb-700) / <alpha-value>)",
800: "rgb(var(--accent-rgb-800) / <alpha-value>)",
900: "rgb(var(--accent-rgb-900) / <alpha-value>)",
950: "rgb(var(--accent-rgb-950) / <alpha-value>)",
},
grayscale: {
50: "rgb(var(--grayscale-rgb-50) / <alpha-value>)",
100: "rgb(var(--grayscale-rgb-100) / <alpha-value>)",
200: "rgb(var(--grayscale-rgb-200) / <alpha-value>)",
300: "rgb(var(--grayscale-rgb-300) / <alpha-value>)",
400: "rgb(var(--grayscale-rgb-400) / <alpha-value>)",
500: "rgb(var(--grayscale-rgb-500) / <alpha-value>)",
600: "rgb(var(--grayscale-rgb-600) / <alpha-value>)",
700: "rgb(var(--grayscale-rgb-700) / <alpha-value>)",
800: "rgb(var(--grayscale-rgb-800) / <alpha-value>)",
900: "rgb(var(--grayscale-rgb-900) / <alpha-value>)",
950: "rgb(var(--grayscale-rgb-950) / <alpha-value>)",
},
textOnAccent: {
primary: "var(--textOnAccent, var(--grayscale-50))",
},
dark: {
text: {
primary: "rgb(var(--grayscale-rgb-50) / <alpha-value>)",
secondary: "rgb(var(--grayscale-rgb-400) / <alpha-value>)",
tertiary: "rgb(var(--grayscale-rgb-500) / <alpha-value>)",
},
surface: {
primary: "rgb(var(--grayscale-rgb-950) / <alpha-value>)",
secondary: "rgb(var(--grayscale-rgb-900) / <alpha-value>)",
tertiary: "rgb(var(--grayscale-rgb-800) / <alpha-value>)",
},
border: {
DEFAULT: "rgb(var(--grayscale-rgb-800) / <alpha-value>)",
},
control: {
DEFAULT: "rgb(var(--accent-rgb-500) / <alpha-value>)",
},
},
text: {
primary: "rgb(var(--grayscale-rgb-950) / <alpha-value>)",
secondary: "rgb(var(--grayscale-rgb-600) / <alpha-value>)",
tertiary: "rgb(var(--grayscale-rgb-500) / <alpha-value>)",
},
surface: {
primary: "rgb(var(--grayscale-rgb-50) / <alpha-value>)",
secondary: "rgb(var(--grayscale-rgb-100) / <alpha-value>)",
tertiary: "rgb(var(--grayscale-rgb-200) / <alpha-value>)",
},
border: {
DEFAULT: "rgb(var(--grayscale-rgb-300) / <alpha-value>)",
},
control: {
DEFAULT: "rgb(var(--accent-rgb-500) / <alpha-value>)",
},
error: {
DEFAULT: "#FF453A",
},
success: {
DEFAULT: "#14C9A2",
},
},
fontSize: {
"2xs": ["11px", { lineHeight: "1.3", letterSpacing: "-0.3px", fontWeight: "300" }],
xs: ["0.75rem", { lineHeight: "1rem", letterSpacing: "-0.36px", fontWeight: "300" }],
sm: ["0.875rem", { lineHeight: "1.25rem", letterSpacing: "-0.42px" }],
base: ["1rem", { lineHeight: "1.6", letterSpacing: "-0.48px" }],
lg: ["1.125rem", { lineHeight: "1.75rem", letterSpacing: "-0.72px" }],
xl: ["1.25rem", { lineHeight: "1.75rem", letterSpacing: "-0.8px" }],
"2xl": ["1.5rem", { lineHeight: "2rem", letterSpacing: "-1.04px" }],
"3xl": ["2rem", { lineHeight: "2.25rem", letterSpacing: "-1.2px" }],
"4xl": ["2.25rem", { lineHeight: "2.5rem", letterSpacing: "-1.44px" }],
"5xl": ["3rem", { letterSpacing: "-1.6px" }],
"6xl": ["3.75rem", { letterSpacing: "-1.8px" }],
"7xl": ["4.5rem", { letterSpacing: "-2px" }],
"8xl": ["6rem", { letterSpacing: "-2.4px" }],
"9xl": ["8rem", { letterSpacing: "-3.2px" }],
},
extend: {
maxWidth: {
prose: "75ch",
},
gridTemplateColumns: {
header: "1fr max-content 1fr",
},
boxShadow: {
neon: "0 0 2px 2px var(--tw-shadow), 0 0 6px 3px var(--tw-ring-offset-shadow), 0 0 8px 4px var(--tw-ring-shadow)",
},
zIndex: {
modal: "9999",
},
keyframes: {
enterFromRight: {
from: { opacity: "0", transform: "translateX(200px)" },
to: { opacity: "1", transform: "translateX(0)" },
},
enterFromLeft: {
from: { opacity: "0", transform: "translateX(-200px)" },
to: { opacity: "1", transform: "translateX(0)" },
},
exitToRight: {
from: { opacity: "1", transform: "translateX(0)" },
to: { opacity: "0", transform: "translateX(200px)" },
},
exitToLeft: {
from: { opacity: "1", transform: "translateX(0)" },
to: { opacity: "0", transform: "translateX(-200px)" },
},
scaleIn: {
from: { opacity: "0", transform: "rotateX(-10deg) scale(0.9)" },
to: { opacity: "1", transform: "rotateX(0deg) scale(1)" },
},
scaleOut: {
from: { opacity: "1", transform: "rotateX(0deg) scale(1)" },
to: { opacity: "0", transform: "rotateX(-10deg) scale(0.95)" },
},
fadeIn: {
from: { opacity: "0" },
to: { opacity: "1" },
},
fadeOut: {
from: { opacity: "1" },
to: { opacity: "0" },
},
slideDown: {
from: { height: "0px" },
to: { height: "var(--radix-accordion-content-height)" },
},
slideUp: {
from: { height: "var(--radix-accordion-content-height)" },
to: { height: "0px" },
},
pulse: {
"50%": {
opacity: "0.5",
},
},
},
letterSpacing: {
tighter: "-0.58px",
tight: "-0.48px",
},
typography: {
DEFAULT: {
css: {
p: {
letterSpacing: "-0.48px",
},
code: {
letterSpacing: "normal",
},
},
},
},
},
animation: {
slideDown: "slideDown 300ms cubic-bezier(0.87, 0, 0.13, 1)",
slideUp: "slideUp 300ms cubic-bezier(0.87, 0, 0.13, 1)",
scaleIn: "scaleIn 200ms ease",
scaleOut: "scaleOut 200ms ease",
fadeIn: "fadeIn 200ms ease",
fadeOut: "fadeOut 200ms ease",
enterFromLeft: "enterFromLeft 250ms ease",
enterFromRight: "enterFromRight 250ms ease",
exitToLeft: "exitToLeft 250ms ease",
exitToRight: "exitToRight 250ms ease",
pulse: "pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",
},
},
plugins: [typography, radix],
};
export default config;