selfprivacy.org.app/lib/config/text_themes.dart

81 lines
1.9 KiB
Dart
Raw Normal View History

2020-11-30 10:03:55 +00:00
import 'package:flutter/material.dart';
import 'package:selfprivacy/utils/named_font_weight.dart';
import 'brand_colors.dart';
2021-03-18 00:55:38 +00:00
final defaultTextStyle = TextStyle(
fontSize: 15,
color: BrandColors.textColor1,
2020-11-30 10:03:55 +00:00
);
2021-03-18 00:55:38 +00:00
final headline1Style = defaultTextStyle.copyWith(
2020-11-30 10:03:55 +00:00
fontSize: 40,
fontWeight: NamedFontWeight.extraBold,
color: BrandColors.headlineColor,
);
2021-03-18 00:55:38 +00:00
final headline2Style = defaultTextStyle.copyWith(
2021-01-06 17:35:57 +00:00
fontSize: 24,
fontWeight: NamedFontWeight.extraBold,
color: BrandColors.headlineColor,
);
2021-03-18 00:55:38 +00:00
final onboardingTitle = defaultTextStyle.copyWith(
2020-12-30 14:13:25 +00:00
fontSize: 30,
2020-11-30 10:03:55 +00:00
fontWeight: NamedFontWeight.extraBold,
color: BrandColors.headlineColor,
);
2021-03-18 00:55:38 +00:00
final headline3Style = defaultTextStyle.copyWith(
2020-12-02 09:16:23 +00:00
fontSize: 20,
fontWeight: NamedFontWeight.extraBold,
color: BrandColors.headlineColor,
);
2021-03-18 00:55:38 +00:00
final headline4Style = defaultTextStyle.copyWith(
2020-11-30 10:03:55 +00:00
fontSize: 18,
fontWeight: NamedFontWeight.medium,
color: BrandColors.headlineColor,
);
2021-10-12 12:10:00 +00:00
final headline4UnderlinedStyle = defaultTextStyle.copyWith(
fontSize: 18,
fontWeight: NamedFontWeight.medium,
color: BrandColors.headlineColor,
decoration: TextDecoration.underline,
);
2021-03-26 13:38:39 +00:00
final headline5Style = defaultTextStyle.copyWith(
fontSize: 15,
fontWeight: NamedFontWeight.medium,
color: BrandColors.headlineColor.withOpacity(0.8),
);
2020-12-01 19:08:19 +00:00
final body1Style = defaultTextStyle;
final body2Style = defaultTextStyle.copyWith(
2020-11-30 10:03:55 +00:00
color: BrandColors.textColor2,
);
2020-12-03 16:52:53 +00:00
2021-02-15 18:58:29 +00:00
final buttonTitleText = defaultTextStyle.copyWith(
color: BrandColors.white,
fontSize: 16,
fontWeight: FontWeight.bold,
height: 1,
);
2021-01-06 17:35:57 +00:00
final mediumStyle = defaultTextStyle.copyWith(fontSize: 13, height: 1.53);
2020-12-03 16:52:53 +00:00
final smallStyle = defaultTextStyle.copyWith(fontSize: 11, height: 1.45);
2020-12-30 14:13:25 +00:00
final linkStyle = defaultTextStyle.copyWith(color: BrandColors.blue);
2021-03-18 00:55:38 +00:00
final progressTextStyleLight = TextStyle(
fontSize: 11,
color: BrandColors.textColor1,
2021-03-31 11:37:39 +00:00
height: 1.7,
2020-12-30 14:13:25 +00:00
);
2021-03-31 11:37:39 +00:00
final progressTextStyleDark = progressTextStyleLight.copyWith(
2021-03-18 00:55:38 +00:00
color: BrandColors.white,
2020-12-30 14:13:25 +00:00
);