chore: use fontsource-utils/scss to get rid of deprecation warning

closes #13520
This commit is contained in:
Barış Soner Uşaklı
2025-08-20 11:48:19 -04:00
parent 981d3c29f8
commit 44c0413c75
3 changed files with 18 additions and 12 deletions

View File

@@ -29,6 +29,7 @@
}, },
"dependencies": { "dependencies": {
"@adactive/bootstrap-tagsinput": "0.8.2", "@adactive/bootstrap-tagsinput": "0.8.2",
"@fontsource-utils/scss": "0.2.1",
"@fontsource/inter": "5.2.6", "@fontsource/inter": "5.2.6",
"@fontsource/poppins": "5.2.6", "@fontsource/poppins": "5.2.6",
"@fortawesome/fontawesome-free": "6.7.2", "@fortawesome/fontawesome-free": "6.7.2",

View File

@@ -1,20 +1,24 @@
@use "@fontsource/inter/scss/mixins" as Inter; @use "pkg:@fontsource-utils/scss" as fontsource;
@use "@fontsource/poppins/scss/mixins" as Poppins; @use "pkg:@fontsource/inter/scss" as inter;
@use "pkg:@fontsource/poppins/scss" as poppins;
$weights: $font-weight-light, $font-weight-normal, $font-weight-semibold, $font-weight-bold; $weights: $font-weight-light, $font-weight-normal, $font-weight-semibold, $font-weight-bold;
$subsets: (latin, latin-ext); $subsets: (latin, latin-ext);
@include Inter.faces( @include fontsource.faces(
$weights: $weights, $metadata: inter.$metadata,
$subsets: $subsets, $subsets: $subsets,
$display: fallback, $weights: $weights,
$directory: "./plugins/core/inter" $styles: all,
$directory: "./plugins/core/inter"
); );
@include Poppins.faces(
$weights: $weights, @include fontsource.faces(
$subsets: $subsets, $metadata: poppins.$metadata,
$display: fallback, $subsets: $subsets,
$directory: "./plugins/core/poppins" $weights: $weights,
$styles: all,
$directory: "./plugins/core/poppins"
); );
.ff-base { font-family: $font-family-base !important; } .ff-base { font-family: $font-family-base !important; }

View File

@@ -162,6 +162,7 @@ actions.buildCSS = async function buildCSS(data) {
try { try {
const opts = { const opts = {
loadPaths: data.paths, loadPaths: data.paths,
importers: [new sass.NodePackageImporter()]
}; };
if (data.minify) { if (data.minify) {
opts.silenceDeprecations = [ opts.silenceDeprecations = [