Line data Source code
1 : import 'package:freezed_annotation/freezed_annotation.dart';
2 :
3 : import '../../types/typedefs.dart';
4 :
5 : part 'theme_colors.freezed.dart';
6 : part 'theme_colors.g.dart';
7 :
8 : @freezed
9 : class ThemeColors with _$ThemeColors {
10 : factory ThemeColors({
11 : required int primary,
12 : required int secondary,
13 : required int error,
14 : }) = _ThemeColors;
15 :
16 2 : factory ThemeColors.fromJson(JsonMap json) => _$ThemeColorsFromJson(json);
17 :
18 : // colors
19 :
20 : static const int adventuresInBlue = 0xFF2196F3;
21 :
22 : static const int flutterDarkBlue = 0xFF04599C;
23 : static const int flutterMiddleBlue = 0xFF30B8F6;
24 : static const int flutterLightBlue = 0xFF5EC8F8;
25 :
26 : static const int firebaseYellow = 0xFFFFCB2C;
27 :
28 : static const int primaryGrey = 0xFFAAAAAA;
29 : static const int secondaryGrey = 0xFF999999;
30 :
31 : static const int errorRed = 0xFF990000;
32 :
33 60 : static final standard = ThemeColors(
34 : primary: adventuresInBlue, secondary: firebaseYellow, error: errorRed);
35 :
36 0 : static final greyscale = ThemeColors(
37 : primary: primaryGrey, secondary: secondaryGrey, error: errorRed);
38 : }
|