Switch font from FiraGO to Inter

This commit is contained in:
pancakes 2025-08-20 00:46:27 +10:00
parent ec490b3a51
commit 377ae9686f
Signed by: pancakes
SSH key fingerprint: SHA256:yrp4c4hhaPoPG07fb4QyQIgAdlbUdsJvUAydJEWnfTw
55 changed files with 469 additions and 112 deletions

View file

@ -2,6 +2,7 @@
import { page } from "$app/state";
import Footer from "$lib/components/Footer.svelte";
import Navbar from "$lib/components/Navbar.svelte";
import "./inter.css";
import "./style.css";
/**
* @typedef {Object} Props

449
src/routes/inter.css Normal file
View file

@ -0,0 +1,449 @@
@font-face {
font-family: InterVariable;
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url('/assets/fonts/Inter/InterVariable.woff2') format('woff2');
}
@font-face {
font-family: InterVariable;
font-style: italic;
font-weight: 100 900;
font-display: swap;
src: url('/assets/fonts/Inter/InterVariable-Italic.woff2') format('woff2');
}
/* static fonts */
@font-face {
font-family: Inter;
font-style: normal;
font-weight: 100;
font-display: swap;
src: url("/assets/fonts/Inter/Inter-Thin.woff2") format("woff2");
}
@font-face {
font-family: Inter;
font-style: italic;
font-weight: 100;
font-display: swap;
src: url("/assets/fonts/Inter/Inter-ThinItalic.woff2") format("woff2");
}
@font-face {
font-family: Inter;
font-style: normal;
font-weight: 200;
font-display: swap;
src: url("/assets/fonts/Inter/Inter-ExtraLight.woff2") format("woff2");
}
@font-face {
font-family: Inter;
font-style: italic;
font-weight: 200;
font-display: swap;
src: url("/assets/fonts/Inter/Inter-ExtraLightItalic.woff2") format("woff2");
}
@font-face {
font-family: Inter;
font-style: normal;
font-weight: 300;
font-display: swap;
src: url("/assets/fonts/Inter/Inter-Light.woff2") format("woff2");
}
@font-face {
font-family: Inter;
font-style: italic;
font-weight: 300;
font-display: swap;
src: url("/assets/fonts/Inter/Inter-LightItalic.woff2") format("woff2");
}
@font-face {
font-family: Inter;
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("/assets/fonts/Inter/Inter-Regular.woff2") format("woff2");
}
@font-face {
font-family: Inter;
font-style: italic;
font-weight: 400;
font-display: swap;
src: url("/assets/fonts/Inter/Inter-Italic.woff2") format("woff2");
}
@font-face {
font-family: Inter;
font-style: normal;
font-weight: 500;
font-display: swap;
src: url("/assets/fonts/Inter/Inter-Medium.woff2") format("woff2");
}
@font-face {
font-family: Inter;
font-style: italic;
font-weight: 500;
font-display: swap;
src: url("/assets/fonts/Inter/Inter-MediumItalic.woff2") format("woff2");
}
@font-face {
font-family: Inter;
font-style: normal;
font-weight: 600;
font-display: swap;
src: url("/assets/fonts/Inter/Inter-SemiBold.woff2") format("woff2");
}
@font-face {
font-family: Inter;
font-style: italic;
font-weight: 600;
font-display: swap;
src: url("/assets/fonts/Inter/Inter-SemiBoldItalic.woff2") format("woff2");
}
@font-face {
font-family: Inter;
font-style: normal;
font-weight: 700;
font-display: swap;
src: url("/assets/fonts/Inter/Inter-Bold.woff2") format("woff2");
}
@font-face {
font-family: Inter;
font-style: italic;
font-weight: 700;
font-display: swap;
src: url("/assets/fonts/Inter/Inter-BoldItalic.woff2") format("woff2");
}
@font-face {
font-family: Inter;
font-style: normal;
font-weight: 800;
font-display: swap;
src: url("/assets/fonts/Inter/Inter-ExtraBold.woff2") format("woff2");
}
@font-face {
font-family: Inter;
font-style: italic;
font-weight: 800;
font-display: swap;
src: url("/assets/fonts/Inter/Inter-ExtraBoldItalic.woff2") format("woff2");
}
@font-face {
font-family: Inter;
font-style: normal;
font-weight: 900;
font-display: swap;
src: url("/assets/fonts/Inter/Inter-Black.woff2") format("woff2");
}
@font-face {
font-family: Inter;
font-style: italic;
font-weight: 900;
font-display: swap;
src: url("/assets/fonts/Inter/Inter-BlackItalic.woff2") format("woff2");
}
@font-face {
font-family: InterDisplay;
font-style: normal;
font-weight: 100;
font-display: swap;
src: url("/assets/fonts/Inter/InterDisplay-Thin.woff2") format("woff2");
}
@font-face {
font-family: InterDisplay;
font-style: italic;
font-weight: 100;
font-display: swap;
src: url("/assets/fonts/Inter/InterDisplay-ThinItalic.woff2") format("woff2");
}
@font-face {
font-family: InterDisplay;
font-style: normal;
font-weight: 200;
font-display: swap;
src: url("/assets/fonts/Inter/InterDisplay-ExtraLight.woff2") format("woff2");
}
@font-face {
font-family: InterDisplay;
font-style: italic;
font-weight: 200;
font-display: swap;
src: url("/assets/fonts/Inter/InterDisplay-ExtraLightItalic.woff2") format("woff2");
}
@font-face {
font-family: InterDisplay;
font-style: normal;
font-weight: 300;
font-display: swap;
src: url("/assets/fonts/Inter/InterDisplay-Light.woff2") format("woff2");
}
@font-face {
font-family: InterDisplay;
font-style: italic;
font-weight: 300;
font-display: swap;
src: url("/assets/fonts/Inter/InterDisplay-LightItalic.woff2") format("woff2");
}
@font-face {
font-family: InterDisplay;
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("/assets/fonts/Inter/InterDisplay-Regular.woff2") format("woff2");
}
@font-face {
font-family: InterDisplay;
font-style: italic;
font-weight: 400;
font-display: swap;
src: url("/assets/fonts/Inter/InterDisplay-Italic.woff2") format("woff2");
}
@font-face {
font-family: InterDisplay;
font-style: normal;
font-weight: 500;
font-display: swap;
src: url("/assets/fonts/Inter/InterDisplay-Medium.woff2") format("woff2");
}
@font-face {
font-family: InterDisplay;
font-style: italic;
font-weight: 500;
font-display: swap;
src: url("/assets/fonts/Inter/InterDisplay-MediumItalic.woff2") format("woff2");
}
@font-face {
font-family: InterDisplay;
font-style: normal;
font-weight: 600;
font-display: swap;
src: url("/assets/fonts/Inter/InterDisplay-SemiBold.woff2") format("woff2");
}
@font-face {
font-family: InterDisplay;
font-style: italic;
font-weight: 600;
font-display: swap;
src: url("/assets/fonts/Inter/InterDisplay-SemiBoldItalic.woff2") format("woff2");
}
@font-face {
font-family: InterDisplay;
font-style: normal;
font-weight: 700;
font-display: swap;
src: url("/assets/fonts/Inter/InterDisplay-Bold.woff2") format("woff2");
}
@font-face {
font-family: InterDisplay;
font-style: italic;
font-weight: 700;
font-display: swap;
src: url("/assets/fonts/Inter/InterDisplay-BoldItalic.woff2") format("woff2");
}
@font-face {
font-family: InterDisplay;
font-style: normal;
font-weight: 800;
font-display: swap;
src: url("/assets/fonts/Inter/InterDisplay-ExtraBold.woff2") format("woff2");
}
@font-face {
font-family: InterDisplay;
font-style: italic;
font-weight: 800;
font-display: swap;
src: url("/assets/fonts/Inter/InterDisplay-ExtraBoldItalic.woff2") format("woff2");
}
@font-face {
font-family: InterDisplay;
font-style: normal;
font-weight: 900;
font-display: swap;
src: url("/assets/fonts/Inter/InterDisplay-Black.woff2") format("woff2");
}
@font-face {
font-family: InterDisplay;
font-style: italic;
font-weight: 900;
font-display: swap;
src: url("/assets/fonts/Inter/InterDisplay-BlackItalic.woff2") format("woff2");
}
@font-feature-values InterVariable {
@character-variant {
cv01: 1;
cv02: 2;
cv03: 3;
cv04: 4;
cv05: 5;
cv06: 6;
cv07: 7;
cv08: 8;
cv09: 9;
cv10: 10;
cv11: 11;
cv12: 12;
cv13: 13;
alt-1: 1; /* Alternate one */
alt-3: 9; /* Flat-top three */
open-4: 2; /* Open four */
open-6: 3; /* Open six */
open-9: 4; /* Open nine */
lc-l-with-tail: 5; /* Lower-case L with tail */
simplified-u: 6; /* Simplified u */
alt-double-s: 7; /* Alternate German double s */
uc-i-with-serif: 8; /* Upper-case i with serif */
uc-g-with-spur: 10; /* Capital G with spur */
single-story-a: 11; /* Single-story a */
compact-lc-f: 12; /* Compact f */
compact-lc-t: 13; /* Compact t */
}
@styleset {
ss01: 1;
ss02: 2;
ss03: 3;
ss04: 4;
ss05: 5;
ss06: 6;
ss07: 7;
ss08: 8;
open-digits: 1; /* Open digits */
disambiguation: 2; /* Disambiguation (with zero) */
disambiguation-except-zero: 4; /* Disambiguation (no zero) */
round-quotes-and-commas: 3; /* Round quotes & commas */
square-punctuation: 7; /* Square punctuation */
square-quotes: 8; /* Square quotes */
circled-characters: 5; /* Circled characters */
squared-characters: 6; /* Squared characters */
}
}
@font-feature-values Inter {
@character-variant {
cv01: 1;
cv02: 2;
cv03: 3;
cv04: 4;
cv05: 5;
cv06: 6;
cv07: 7;
cv08: 8;
cv09: 9;
cv10: 10;
cv11: 11;
cv12: 12;
cv13: 13;
alt-1: 1; /* Alternate one */
alt-3: 9; /* Flat-top three */
open-4: 2; /* Open four */
open-6: 3; /* Open six */
open-9: 4; /* Open nine */
lc-l-with-tail: 5; /* Lower-case L with tail */
simplified-u: 6; /* Simplified u */
alt-double-s: 7; /* Alternate German double s */
uc-i-with-serif: 8; /* Upper-case i with serif */
uc-g-with-spur: 10; /* Capital G with spur */
single-story-a: 11; /* Single-story a */
compact-lc-f: 12; /* Compact f */
compact-lc-t: 13; /* Compact t */
}
@styleset {
ss01: 1;
ss02: 2;
ss03: 3;
ss04: 4;
ss05: 5;
ss06: 6;
ss07: 7;
ss08: 8;
open-digits: 1; /* Open digits */
disambiguation: 2; /* Disambiguation (with zero) */
disambiguation-except-zero: 4; /* Disambiguation (no zero) */
round-quotes-and-commas: 3; /* Round quotes & commas */
square-punctuation: 7; /* Square punctuation */
square-quotes: 8; /* Square quotes */
circled-characters: 5; /* Circled characters */
squared-characters: 6; /* Squared characters */
}
}
@font-feature-values InterDisplay {
@character-variant {
cv01: 1;
cv02: 2;
cv03: 3;
cv04: 4;
cv05: 5;
cv06: 6;
cv07: 7;
cv08: 8;
cv09: 9;
cv10: 10;
cv11: 11;
cv12: 12;
cv13: 13;
alt-1: 1; /* Alternate one */
alt-3: 9; /* Flat-top three */
open-4: 2; /* Open four */
open-6: 3; /* Open six */
open-9: 4; /* Open nine */
lc-l-with-tail: 5; /* Lower-case L with tail */
simplified-u: 6; /* Simplified u */
alt-double-s: 7; /* Alternate German double s */
uc-i-with-serif: 8; /* Upper-case i with serif */
uc-g-with-spur: 10; /* Capital G with spur */
single-story-a: 11; /* Single-story a */
compact-lc-f: 12; /* Compact f */
compact-lc-t: 13; /* Compact t */
}
@styleset {
ss01: 1;
ss02: 2;
ss03: 3;
ss04: 4;
ss05: 5;
ss06: 6;
ss07: 7;
ss08: 8;
open-digits: 1; /* Open digits */
disambiguation: 2; /* Disambiguation (with zero) */
disambiguation-except-zero: 4; /* Disambiguation (no zero) */
round-quotes-and-commas: 3; /* Round quotes & commas */
square-punctuation: 7; /* Square punctuation */
square-quotes: 8; /* Square quotes */
circled-characters: 5; /* Circled characters */
squared-characters: 6; /* Squared characters */
}
}

View file

@ -5,105 +5,6 @@
font-style: normal;
}
/* This is going to be quite long */
@font-face {
font-family: "FiraGO";
src: url("/assets/fonts/FiraGO/FiraGO-ExtraLight.woff2") format("woff2");
font-weight: 200;
font-style: normal;
}
@font-face {
font-family: "FiraGO";
src: url("/assets/fonts/FiraGO/FiraGO-ExtraLightItalic.woff2") format("woff2");
font-weight: 200;
font-style: italic;
}
@font-face {
font-family: "FiraGO";
src: url("/assets/fonts/FiraGO/FiraGO-Light.woff2") format("woff2");
font-weight: 300;
font-style: normal;
}
@font-face {
font-family: "FiraGO";
src: url("/assets/fonts/FiraGO/FiraGO-LightItalic.woff2") format("woff2");
font-weight: 300;
font-style: italic;
}
@font-face {
font-family: "FiraGO";
src: url("/assets/fonts/FiraGO/FiraGO-Regular.woff2") format("woff2");
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: "FiraGO";
src: url("/assets/fonts/FiraGO/FiraGO-Italic.woff2") format("woff2");
font-weight: 400;
font-style: italic;
}
@font-face {
font-family: "FiraGO";
src: url("/assets/fonts/FiraGO/FiraGO-Medium.woff2") format("woff2");
font-weight: 500;
font-style: normal;
}
@font-face {
font-family: "FiraGO";
src: url("/assets/fonts/FiraGO/FiraGO-MediumItalic.woff2") format("woff2");
font-weight: 500;
font-style: italic;
}
@font-face {
font-family: "FiraGO";
src: url("/assets/fonts/FiraGO/FiraGO-SemiBold.woff2") format("woff2");
font-weight: 600;
font-style: normal;
}
@font-face {
font-family: "FiraGO";
src: url("/assets/fonts/FiraGO/FiraGO-SemiBoldItalic.woff2") format("woff2");
font-weight: 600;
font-style: italic;
}
@font-face {
font-family: "FiraGO";
src: url("/assets/fonts/FiraGO/FiraGO-Bold.woff2") format("woff2");
font-weight: 700;
font-style: normal;
}
@font-face {
font-family: "FiraGO";
src: url("/assets/fonts/FiraGO/FiraGO-BoldItalic.woff2") format("woff2");
font-weight: 700;
font-style: italic;
}
@font-face {
font-family: "FiraGO";
src: url("/assets/fonts/FiraGO/FiraGO-ExtraBold.woff2") format("woff2");
font-weight: 800;
font-style: normal;
}
@font-face {
font-family: "FiraGO";
src: url("/assets/fonts/FiraGO/FiraGO-ExtraBoldItalic.woff2") format("woff2");
font-weight: 800;
font-style: italic;
}
:root {
--accent: hsl(287, 50%, 59%);
--accent-2: light-dark(hsl(287, 50%, 39%), hsl(287, 50%, 79%));
@ -115,6 +16,14 @@
--error: hsl(0, 50%, 59%);
--radius: 12px;
font-family: Inter, sans-serif;
}
@supports (font-variation-settings: normal) {
:root {
font-family: InterVariable, sans-serif;
}
}
body {
@ -127,8 +36,6 @@ body {
/* Colors */
background-color: var(--background);
color: var(--foreground);
font-family: "FiraGO", sans-serif;
}
article:first-of-type,
@ -263,13 +170,13 @@ video {
height: auto;
}
blockquote>:not(footer):first-of-type::before {
blockquote > :not(footer):first-of-type::before {
content: open-quote;
color: var(--accent);
font-weight: 800;
}
blockquote>:not(footer):last-of-type::after {
blockquote > :not(footer):last-of-type::after {
content: close-quote;
color: var(--accent);
font-weight: 800;
@ -362,15 +269,15 @@ details[open] {
padding-bottom: 1px;
}
details+details {
details + details {
margin-top: 0.5em;
}
details>* {
details > * {
margin-left: 2em;
}
details>summary {
details > summary {
margin-left: 0;
padding: 0.5em;
width: fit-content;
@ -462,13 +369,13 @@ table.rows tbody tr:nth-child(2n) {
color: black;
}
.icon-link>a,
.icon-link>span {
.icon-link > a,
.icon-link > span {
padding-left: 0.15rem;
line-height: 2em;
}
.icon-link>img {
.icon-link > img {
display: inline-block;
width: 2em;
max-height: 2em;
@ -490,11 +397,11 @@ table.rows tbody tr:nth-child(2n) {
font-weight: bolder;
}
.notice>p:first-child {
.notice > p:first-child {
margin-top: 0;
}
.notice>p:last-child {
.notice > p:last-child {
margin-bottom: 0;
}
@ -508,7 +415,7 @@ table.rows tbody tr:nth-child(2n) {
}
@media (prefers-color-scheme: dark) {
.icon-link>img.invert {
.icon-link > img.invert {
filter: hue-rotate(180deg) invert();
}
}

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.