mnemo_cards/lib/theme/themes.dart

108 lines
3.9 KiB
Dart
Raw Normal View History

2024-05-22 20:48:44 +00:00
import 'package:flutter/material.dart';
2024-06-22 12:29:18 +00:00
// import 'package:google_fonts/google_fonts.dart';
final ValueNotifier<ThemeMode> themeNotifier = ValueNotifier(ThemeMode.light);
2024-05-22 20:48:44 +00:00
const Color peach = Color(0xffffc994);
2024-06-15 15:42:18 +00:00
const Color golden = Color(0xffffea00);
2024-05-22 20:48:44 +00:00
const Color green = Color(0xff3d5309);
const Color greenAccent = Color(0xff688d11);
const Color black = Color(0xff000000);
2024-06-22 12:29:18 +00:00
const Color mainBackgroundLight = Color(0xffffffff);
const Color mainBackgroundDark = Color(0xff000000);
2024-05-22 20:48:44 +00:00
const Color white = Color(0xffffffff);
const Color yellow = Colors.yellowAccent;
2024-06-15 15:42:18 +00:00
const Color progressBlue = Color(0xff8CCBFF);
2024-05-22 20:48:44 +00:00
const Color menuBlue = Color(0xff99C4E9);
const Color backgroundBlue = Color(0xFFf0f0f0);
const Color testBlue = Color(0xffD0EAFF);
const Color borderGray = Color(0xffABABAB);
2024-06-22 12:29:18 +00:00
final Map<int, Color> color = {
50: const Color.fromRGBO(0, 0, 0, .1),
100: const Color.fromRGBO(0, 0, 0, .2),
200: const Color.fromRGBO(0, 0, 0, .3),
300: const Color.fromRGBO(0, 0, 0, .4),
400: const Color.fromRGBO(0, 0, 0, .5),
500: const Color.fromRGBO(0, 0, 0, .6),
600: const Color.fromRGBO(0, 0, 0, .7),
700: const Color.fromRGBO(0, 0, 0, .8),
800: const Color.fromRGBO(0, 0, 0, .9),
900: const Color.fromRGBO(0, 0, 0, 1),
};
final Map<int, Color> colorWhite = {
50: const Color.fromRGBO(255, 255, 255, .1),
100: const Color.fromRGBO(255, 255, 255, .2),
200: const Color.fromRGBO(255, 255, 255, .3),
300: const Color.fromRGBO(255, 255, 255, .4),
400: const Color.fromRGBO(255, 255, 255, .5),
500: const Color.fromRGBO(255, 255, 255, .6),
600: const Color.fromRGBO(255, 255, 255, .7),
700: const Color.fromRGBO(255, 255, 255, .8),
800: const Color.fromRGBO(255, 255, 255, .9),
900: const Color.fromRGBO(255, 255, 255, 1),
};
final theme2 = ThemeData(
2024-05-22 20:48:44 +00:00
useMaterial3: true,
2024-06-22 12:29:18 +00:00
brightness: Brightness.light,
fontFamily: 'Nunito',
// textTheme: GoogleFonts.exo2TextTheme(),
colorScheme: ColorScheme.light(
secondaryContainer: Colors.grey,
primary: MaterialColor(0xFF000000, color),
surface: MaterialColor(0xFFFFFFFF, colorWhite),
surfaceVariant: MaterialColor(0xFFFFFFFF, colorWhite),
onSurface: Colors.black,
),
tabBarTheme: TabBarTheme(
labelColor: MaterialColor(0xFF000000, color),
),
2024-05-22 20:48:44 +00:00
appBarTheme: AppBarTheme(
2024-06-22 12:29:18 +00:00
iconTheme: IconThemeData(
color: MaterialColor(0xFF000000, color),
),
2024-05-22 20:48:44 +00:00
),
2024-06-22 12:29:18 +00:00
textTheme: TextTheme(
titleLarge: TextStyle(fontWeight: FontWeight.w700),
titleMedium: TextStyle(fontWeight: FontWeight.w700),
titleSmall: TextStyle(fontWeight: FontWeight.w700),
bodyLarge: TextStyle(fontWeight: FontWeight.w700),
bodyMedium: TextStyle(fontWeight: FontWeight.w700),
bodySmall: TextStyle(fontWeight: FontWeight.w700),
labelLarge: TextStyle(fontWeight: FontWeight.w700),
labelMedium: TextStyle(fontWeight: FontWeight.w700),
labelSmall: TextStyle(fontWeight: FontWeight.w700),
displayLarge: TextStyle(fontWeight: FontWeight.w700),
displayMedium: TextStyle(fontWeight: FontWeight.w700),
displaySmall: TextStyle(fontWeight: FontWeight.w700),
headlineLarge: TextStyle(fontWeight: FontWeight.w700),
headlineMedium: TextStyle(fontWeight: FontWeight.w700),
headlineSmall: TextStyle(fontWeight: FontWeight.w700),
2024-05-22 20:48:44 +00:00
),
2024-06-22 12:29:18 +00:00
primarySwatch: MaterialColor(0xFF000000, color),
visualDensity: VisualDensity.adaptivePlatformDensity,
2024-05-22 20:48:44 +00:00
);
2024-06-22 12:29:18 +00:00
final darkTheme2 = ThemeData(
2024-05-22 20:48:44 +00:00
useMaterial3: true,
2024-06-22 12:29:18 +00:00
brightness: Brightness.dark,
fontFamily: 'Nunito',
// textTheme: GoogleFonts.exo2TextTheme(),
colorScheme: ColorScheme.dark(
primary: MaterialColor(0xFFFFFFFF, colorWhite),
secondary: Colors.lightBlue,
tertiary: Colors.lightBlue,
),
tabBarTheme: TabBarTheme(
labelColor: MaterialColor(0xFFFFFFFF, colorWhite),
2024-05-22 20:48:44 +00:00
),
2024-06-22 12:29:18 +00:00
appBarTheme: AppBarTheme(
iconTheme: IconThemeData(
color: MaterialColor(0xFFFFFFFF, colorWhite),
)),
primarySwatch: MaterialColor(0xFFFFFFFF, colorWhite),
visualDensity: VisualDensity.adaptivePlatformDensity,
2024-05-22 20:48:44 +00:00
);