@@ -6,7 +6,7 @@ import 'stream_colors.dart';
6
6
import 'text.dart' ;
7
7
8
8
ThemeData zulipThemeData (BuildContext context) {
9
- final designVariables = DesignVariables ();
9
+ final designVariables = DesignVariables . light ();
10
10
return ThemeData (
11
11
typography: zulipTypography (context),
12
12
extensions: [ContentTheme .light (context), designVariables],
@@ -75,13 +75,27 @@ const kZulipBrandColor = Color.fromRGBO(0x64, 0x92, 0xfe, 1);
75
75
/// For how to export these from the Figma, see:
76
76
/// https://www.figma.com/design/1JTNtYo9memgW7vV6d0ygq/Zulip-Mobile?node-id=2945-49492&t=MEb4vtp7S26nntxm-0
77
77
class DesignVariables extends ThemeExtension <DesignVariables > {
78
- DesignVariables () :
79
- bgTopBar = const Color (0xfff5f5f5 ),
80
- borderBar = const Color (0x33000000 ),
81
- icon = const Color (0xff666699 ),
82
- mainBackground = const Color (0xfff0f0f0 ),
83
- title = const Color (0xff1a1a1a ),
84
- streamColorSwatches = StreamColorSwatches .light;
78
+ factory DesignVariables .light () {
79
+ return DesignVariables ._(
80
+ bgTopBar: const Color (0xfff5f5f5 ),
81
+ borderBar: const Color (0x33000000 ),
82
+ icon: const Color (0xff666699 ),
83
+ mainBackground: const Color (0xfff0f0f0 ),
84
+ title: const Color (0xff1a1a1a ),
85
+ streamColorSwatches: StreamColorSwatches .light,
86
+ );
87
+ }
88
+
89
+ factory DesignVariables .dark () {
90
+ return DesignVariables ._(
91
+ bgTopBar: const Color (0xff242424 ),
92
+ borderBar: Colors .black.withOpacity (0.41 ),
93
+ icon: const Color (0xff7070c2 ),
94
+ mainBackground: const Color (0xff1d1d1d ),
95
+ title: const Color (0xffffffff ),
96
+ streamColorSwatches: StreamColorSwatches .dark,
97
+ );
98
+ }
85
99
86
100
DesignVariables ._({
87
101
required this .bgTopBar,
0 commit comments