Skip to content

Commit

Permalink
fix: consolidate font styling
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbchron committed Jul 20, 2024
1 parent 92ab9fa commit 743d93a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion crates/site-app/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub fn App() -> impl IntoView {
view! {
<div class="bg-neutral-800 min-h-screen">
<Stylesheet href="/pkg/site.css"/>
<Style>{include_str!("../style/iosevka_term.css")}</Style>
<Style>{include_str!("../style/fonts.css")}</Style>

// preloads the fonts
<leptos_meta::Link
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,11 @@
font-style: normal;
src: url('/fonts/Iosevkacustom-Regular.ttf') format('truetype');
}

@font-face {
font-family: 'FiraSans';
font-display: swap;
font-weight: 100 900;
font-style: normal;
src: url("/fonts/Firava.woff2");
}
7 changes: 0 additions & 7 deletions crates/site-app/style/main.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
@font-face {
font-family: 'FiraSans';
src: url("/fonts/Firava.woff2");
font-display: swap;
font-weight: 100 900;
font-style: normal;
}

@tailwind base;
@tailwind components;
Expand Down

0 comments on commit 743d93a

Please sign in to comment.