-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
211 lines (189 loc) · 7.43 KB
/
tailwind.config.ts
File metadata and controls
211 lines (189 loc) · 7.43 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
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
200
201
202
203
204
205
206
207
208
209
210
211
import type { Config } from "tailwindcss";
const config: Config = {
content: [
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
"./app/**/*.{js,ts,jsx,tsx,mdx}",
],
darkMode: 'class',
theme: {
extend: {
colors: {
cipher: {
// ===== THEME-AWARE BACKGROUNDS (use CSS variables) =====
bg: 'var(--color-bg)',
elevated: 'var(--color-elevated)',
surface: 'var(--color-surface)',
hover: 'var(--color-hover)',
active: 'var(--color-active)',
border: 'var(--color-border)',
// ===== STATIC COLORS (for specific use cases) =====
'bg-dark': '#08090F', // Force dark background
'surface-dark': '#14161F', // Force dark surface
'bg-light': '#FAFBFC', // Force light background
'surface-light': '#FFFFFF', // Force light surface
'border-light': '#E2E8F0', // Force light border
// ===== BRAND — theme-aware via RGB channel CSS variables =====
cyan: 'rgb(var(--color-cyan-rgb) / <alpha-value>)',
'cyan-bright': '#00D4FF',
'cyan-glow': '#00E5FF',
'cyan-muted': '#5EBBCE',
green: 'rgb(var(--color-green-rgb) / <alpha-value>)',
'green-bright': '#00E676',
purple: 'rgb(var(--color-purple-rgb) / <alpha-value>)',
'purple-bright': '#A78BFA',
'purple-glow': '#C4B5FD',
yellow: 'rgb(var(--color-yellow-rgb) / <alpha-value>)',
'yellow-bright': '#F4B728',
'yellow-glow': '#FFD060',
'yellow-muted': '#C9A035',
orange: 'rgb(var(--color-orange-rgb) / <alpha-value>)',
'orange-bright': '#FF6B35',
// ===== TEXT COLORS =====
text: {
primary: '#E5E7EB',
secondary: '#9CA3AF',
muted: '#6B7280',
},
},
glass: {
2: 'var(--glass-2)',
3: 'var(--glass-3)',
4: 'var(--glass-4)',
6: 'var(--glass-6)',
8: 'var(--glass-8)',
12: 'var(--glass-12)',
18: 'var(--glass-18)',
},
},
// ===== TYPOGRAPHY =====
fontFamily: {
// Geist as primary, with fallbacks
sans: ['var(--font-geist-sans)', 'Geist', 'SF Pro Display', 'system-ui', '-apple-system', 'sans-serif'],
// Berkeley Mono preferred, JetBrains as fallback
mono: ['var(--font-geist-mono)', 'Berkeley Mono', 'JetBrains Mono', 'Fira Code', 'monospace'],
// Display font for headlines
display: ['var(--font-geist-sans)', 'Geist', 'SF Pro Display', 'system-ui', 'sans-serif'],
},
// ===== TYPE SCALE (Major Third - 1.250) =====
fontSize: {
'xs': ['0.75rem', { lineHeight: '1.5' }], // 12px
'sm': ['0.875rem', { lineHeight: '1.5' }], // 14px
'base': ['1rem', { lineHeight: '1.5' }], // 16px
'lg': ['1.25rem', { lineHeight: '1.4' }], // 20px
'xl': ['1.5rem', { lineHeight: '1.3' }], // 24px
'2xl': ['1.875rem', { lineHeight: '1.25' }], // 30px
'3xl': ['2.375rem', { lineHeight: '1.2' }], // 38px
'4xl': ['3rem', { lineHeight: '1.1' }], // 48px
'5xl': ['3.75rem', { lineHeight: '1.05' }], // 60px
},
// ===== LETTER SPACING =====
letterSpacing: {
'tighter': '-0.02em',
'tight': '-0.01em',
'normal': '0',
'wide': '0.02em',
'wider': '0.05em',
},
// ===== BORDER RADIUS (Consistent hierarchy) =====
borderRadius: {
'sm': '6px', // Badges, tags
'DEFAULT': '8px', // Default
'md': '10px', // Buttons, inputs
'lg': '16px', // Cards
'xl': '20px', // Featured cards
'2xl': '24px', // Modals, large containers
},
// ===== SHADOWS (Apple-style depth) =====
boxShadow: {
// Card shadows
'card': '0 2px 4px rgba(0, 0, 0, 0.04), 0 8px 16px rgba(0, 0, 0, 0.06)',
'card-hover': '0 4px 8px rgba(0, 0, 0, 0.06), 0 16px 32px rgba(0, 0, 0, 0.1)',
'card-light': '0 1px 3px rgba(0, 0, 0, 0.02), 0 4px 12px rgba(0, 0, 0, 0.04)',
'card-light-hover': '0 2px 6px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06)',
// Elevation levels
'sm': '0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.04)',
'lg': '0 4px 8px rgba(0, 0, 0, 0.04), 0 16px 32px rgba(0, 0, 0, 0.08)',
'xl': '0 8px 16px rgba(0, 0, 0, 0.06), 0 32px 64px rgba(0, 0, 0, 0.12)',
// Glow effects
'glow': '0 0 20px rgba(0, 212, 255, 0.15)',
'glow-lg': '0 0 40px rgba(0, 212, 255, 0.2)',
'glow-purple': '0 0 20px rgba(167, 139, 250, 0.15)',
},
// ===== SPACING (Semantic additions) =====
spacing: {
'card-compact': '16px',
'card-standard': '24px',
'card-featured': '32px',
'section-sm': '48px',
'section-md': '64px',
'section-lg': '80px',
},
// ===== BACKGROUND IMAGES =====
backgroundImage: {
'grid-pattern': "linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px)",
},
// ===== ANIMATIONS =====
animation: {
'fade-in': 'fadeIn 0.5s ease-out',
'fade-in-up': 'fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards',
'slide-up': 'slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1)',
'scale-in': 'scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards',
'glow': 'glow 2s ease-in-out infinite',
'shimmer': 'shimmer 1.5s ease-in-out infinite',
'scan': 'scan 4s ease-in-out infinite',
'slide-in-right': 'slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards',
},
keyframes: {
fadeIn: {
'0%': { opacity: '0' },
'100%': { opacity: '1' },
},
fadeInUp: {
'0%': { opacity: '0', transform: 'translateY(12px)' },
'100%': { opacity: '1', transform: 'translateY(0)' },
},
slideUp: {
'0%': { transform: 'translateY(20px)', opacity: '0' },
'100%': { transform: 'translateY(0)', opacity: '1' },
},
scaleIn: {
'0%': { opacity: '0', transform: 'scale(0.95)' },
'100%': { opacity: '1', transform: 'scale(1)' },
},
glow: {
'0%, 100%': { boxShadow: '0 0 20px rgba(0, 212, 255, 0.3)' },
'50%': { boxShadow: '0 0 30px rgba(0, 212, 255, 0.5)' },
},
shimmer: {
'0%': { backgroundPosition: '-200% 0' },
'100%': { backgroundPosition: '200% 0' },
},
scan: {
'0%': { top: '0%', opacity: '0' },
'10%': { opacity: '0.5' },
'90%': { opacity: '0.5' },
'100%': { top: '100%', opacity: '0' },
},
slideInRight: {
'0%': { transform: 'translateX(100%)', opacity: '0' },
'100%': { transform: 'translateX(0)', opacity: '1' },
},
},
// ===== TRANSITION TIMING =====
transitionTimingFunction: {
'out-expo': 'cubic-bezier(0.16, 1, 0.3, 1)',
'in-out-circ': 'cubic-bezier(0.85, 0, 0.15, 1)',
'spring': 'cubic-bezier(0.34, 1.56, 0.64, 1)',
},
// ===== TRANSITION DURATION =====
transitionDuration: {
'fast': '150ms',
'normal': '250ms',
'slow': '400ms',
},
},
},
plugins: [],
};
export default config;