-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp_theme.dart
More file actions
263 lines (252 loc) · 8.24 KB
/
Copy pathapp_theme.dart
File metadata and controls
263 lines (252 loc) · 8.24 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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
import 'package:flutter/material.dart';
class AppTheme {
// Dark Mode Theme
static ThemeData darkTheme = ThemeData(
useMaterial3: true,
brightness: Brightness.dark,
fontFamily: 'FiraCodeNerd',
// Color Scheme
colorScheme: ColorScheme.dark(
brightness: Brightness.dark,
primary: const Color(0xFF1DB854), // Vibrant green
onPrimary: const Color(0xFF0A0E27),
primaryContainer: const Color(0xFF1DB854).withOpacity(0.2),
onPrimaryContainer: const Color(0xFF1DB854),
secondary: const Color(0xFF7C8FEE), // Soft blue
onSecondary: const Color(0xFF0A0E27),
secondaryContainer: const Color(0xFF7C8FEE).withOpacity(0.2),
onSecondaryContainer: const Color(0xFF7C8FEE),
tertiary: const Color(0xFFFFA726), // Warm orange
onTertiary: const Color(0xFF0A0E27),
tertiaryContainer: const Color(0xFFFFA726).withOpacity(0.2),
onTertiaryContainer: const Color(0xFFFFA726),
surface: const Color(0xFF0F1419),
onSurface: const Color(0xFFE1E1E6),
surfaceContainerLowest: const Color(0xFF0A0E27),
surfaceContainerLow: const Color(0xFF1A1F3A),
surfaceContainer: const Color(0xFF252A45),
surfaceContainerHigh: const Color(0xFF2F3554),
surfaceContainerHighest: const Color(0xFF3A405F),
outline: const Color(0xFF4A5078),
outlineVariant: const Color(0xFF3A405F),
error: const Color(0xFFEF5350),
onError: const Color(0xFF0A0E27),
errorContainer: const Color(0xFFEF5350).withOpacity(0.2),
onErrorContainer: const Color(0xFFEF5350),
),
// AppBar Theme
appBarTheme: AppBarTheme(
backgroundColor: const Color(0xFF0F1419),
elevation: 0,
centerTitle: false,
titleTextStyle: const TextStyle(
fontFamily: 'FiraCodeNerd',
fontSize: 24,
fontWeight: FontWeight.w600,
color: Color(0xFFE1E1E6),
),
),
// Text Themes
textTheme: const TextTheme(
displayLarge: TextStyle(
fontSize: 57,
fontWeight: FontWeight.w700,
color: Color(0xFFE1E1E6),
),
displayMedium: TextStyle(
fontSize: 45,
fontWeight: FontWeight.w600,
color: Color(0xFFE1E1E6),
),
displaySmall: TextStyle(
fontSize: 36,
fontWeight: FontWeight.w600,
color: Color(0xFFE1E1E6),
),
headlineLarge: TextStyle(
fontSize: 32,
fontWeight: FontWeight.w700,
color: Color(0xFFE1E1E6),
),
headlineMedium: TextStyle(
fontSize: 28,
fontWeight: FontWeight.w600,
color: Color(0xFFE1E1E6),
),
headlineSmall: TextStyle(
fontSize: 24,
fontWeight: FontWeight.w600,
color: Color(0xFFE1E1E6),
),
titleLarge: TextStyle(
fontSize: 22,
fontWeight: FontWeight.w600,
color: Color(0xFFE1E1E6),
),
titleMedium: TextStyle(
fontSize: 16,
fontWeight: FontWeight.w600,
color: Color(0xFFE1E1E6),
),
titleSmall: TextStyle(
fontSize: 14,
fontWeight: FontWeight.w500,
color: Color(0xFFE1E1E6),
),
bodyLarge: TextStyle(
fontSize: 16,
fontWeight: FontWeight.w400,
color: Color(0xFFE1E1E6),
),
bodyMedium: TextStyle(
fontSize: 14,
fontWeight: FontWeight.w400,
color: Color(0xFFB8B8BD),
),
bodySmall: TextStyle(
fontSize: 12,
fontWeight: FontWeight.w400,
color: Color(0xFF8A8A8F),
),
labelLarge: TextStyle(
fontSize: 14,
fontWeight: FontWeight.w600,
color: Color(0xFFE1E1E6),
),
labelMedium: TextStyle(
fontSize: 12,
fontWeight: FontWeight.w500,
color: Color(0xFFB8B8BD),
),
labelSmall: TextStyle(
fontSize: 11,
fontWeight: FontWeight.w400,
color: Color(0xFF8A8A8F),
),
),
// Input Decoration Theme
inputDecorationTheme: InputDecorationTheme(
filled: true,
fillColor: const Color(0xFF1A1F3A),
contentPadding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(12),
borderSide: const BorderSide(color: Color(0xFF3A405F), width: 1),
),
enabledBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(12),
borderSide: const BorderSide(color: Color(0xFF3A405F), width: 1),
),
focusedBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(12),
borderSide: const BorderSide(color: Color(0xFF1DB854), width: 2),
),
errorBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(12),
borderSide: const BorderSide(color: Color(0xFFEF5350), width: 1),
),
focusedErrorBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(12),
borderSide: const BorderSide(color: Color(0xFFEF5350), width: 2),
),
hintStyle: const TextStyle(color: Color(0xFF8A8A8F), fontSize: 14),
labelStyle: const TextStyle(color: Color(0xFFB8B8BD), fontSize: 14),
),
// Button Themes
elevatedButtonTheme: ElevatedButtonThemeData(
style: ElevatedButton.styleFrom(
backgroundColor: const Color(0xFF1DB854),
foregroundColor: const Color(0xFF0A0E27),
elevation: 0,
padding: const EdgeInsets.symmetric(horizontal: 24, vertical: 12),
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),
textStyle: const TextStyle(
fontSize: 14,
fontWeight: FontWeight.w600,
fontFamily: 'FiraCodeNerd',
),
),
),
outlinedButtonTheme: OutlinedButtonThemeData(
style: OutlinedButton.styleFrom(
foregroundColor: const Color(0xFF1DB854),
side: const BorderSide(color: Color(0xFF3A405F), width: 1),
padding: const EdgeInsets.symmetric(horizontal: 24, vertical: 12),
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),
textStyle: const TextStyle(
fontSize: 14,
fontWeight: FontWeight.w600,
fontFamily: 'FiraCodeNerd',
),
),
),
textButtonTheme: TextButtonThemeData(
style: TextButton.styleFrom(
foregroundColor: const Color(0xFF1DB854),
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
textStyle: const TextStyle(
fontSize: 14,
fontWeight: FontWeight.w600,
fontFamily: 'FiraCodeNerd',
),
),
),
// Chip Theme
chipTheme: ChipThemeData(
backgroundColor: const Color(0xFF1A1F3A),
selectedColor: const Color(0xFF1DB854),
disabledColor: const Color(0xFF3A405F),
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
labelStyle: const TextStyle(
color: Color(0xFFE1E1E6),
fontSize: 14,
fontWeight: FontWeight.w500,
),
secondaryLabelStyle: const TextStyle(
color: Color(0xFF0A0E27),
fontSize: 14,
fontWeight: FontWeight.w500,
),
brightness: Brightness.dark,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8),
side: const BorderSide(color: Color(0xFF3A405F)),
),
),
// Card Theme
cardTheme: CardThemeData(
color: const Color(0xFF1A1F3A),
elevation: 0,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(16),
side: const BorderSide(color: Color(0xFF3A405F), width: 1),
),
margin: const EdgeInsets.all(0),
),
// Divider Theme
dividerTheme: const DividerThemeData(
color: Color(0xFF3A405F),
thickness: 1,
space: 16,
),
// Tab Bar Theme
tabBarTheme: const TabBarThemeData(
labelColor: Color(0xFF1DB854),
unselectedLabelColor: Color(0xFF8A8A8F),
indicatorColor: Color(0xFF1DB854),
indicatorSize: TabBarIndicatorSize.tab,
labelStyle: TextStyle(
fontSize: 14,
fontWeight: FontWeight.w600,
fontFamily: 'FiraCodeNerd',
),
unselectedLabelStyle: TextStyle(
fontSize: 14,
fontWeight: FontWeight.w500,
fontFamily: 'FiraCodeNerd',
),
),
// Scaffold Background
scaffoldBackgroundColor: const Color(0xFF0F1419),
);
}