Skip to content

Commit

Permalink
feat: Use Open Sans as the default font (#4676)
Browse files Browse the repository at this point in the history
* Use Open Sans a the new font

* Add the semi-bold variant used in the POC

* Missing file
  • Loading branch information
g123k committed Oct 25, 2023
1 parent 9deb1fd commit 9a1ba90
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
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

0 comments on commit 9a1ba90

Please sign in to comment.