Skip to content

Node.js based forum software built for the modern web

feat: upgrade fonts

Barış Soner Uşaklı392a7d2803df
diff --git a/install/package.json b/install/package.json
index dea6202bf4..51f4c764a7 100644
--- a/install/package.json
+++ b/install/package.json
@@ -29,8 +29,8 @@
},
"dependencies": {
"@adactive/bootstrap-tagsinput": "0.8.2",
- "@fontsource/inter": "4.5.15",
- "@fontsource/poppins": "4.5.10",
+ "@fontsource/inter": "5.0.2",
+ "@fontsource/poppins": "5.0.2",
"@isaacs/ttlcache": "1.4.0",
"@popperjs/core": "2.11.8",
"ace-builds": "1.22.0",
diff --git a/public/scss/admin/fonts.scss b/public/scss/admin/fonts.scss
index 11b0d4d1a2..b3d140e5bc 100644
--- a/public/scss/admin/fonts.scss
+++ b/public/scss/admin/fonts.scss
@@ -3,18 +3,16 @@
$weights: $font-weight-light, $font-weight-normal, $font-weight-semibold, $font-weight-bold;
-@each $weight in $weights {
- @include Inter.fontFace(
- $weight: $weight,
- $display: fallback,
- $fontDir: "./plugins/core/inter"
- );
- @include Poppins.fontFace(
- $weight: $weight,
- $display: fallback,
- $fontDir: "./plugins/core/poppins"
- );
-}
+@include Inter.faces(
+ $weights: $weights,
+ $display: fallback,
+ $directory: "./plugins/core/inter"
+);
+@include Poppins.faces(
+ $weights: $weights,
+ $display: fallback,
+ $directory: "./plugins/core/poppins"
+);
.ff-base { font-family: $font-family-base !important; }
.ff-sans { font-family: $font-family-sans-serif !important; }