Skip to content

Commit

Permalink
Implement CSS variables to font families (#2091)
Browse files Browse the repository at this point in the history
- This allows to NRO to override any token when the new identity is relased

Co-authored-by: Dan Tovbein <dtovbein@gmail.com>
  • Loading branch information
GP-Dan-Tovbein and dantovbein authored Aug 16, 2023
1 parent 6c6817e commit 962d9ad
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions assets/src/scss/base/_css-variables.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
:root {
--body--font-family: #{$lora};
--headings--font-family: #{$roboto};
--body--font-family: var(--font-family-primary);
--headings--font-family: var(--font-family-secondary);
--headings--font-weight: bold;
--body--background-color: #{$white};
--body--color: #{$grey-80};
Expand Down
6 changes: 6 additions & 0 deletions assets/src/scss/base/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
$roboto: "Roboto", sans-serif;
$lora: "Lora", serif;

:root {
--font-family-primary: #{$roboto};
--font-family-secondary: #{$lora};
--font-family-tertiary: #{$lora};
}

// Media queries
$extra-small-width: 320px;
$small-width: 576px;
Expand Down
2 changes: 1 addition & 1 deletion assets/src/scss/new-identity/style.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import "../base/tokens";
@import "../base/variables";
@import "../base/tokens";
@import "../base/mixins";
@import "./fonts";

Expand Down

0 comments on commit 962d9ad

Please sign in to comment.