Update CustomStyles.astro to optimize font loading by adding font-face properties and removing unused imports
This commit is contained in:
@@ -1,6 +1,4 @@
|
|||||||
---
|
---
|
||||||
import '@fontsource-variable/inter';
|
|
||||||
|
|
||||||
// 'DM Sans'
|
// 'DM Sans'
|
||||||
// Nunito
|
// Nunito
|
||||||
// Dosis
|
// Dosis
|
||||||
@@ -23,7 +21,10 @@ import '@fontsource-variable/inter';
|
|||||||
/* Optimize font loading with font-display:swap */
|
/* Optimize font loading with font-display:swap */
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Inter Variable';
|
font-family: 'Inter Variable';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 100 900;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
|
src: url('/fonts/inter-variable.woff2') format('woff2');
|
||||||
}
|
}
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
|
Reference in New Issue
Block a user