Change default font family to Readex Pro

This commit is contained in:
Leilukin 2025-04-02 23:32:49 +08:00 committed by Helen Chong
parent 696043d29b
commit 3ec58976ff
11 changed files with 15 additions and 22 deletions

View File

@ -1,19 +1,19 @@
<link rel="preload" href="/assets/fonts/lexend/lexend-v19-latin-regular.woff2" as="font" type="font/woff2" crossorigin="anonymous"> <link rel="preload" href="/assets/fonts/readex-pro/readex-pro-v22-latin-regular.woff2" as="font" type="font/woff2" crossorigin="anonymous">
<link rel="preload" href="/assets/fonts/lexend/lexend-v19-latin-700.woff2" as="font" type="font/woff2" crossorigin="anonymous"> <link rel="preload" href="/assets/fonts/readex-pro/readex-pro-v22-latin-700.woff2" as="font" type="font/woff2" crossorigin="anonymous">
<style> <style>
@font-face { @font-face {
font-display: swap; font-display: swap;
font-family: 'Lexend'; font-family: 'Readex Pro';
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
src: url('/assets/fonts/lexend/lexend-v19-latin-regular.woff2') format('woff2'); src: url('/assets/fonts/readex-pro/readex-pro-v22-latin-regular.woff2') format('woff2');
} }
@font-face { @font-face {
font-display: swap; font-display: swap;
font-family: 'Lexend'; font-family: 'Readex Pro';
font-style: normal; font-style: normal;
font-weight: 700; font-weight: 700;
src: url('/assets/fonts/lexend/lexend-v19-latin-700.woff2') format('woff2'); src: url('/assets/fonts/readex-pro/readex-pro-v22-latin-700.woff2') format('woff2');
} }
</style> </style>
<link rel="stylesheet" href="/assets/fonts/fonts.css"> <link rel="stylesheet" href="/assets/fonts/fonts.css">

View File

@ -34,7 +34,7 @@
--clr-mod-entry-bg: #241445; --clr-mod-entry-bg: #241445;
--ff-default: 'Lexend', Avenir, Montserrat, Corbel, 'URW Gothic', source-sans-pro, sans-serif; --ff-default: 'Readex Pro', Avenir, Montserrat, Corbel, 'URW Gothic', source-sans-pro, sans-serif;
--ff-monospace: 'Intel One Mono', ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace; --ff-monospace: 'Intel One Mono', ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
--fs-main: clamp(1.125rem, 1.104rem + 0.107vw, 1.2rem); --fs-main: clamp(1.125rem, 1.104rem + 0.107vw, 1.2rem);

View File

@ -1,17 +1,10 @@
/* Lexend */ /* Readex Pro */
@font-face { @font-face {
font-display: swap; font-display: swap;
font-family: 'Lexend'; font-family: 'Readex Pro';
font-style: normal; font-style: normal;
font-weight: 600; font-weight: 600;
src: url('/assets/fonts/lexend/lexend-v19-latin-600.woff2') format('woff2'); src: url('/assets/fonts/readex-pro/readex-pro-v22-latin-600.woff2') format('woff2');
}
@font-face {
font-display: swap;
font-family: 'Lexend';
font-style: normal;
font-weight: 900;
src: url('/assets/fonts/lexend/lexend-v19-latin-900.woff2') format('woff2');
} }
/* Intel One Mono */ /* Intel One Mono */
@font-face { @font-face {

View File

@ -1,7 +1,7 @@
--- ---
title: Colophon title: Colophon
keyword: colophon page keyword: colophon page
updated: 2025-03-31T19:00:04+0800 updated: 2025-04-02T23:31:43+0800
toc: true toc: true
eleventyNavigation: eleventyNavigation:
order: 15 order: 15
@ -55,7 +55,7 @@ Eleventy has the Markdown parser [markdown-it](https://www.npmjs.com/package/mar
### Fonts ### Fonts
* [Lexend](https://www.lexend.com/) font family — used as the default font of this site. CSS stylesheet and WOFF2 font format generated by [google-webfonts-helper](https://gwfh.mranftl.com/fonts). * [Readex Pro](https://fonts.google.com/specimen/Readex+Pro) font family — used as the default font of this site. CSS stylesheet and WOFF2 font format generated by [google-webfonts-helper](https://gwfh.mranftl.com/fonts).
* [Intel One Mono](https://www.intel.com/content/www/us/en/company-overview/one-monospace-font.html) typeface — used as the monospaced font of this site. * [Intel One Mono](https://www.intel.com/content/www/us/en/company-overview/one-monospace-font.html) typeface — used as the monospaced font of this site.
## Branding ## Branding