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'
|
||||
// Nunito
|
||||
// Dosis
|
||||
@@ -23,7 +21,10 @@ import '@fontsource-variable/inter';
|
||||
/* Optimize font loading with font-display:swap */
|
||||
@font-face {
|
||||
font-family: 'Inter Variable';
|
||||
font-style: normal;
|
||||
font-weight: 100 900;
|
||||
font-display: swap;
|
||||
src: url('/fonts/inter-variable.woff2') format('woff2');
|
||||
}
|
||||
|
||||
:root {
|
||||
|
Reference in New Issue
Block a user