diff --git a/lib/theme/dark.dart b/lib/theme/dark.dart index aba3db5..5473632 100644 --- a/lib/theme/dark.dart +++ b/lib/theme/dark.dart @@ -1,8 +1,10 @@ import 'package:flutter/material.dart'; +import 'package:vaani/theme/theme.dart'; final ThemeData darkTheme = ThemeData( + brightness: Brightness.dark, + colorScheme: ColorScheme.fromSeed( + seedColor: brandColor, brightness: Brightness.dark, - colorScheme: ColorScheme.dark( - background: Colors.grey[900]!, ), ); diff --git a/lib/theme/light.dart b/lib/theme/light.dart index e401c23..aa6ba4d 100644 --- a/lib/theme/light.dart +++ b/lib/theme/light.dart @@ -1,8 +1,10 @@ import 'package:flutter/material.dart'; +import 'package:vaani/theme/theme.dart'; final ThemeData lightTheme = ThemeData( + brightness: Brightness.light, + colorScheme: ColorScheme.fromSeed( + seedColor: brandColor, brightness: Brightness.light, - colorScheme: ColorScheme.light( - background: Colors.grey[200]!, ), ); diff --git a/lib/theme/theme.dart b/lib/theme/theme.dart index 8c777fc..72e81b1 100644 --- a/lib/theme/theme.dart +++ b/lib/theme/theme.dart @@ -1,2 +1,9 @@ +import 'dart:ui'; + export 'dark.dart'; export 'light.dart'; + + +// brand color rgb(49, 27, 146) rgb(96, 76, 236) +const brandColor = Color(0xFF311B92); +const brandColorLight = Color(0xFF604CEC);