-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
78 lines (75 loc) · 2.19 KB
/
Copy pathtailwind.config.ts
File metadata and controls
78 lines (75 loc) · 2.19 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
import type { Config } from "tailwindcss";
// Colors are CSS variables (space-separated RGB) so the same classes work in
// both light and dark themes. Values are defined in globals.css.
const v = (name: string) => `rgb(var(--${name}) / <alpha-value>)`;
const config: Config = {
content: ["./app/**/*.{ts,tsx}", "./components/**/*.{ts,tsx}"],
theme: {
extend: {
colors: {
bg: v("bg"),
surface: v("surface"),
"surface-2": v("surface-2"),
border: v("border"),
"border-soft": v("border-soft"),
muted: v("muted"),
text: v("text"),
accent: v("accent"),
"accent-2": v("accent-2"),
good: v("good"),
bad: v("bad"),
warn: v("warn"),
},
fontFamily: {
sans: [
"var(--font-sans)",
"ui-sans-serif",
"system-ui",
"-apple-system",
"Segoe UI",
"sans-serif",
],
// Tracecase leans into its terminal identity: display = mono.
display: [
"var(--font-mono)",
"ui-monospace",
"SFMono-Regular",
"Menlo",
"monospace",
],
mono: [
"var(--font-mono)",
"ui-monospace",
"SFMono-Regular",
"Menlo",
"monospace",
],
},
boxShadow: {
card: "0 1px 0 0 rgb(255 255 255 / 0.04) inset, 0 1px 2px rgb(0 0 0 / 0.2), 0 12px 40px -16px rgb(0 0 0 / 0.55)",
glow: "0 0 0 1px rgb(var(--accent) / 0.3), 0 12px 40px -10px rgb(var(--accent) / 0.4)",
lift: "0 1px 0 0 rgb(255 255 255 / 0.05) inset, 0 18px 50px -20px rgb(0 0 0 / 0.7)",
},
borderRadius: {
"2xl": "1.1rem",
"3xl": "1.5rem",
},
keyframes: {
"fade-up": {
"0%": { opacity: "0", transform: "translateY(8px)" },
"100%": { opacity: "1", transform: "translateY(0)" },
},
"fade-in": {
"0%": { opacity: "0" },
"100%": { opacity: "1" },
},
},
animation: {
"fade-up": "fade-up 0.5s cubic-bezier(0.22,1,0.36,1) both",
"fade-in": "fade-in 0.6s ease both",
},
},
},
plugins: [],
};
export default config;