-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy paththeme.ts
More file actions
155 lines (137 loc) · 2.71 KB
/
theme.ts
File metadata and controls
155 lines (137 loc) · 2.71 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
// theme.ts - Centralized theme configuration
// Cyberpunk meets DOS terminal aesthetic
export const colors = {
// Backgrounds
background: '#070707',
surface: '#1C2526',
surfaceLight: '#474747',
surfaceElevated: '#2A3335',
// Primary (Warthog Gold)
primary: '#FFC107',
primaryDark: '#FFA000',
primaryLight: '#FFECB3',
// Semantic colors
success: '#4CAF50',
error: '#FF4444',
warning: '#FF9800',
info: '#2196F3',
// Text
textPrimary: '#FFFFFF',
textSecondary: '#FFECB3',
textMuted: '#888888',
// Overlays
overlay: 'rgba(0, 0, 0, 0.95)',
overlayLight: 'rgba(0, 0, 0, 0.7)',
// Borders
border: '#FFC107',
borderLight: '#474747',
};
export const spacing = {
xs: 4,
sm: 8,
md: 12,
lg: 16,
xl: 20,
xxl: 24,
xxxl: 32,
};
export const borderRadius = {
sm: 8,
md: 12,
lg: 16,
xl: 20,
round: 999,
};
export const typography = {
// Font sizes
h1: 28,
h2: 24,
h3: 20,
h4: 18,
body: 16,
bodySm: 14,
caption: 12,
tiny: 11,
// Font weights
regular: '400' as const,
medium: '500' as const,
semiBold: '600' as const,
bold: '700' as const,
// Font families (for addresses/hashes)
fontFamily: {
regular: 'System',
mono: 'Courier New',
},
};
export const shadows = {
small: {
shadowColor: '#000',
shadowOffset: { width: 0, height: 2 },
shadowOpacity: 0.25,
shadowRadius: 3.84,
elevation: 2,
},
medium: {
shadowColor: '#000',
shadowOffset: { width: 0, height: 4 },
shadowOpacity: 0.3,
shadowRadius: 4.65,
elevation: 4,
},
large: {
shadowColor: '#000',
shadowOffset: { width: 0, height: 6 },
shadowOpacity: 0.37,
shadowRadius: 7.49,
elevation: 8,
},
glow: {
shadowColor: '#FFC107',
shadowOffset: { width: 0, height: 0 },
shadowOpacity: 0.5,
shadowRadius: 8,
elevation: 5,
},
};
export const animation = {
fast: 150,
normal: 300,
slow: 500,
};
// Pre-built component styles
export const presets = {
card: {
backgroundColor: colors.surface,
borderRadius: borderRadius.md,
padding: spacing.lg,
borderWidth: 2,
borderColor: colors.border,
},
cardGlass: {
backgroundColor: 'rgba(28, 37, 38, 0.8)',
borderRadius: borderRadius.md,
padding: spacing.lg,
borderWidth: 2,
borderColor: colors.border,
backdropFilter: 'blur(10px)',
},
input: {
backgroundColor: colors.surface,
color: colors.textPrimary,
padding: spacing.lg,
borderRadius: borderRadius.sm,
borderWidth: 2,
borderColor: colors.border,
fontSize: typography.body,
},
};
export const theme = {
colors,
spacing,
borderRadius,
typography,
shadows,
animation,
presets,
};
export type Theme = typeof theme;