Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Use Open Sans as the default font #4676

Merged
merged 3 commits into from
Oct 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions packages/smooth_app/lib/themes/smooth_theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class SmoothTheme {

return ThemeData(
useMaterial3: false,
fontFamily: 'OpenSans',
primaryColor: const Color(0xFF341100),
colorScheme: myColorScheme,
canvasColor: themeProvider.currentTheme == THEME_AMOLED
Expand Down
11 changes: 11 additions & 0 deletions packages/smooth_app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -173,3 +173,14 @@ flutter:
- assets/preferences/
- assets/product/
- assets/icons/

fonts:
- family: OpenSans
fonts:
- asset: assets/fonts/OpenSans-Regular.ttf
- asset: assets/fonts/OpenSans-Medium.ttf
weight: 500
- asset: assets/fonts/OpenSans-SemiBold.ttf
weight: 600
- asset: assets/fonts/OpenSans-Bold.ttf
weight: 700