Add stylesheet for Lexend font family

This commit is contained in:
Helen Chong 2024-10-06 17:33:12 +08:00
parent 2bd92451b7
commit 8c5acb64b1
3 changed files with 15 additions and 7 deletions

View File

@ -12,6 +12,7 @@
{# Fonts #} {# Fonts #}
{% include "global/fontdefault.njk" %} {% include "global/fontdefault.njk" %}
<link rel="stylesheet" href="/assets/fonts/lexend.css">
<link rel="stylesheet" href="/assets/fonts/intel-one-mono.css"> <link rel="stylesheet" href="/assets/fonts/intel-one-mono.css">
{# CSS #} {# CSS #}

View File

@ -8,13 +8,6 @@
font-weight: 400; font-weight: 400;
src: url('/assets/fonts/lexend/lexend-v19-latin-regular.woff2') format('woff2'); src: url('/assets/fonts/lexend/lexend-v19-latin-regular.woff2') format('woff2');
} }
@font-face {
font-display: swap;
font-family: 'Lexend';
font-style: normal;
font-weight: 600;
src: url('/assets/fonts/lexend/lexend-v19-latin-600.woff2') format('woff2');
}
@font-face { @font-face {
font-display: swap; font-display: swap;
font-family: 'Lexend'; font-family: 'Lexend';

View File

@ -0,0 +1,14 @@
@font-face {
font-display: swap;
font-family: 'Lexend';
font-style: normal;
font-weight: 600;
src: url('/assets/fonts/lexend/lexend-v19-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');
}