feat: add local font files and update global styles to use them

This commit is contained in:
zguiyang
2026-03-13 15:08:25 +08:00
parent 0d050b0c14
commit 33cc9a31b8
6 changed files with 34 additions and 1 deletions

33
src/styles/fonts.css Normal file
View File

@@ -0,0 +1,33 @@
/* Local Fonts - Archivo */
@font-face {
font-family: 'Archivo';
font-style: normal;
font-weight: 400;
font-stretch: normal;
font-display: swap;
src: url('./fonts/archivo-400.ttf') format('truetype');
}
@font-face {
font-family: 'Archivo';
font-style: normal;
font-weight: 700;
font-stretch: normal;
font-display: swap;
src: url('./fonts/archivo-700.ttf') format('truetype');
}
/* Local Fonts - Space Grotesk */
@font-face {
font-family: 'Space Grotesk';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('./fonts/space-grotesk-400.ttf') format('truetype');
}
@font-face {
font-family: 'Space Grotesk';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url('./fonts/space-grotesk-700.ttf') format('truetype');
}