-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
149 lines (149 loc) · 4.66 KB
/
Copy pathtailwind.config.js
File metadata and controls
149 lines (149 loc) · 4.66 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
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
/** @type {import('tailwindcss').Config} */
export default {
darkMode: ["class"],
content: [
"./entrypoints/**/*.{html,ts,tsx}",
"./components/**/*.{html,ts,tsx}",
],
theme: {
extend: {
fontFamily: {
sans: [
"-apple-system",
"BlinkMacSystemFont",
'"SF Pro Text"',
'"SF Pro"',
'"Inter"',
'"Helvetica Neue"',
"Arial",
'"PingFang SC"',
'"Hiragino Sans GB"',
'"Microsoft YaHei"',
"sans-serif",
],
display: [
"-apple-system",
"BlinkMacSystemFont",
'"SF Pro Display"',
'"SF Pro"',
'"Inter"',
'"Helvetica Neue"',
"Arial",
"sans-serif",
],
mono: [
'"SF Mono"',
'"JetBrains Mono"',
"ui-monospace",
'"Menlo"',
"monospace",
],
},
colors: {
border: "hsl(var(--border))",
input: "hsl(var(--input))",
ring: "hsl(var(--ring))",
background: "hsl(var(--background))",
foreground: "hsl(var(--foreground))",
primary: {
DEFAULT: "hsl(var(--primary))",
foreground: "hsl(var(--primary-foreground))",
},
secondary: {
DEFAULT: "hsl(var(--secondary))",
foreground: "hsl(var(--secondary-foreground))",
},
destructive: {
DEFAULT: "hsl(var(--destructive))",
foreground: "hsl(var(--destructive-foreground))",
},
muted: {
DEFAULT: "hsl(var(--muted))",
foreground: "hsl(var(--muted-foreground))",
},
accent: {
DEFAULT: "hsl(var(--accent))",
foreground: "hsl(var(--accent-foreground))",
},
popover: {
DEFAULT: "hsl(var(--popover))",
foreground: "hsl(var(--popover-foreground))",
},
card: {
DEFAULT: "hsl(var(--card))",
foreground: "hsl(var(--card-foreground))",
},
success: "hsl(var(--success))",
warning: "hsl(var(--warning))",
},
borderRadius: {
xl: `calc(var(--radius) + 6px)`,
lg: `var(--radius)`,
md: `calc(var(--radius) - 2px)`,
sm: "calc(var(--radius) - 4px)",
},
boxShadow: {
// Apple soft layered shadows
"apple-xs":
"0 1px 2px hsl(var(--shadow-color) / 0.04), 0 1px 1px hsl(var(--shadow-color) / 0.03)",
"apple-sm":
"0 1px 2px hsl(var(--shadow-color) / 0.05), 0 2px 6px hsl(var(--shadow-color) / 0.05)",
"apple-md":
"0 1px 2px hsl(var(--shadow-color) / 0.06), 0 4px 12px hsl(var(--shadow-color) / 0.08)",
"apple-lg":
"0 4px 8px hsl(var(--shadow-color) / 0.06), 0 16px 40px hsl(var(--shadow-color) / 0.12)",
"apple-xl":
"0 10px 24px hsl(var(--shadow-color) / 0.08), 0 24px 56px hsl(var(--shadow-color) / 0.16)",
// Inset hairline above backdrop-blur sheets
"apple-inset":
"inset 0 0 0 1px hsl(var(--border) / 0.7)",
},
keyframes: {
// Spring-like fade + lift (used for cards entering)
"spring-in": {
"0%": { opacity: 0, transform: "translateY(8px) scale(0.985)" },
"60%": { opacity: 1, transform: "translateY(-2px) scale(1.005)" },
"100%": { opacity: 1, transform: "translateY(0) scale(1)" },
},
"fade-in": {
"0%": { opacity: 0 },
"100%": { opacity: 1 },
},
"scale-in": {
"0%": { opacity: 0, transform: "scale(0.96)" },
"100%": { opacity: 1, transform: "scale(1)" },
},
// Streaming text blink (used while AI explanation is loading)
"ai-pulse": {
"0%,100%": { opacity: 0.35 },
"50%": { opacity: 1 },
},
spark: {
"0%": { color: "#fff" },
"100%": { color: "gray" },
},
scaleUp: {
"0%": { transform: "scale(0.4)" },
"100%": { transform: "scale(1)" },
},
fadeIn: {
"0%": { opacity: 0 },
"100%": { opacity: 1 },
},
},
animation: {
"spring-in": "spring-in 320ms cubic-bezier(.2,.8,.2,1)",
"fade-in": "fade-in 200ms ease-out",
"scale-in": "scale-in 180ms cubic-bezier(.2,.8,.2,1)",
"ai-pulse": "ai-pulse 1.4s ease-in-out infinite",
scaleUp: "scaleUp 1s ease-in-out",
fadeIn: "fadeIn 1s ease-in-out",
spark: "spark 1s ease-in-out infinite",
},
transitionTimingFunction: {
spring: "cubic-bezier(.2,.8,.2,1)",
},
},
},
plugins: [require("tailwindcss-animate"), require("@tailwindcss/typography")],
};