mucke/lib/presentation/theming.dart

90 lines
2.3 KiB
Dart
Raw Normal View History

2020-03-28 09:39:59 +01:00
import 'package:flutter/material.dart';
2021-01-27 18:13:21 +01:00
const Color DARK1 = Color(0xff090711);
const Color DARK2 = Color(0xff141216);
const Color DARK3 = Color(0xff645375); // 645375 // 241d2b
const Color LIGHT1 = Color(0xff913af1);
const Color LIGHT2 = Color(0xffac5bfb);
2020-05-09 19:46:06 +02:00
2020-03-28 09:39:59 +01:00
ThemeData theme() => ThemeData(
brightness: Brightness.dark,
2020-05-09 19:46:06 +02:00
primaryColor: DARK1,
primaryColorBrightness: Brightness.dark,
primaryColorLight: DARK2,
accentColor: LIGHT1,
2021-01-27 18:13:21 +01:00
highlightColor: LIGHT2,
2020-05-09 19:46:06 +02:00
scaffoldBackgroundColor: DARK2,
2021-01-27 18:13:21 +01:00
cardColor: DARK3,
elevatedButtonTheme: ElevatedButtonThemeData(
style: ElevatedButton.styleFrom(
primary: LIGHT1,
),
),
2020-03-28 09:39:59 +01:00
// https://api.flutter.dev/flutter/material/TextTheme-class.html
2020-04-05 12:22:40 +02:00
textTheme: const TextTheme(
2020-12-08 22:22:31 +01:00
headline1: TextStyle(
fontSize: 28.0,
fontWeight: FontWeight.w900,
color: LIGHT1,
),
headline2: TextStyle(
fontSize: 24.0,
fontWeight: FontWeight.w900,
color: Colors.white,
),
headline3: TextStyle(
fontSize: 20.0,
fontWeight: FontWeight.w900,
color: Colors.white,
),
headline4: TextStyle(
fontSize: 18.0,
fontWeight: FontWeight.w600,
color: Colors.white,
),
headline5: TextStyle(
fontSize: 18.0,
fontWeight: FontWeight.w400,
color: Colors.white70,
),
2020-08-28 11:28:58 +02:00
headline6: TextStyle(fontSize: 18.0),
2020-03-28 11:08:43 +01:00
),
2020-08-12 20:59:00 +02:00
tabBarTheme: const TabBarTheme(
2020-03-28 11:08:43 +01:00
labelColor: Colors.white,
2020-03-28 09:39:59 +01:00
),
2020-08-12 20:59:00 +02:00
iconTheme: const IconThemeData(
color: Colors.white,
),
2021-01-27 18:13:21 +01:00
bottomNavigationBarTheme: const BottomNavigationBarThemeData(
backgroundColor: DARK1,
selectedItemColor: LIGHT1,
),
2020-03-28 09:39:59 +01:00
);
2020-12-08 22:22:31 +01:00
const TextStyle TEXT_HEADER = TextStyle(
fontSize: 20.0,
2020-12-08 22:22:31 +01:00
fontWeight: FontWeight.bold,
);
const TextStyle TEXT_BIG = TextStyle(
fontSize: 22.0,
fontWeight: FontWeight.bold,
);
const TextStyle TEXT_SUBTITLE = TextStyle(
fontSize: 18.0,
fontWeight: FontWeight.w300,
);
const TextStyle TEXT_SMALL_HEADLINE = TextStyle(
fontSize: 12.0,
fontWeight: FontWeight.normal,
);
const TextStyle TEXT_SMALL_SUBTITLE = TextStyle(
fontSize: 12.0,
fontWeight: FontWeight.w300,
);
2021-01-27 18:13:21 +01:00
const double HORIZONTAL_PADDING = 16.0;