Skip to content

Commit

Permalink
use custom iosevka
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbchron committed Jul 10, 2024
1 parent b73c1a6 commit cfadc66
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ pub fn App() -> impl IntoView {
as_="font" type_="font/woff2" crossorigin="anonymous"
/>
<leptos_meta::Link
rel="preload" href="/fonts/IosevkaTerm-Regular.woff2"
as_="font" type_="font/woff2" crossorigin="anonymous"
rel="preload" href="/fonts/Iosevkacustom-Regular.ttf"
as_="font" type_="font/ttf" crossorigin="anonymous"
/>

<leptos_meta::Link rel="icon" href="/favicon.png" type_="image/png" />
Expand Down
Binary file removed public/fonts/IosevkaTerm-Regular.woff2
Binary file not shown.
Binary file added public/fonts/Iosevkacustom-Regular.ttf
Binary file not shown.
6 changes: 3 additions & 3 deletions style/iosevka_term.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@font-face {
font-family: 'Iosevka Term Web';
font-family: 'Iosevka Custom';
font-display: swap;
font-weight: 100 900;
font-style: normal;
src: url('/fonts/IosevkaTerm-Regular.woff2') format('woff2');
}
src: url('/fonts/Iosevkacustom-Regular.ttf') format('truetype');
}
2 changes: 1 addition & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
theme: {
fontFamily: {
'sans': ['FiraSans', 'ui-sans-serif', 'system-ui', 'sans-serif', "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"],
'mono': ['Iosevka Term Web', 'ui-monospace', 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', "Liberation Mono", "Courier New", 'monospace'],
'mono': ['Iosevka Custom', 'ui-monospace', 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', "Liberation Mono", "Courier New", 'monospace'],
},
extend: {
colors: {
Expand Down

0 comments on commit cfadc66

Please sign in to comment.