Skip to content

Commit

Permalink
Change font to Rubik
Browse files Browse the repository at this point in the history
  • Loading branch information
whitep4nth3r committed Mar 21, 2024
1 parent 31eb82f commit cae1d4a
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 12 deletions.
15 changes: 8 additions & 7 deletions src/_css/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/_css/main.css.map

Large diffs are not rendered by default.

Binary file removed src/_fonts/Inter-UI.var.woff2
Binary file not shown.
Binary file added src/_fonts/Rubik-Variable.woff2
Binary file not shown.
6 changes: 3 additions & 3 deletions src/_sass/_font.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@font-face {
font-family: "Inter UI var";
font-family: "Rubik";
font-weight: 400 900; /* safe weight range */
src: url("/fonts/Inter-UI.var.woff2") format("woff2-variations"),
url("/fonts/Inter-UI.var.woff2") format("woff2");
src: url("/fonts/Rubik-Variable.woff2") format("woff2-variations"),
url("/fonts/Rubik-Variable.woff2") format("woff2");
font-style: normal;
font-stretch: normal;
font-display: swap;
Expand Down
1 change: 1 addition & 0 deletions src/_sass/_post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
line-height: 1.4;
color: var(--color-fg);
max-width: var(--post-max-width);
text-wrap: balance;
}

.post__h2 {
Expand Down
2 changes: 1 addition & 1 deletion src/_sass/_root.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ $global_md_breakpoint: 768px;
--body-horizontal-padding-sm: 1rem;
--body-horizontal-padding-lg: 2.5rem;

--font-family-main: "Inter UI var", Arial, sans-serif;
--font-family-main: "Rubik", Arial, sans-serif;

--font-weight-bold: 800;
--font-weight-mid: 600;
Expand Down

0 comments on commit cae1d4a

Please sign in to comment.