updated title and body font to use Roboto Flex

This commit is contained in:
2025-08-15 20:30:20 +02:00
parent 95e4b0166c
commit 5b46fd8f13
13 changed files with 29 additions and 67 deletions

View File

@@ -78,7 +78,6 @@
left: 0;
right: 0;
bottom: 0px;
font-weight: 900;
/* font-style: italic; */
}

View File

@@ -3,7 +3,7 @@
<a class="favicon" href="/">
<img class="favicon-image" src="/favicon.webp" alt="Favicon">
</a>
<div class="links">
<div class="links wide-font">
<span>»</span>
<a href="/projects">Projects</a>
<span> // </span>
@@ -59,7 +59,7 @@
a, span {
font-family: var(--font-title);
font-size: 1rem;
font-weight: 700;
font-weight: 800;
color: var(--color-text);
}

View File

@@ -31,7 +31,7 @@
{#snippet galleryEntry({entry}: {entry: GalleryEntry})}
<a class="entry" href="{entry.link}">
<img src="{entry.img}">
<p>{entry.title}</p>
<p class="wide-font">{entry.title}</p>
<p>{@html entry.subtitle}</p>
</a>
{/snippet}
@@ -76,7 +76,7 @@
font-size: 20px;
margin-top: 12px;
font-family: var(--font-title);
font-size: 1.1rem;
font-size: 1.2rem;
font-weight: 800;
font-style: italic;
}

View File

@@ -14,55 +14,7 @@
<style>
@import url('https://fonts.upset.dev/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@font-face {
font-family: 'Monument Extended';
font-weight: 100;
font-style: normal;
src: url('/fonts/ppmonument-extended/thin.woff');
}
@font-face {
font-family: 'Monument Extended';
font-weight: 200;
font-style: normal;
src: url('/fonts/ppmonument-extended/light.woff');
}
@font-face {
font-family: 'Monument Extended';
font-weight: 300;
font-style: normal;
src: url('/fonts/ppmonument-extended/book.woff');
}
@font-face {
font-family: 'Monument Extended';
font-weight: 400;
font-style: normal;
src: url('/fonts/ppmonument-extended/regular.woff');
}
@font-face {
font-family: 'Monument Extended';
font-weight: 500;
font-style: normal;
src: url('/fonts/ppmonument-extended/medium.woff');
}
@font-face {
font-family: 'Monument Extended';
font-weight: 700;
font-style: normal;
src: url('/fonts/ppmonument-extended/bold.woff');
}
@font-face {
font-family: 'Monument Extended';
font-weight: 800;
font-style: normal;
src: url('/fonts/ppmonument-extended/black.woff');
}
@font-face {
font-family: 'Monument Extended';
font-weight: 900;
font-style: normal;
src: url('/fonts/ppmonument-extended/heavy.woff');
}
@import url('https://fonts.upset.dev/css2?family=Roboto+Flex:opsz,slnt,wdth,wght,XTRA,YOPQ,YTAS,YTFI,YTUC@8..144,-10..0,25..151,100..1000,323..603,69,649..854,560..788,528..760&display=swap');
:global {
:root {
@@ -84,8 +36,8 @@
--color-link-visited: #ffd7f0;
--color-link-hovered: #ffdad5;
--font-title: 'Monument Extended';
--font-sans-serif: 'Inter', 'Lato', sans-serif;
--font-title: 'Roboto Flex';
--font-sans-serif: 'Roboto Flex', 'Inter', 'Lato', sans-serif;
--font-mono: 'IBM Plex Mono', monospace;
--page-width: 1200px;
@@ -99,7 +51,7 @@
body {
font-family: var(--font-sans-serif);
font-size: 1.1rem;
font-size: 1.2rem;
color: var(--color-text); /* text colour */
margin: 0;
@@ -122,7 +74,7 @@
p, span, li, pre, a {
color: var(--color-text);
line-height: 1.7rem;
line-height: 1.8rem;
font-weight: 400;
}
.styled-list {
@@ -148,13 +100,13 @@
}
h1 {
font-size: 3.5rem;
line-height: 4rem;
font-size: 4.2rem;
line-height: 4.3rem;
}
h2 {
font-size: 2rem;
line-height: 2.2rem;
font-size: 2.5rem;
line-height: 2.5rem;
}
h2::before {
letter-spacing: -0.5rem;
@@ -163,8 +115,8 @@
}
h3 {
font-size: 1.4rem;
line-height: 1.5rem;
font-size: 2.0rem;
line-height: 2.0rem;
}
h3::before {
letter-spacing: -0.3rem;
@@ -173,8 +125,8 @@
}
h4, h5, h6 {
font-size: 1.2rem;
line-height: 1.3rem;
font-size: 1.7rem;
line-height: 1.7rem;
}
h4::before {
letter-spacing: -0.26rem;
@@ -183,13 +135,23 @@
}
h1, h2, h3, h4, h5, h6 {
font-weight: 700;
font-weight: 870;
font-family: var(--font-title);
color: var(--color-highlight);
margin-top: 12px;
margin-bottom: 8px;
width: fit-content;
}
h1, h2, h3, h4, h5, h6, .wide-font {
font-variation-settings:
"wdth" 151, /* width */
"XTRA" 560, /* counter width */
"YTUC" 662, /* uppercase height */
"YTAS" 700, /* ascender height */
"YOPQ" 69, /* thin stroke */
"YTFI" 788 /* figure height */
;
}
code, .code-block {
font-family: var(--font-mono);

View File

@@ -117,5 +117,6 @@
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
padding-bottom: 12px;
}
</style>