Skip to content

Commit

Permalink
implement open sans as font
Browse files Browse the repository at this point in the history
- write fontface which supports different font weights
  • Loading branch information
peggimann committed Nov 22, 2024
1 parent 77656a2 commit 282c6c0
Show file tree
Hide file tree
Showing 45 changed files with 45 additions and 12 deletions.
42 changes: 42 additions & 0 deletions frontend/src/assets/fonts/OpenSans.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
@font-face {
font-family: "OpenSans";
font-style: normal;
font-weight: 300;
font-display: swap;
src: url('../fonts/OpenSans/OpenSans-Light.ttf') format('truetype');
}

@font-face {
font-family: "OpenSans";
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('../fonts/OpenSans/OpenSans-Regular.ttf') format('truetype');
}

@font-face {
font-family: "OpenSans";
font-style: normal;
font-weight: 500;
font-display: swap;
src: url('../fonts/OpenSans/OpenSans-Medium.ttf') format('truetype');
}

@font-face {
font-family: "OpenSans";
font-style: normal;
font-weight: 600;
font-display: swap;
src: url('../fonts/OpenSans/OpenSans-SemiBold.ttf') format('truetype');
}

@font-face {
font-family: "OpenSans";
font-style: normal;
font-weight: 700;
font-display: swap;
src: url('../fonts/OpenSans/OpenSans-Bold.ttf') format('truetype');
}



Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
9 changes: 0 additions & 9 deletions frontend/src/assets/fonts/Roboto.scss

This file was deleted.

Binary file removed frontend/src/assets/fonts/Roboto/Roboto-Regular.ttf
Binary file not shown.
Binary file removed frontend/src/assets/fonts/Roboto/Roboto-Regular.woff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
6 changes: 3 additions & 3 deletions frontend/src/style/styles.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@import "custom_angular";
@import "_variables";
@import "custom_bootstrap";
@import "fonts/Roboto";
@import "fonts/OpenSans";
@import "fonts/MaterialIcons";

html,
Expand All @@ -10,8 +10,8 @@ body.okr {
margin: 0;
padding: 0;
background-color: $overview-bg;
font-family: Roboto, sans-serif;
--bs-body-font-family: Roboto, "Helvetica Neue", sans-serif;
font-family: OpenSans, "sans-serif";
--bs-body-font-family: OpenSans;

h1 {
font-size: 1.5rem;
Expand Down

0 comments on commit 282c6c0

Please sign in to comment.