1
0
mirror of https://github.com/sendevia/website.git synced 2026-03-08 08:44:15 +08:00

feat(theme): remove unused tokens

This commit is contained in:
2025-11-03 23:16:15 +08:00
parent 5882418617
commit 2638c743ba
2 changed files with 17 additions and 62 deletions

View File

@@ -2,43 +2,23 @@
$type-scale,
$font-family: var(--md-sys-typescale-#{$type-scale}-family),
$font-size: var(--md-sys-typescale-#{$type-scale}-size),
$font-weight: var(--md-sys-typescale-#{$type-scale}-weight),
$line-height: var(--md-sys-typescale-#{$type-scale}-line-height),
$letter-spacing: var(--md-sys-typescale-#{$type-scale}-letter-spacing),
$font-variation-settings: var(--md-sys-typescale-#{$type-scale}-font-variation-settings)
) {
font-family: $font-family;
font-size: $font-size;
font-weight: $font-weight;
line-height: $line-height;
letter-spacing: $letter-spacing;
font-variation-settings: $font-variation-settings;
}
@mixin typescale(
$name,
$family,
$weight,
$size,
$tracking,
$line-height,
$vf-weight,
$vf-GRAD,
$vf-wdth,
$vf-ROND,
$vf-opsz,
$vf-CRSV,
$vf-slnt,
$vf-FILL,
$vf-HEXP
) {
@mixin typescale($name, $family, $size, $tracking, $line-height, $vf-weight) {
--md-sys-typescale-#{$name}-family: #{$family};
--md-sys-typescale-#{$name}-weight: #{$weight};
--md-sys-typescale-#{$name}-size: #{$size}rem;
--md-sys-typescale-#{$name}-letter-spacing: #{$tracking}rem;
--md-sys-typescale-#{$name}-line-height: #{$line-height}rem;
--md-sys-typescale-#{$name}-font-variation-settings: "wght" #{$vf-weight}, "GRAD" #{$vf-GRAD}, "wdth" #{$vf-wdth}, "ROND" #{$vf-ROND}, "opsz" #{$vf-opsz},
"CRSV" #{$vf-CRSV}, "slnt" #{$vf-slnt}, "FILL" #{$vf-FILL}, "HEXP" #{$vf-HEXP};
--md-sys-typescale-#{$name}-font-variation-settings: "wght" #{$vf-weight};
}
@mixin material-symbols($name: "", $size: 24, $font-size: $size, $line-height: $size) {

File diff suppressed because one or more lines are too long