
@use 'sass:map';
@use '../abstract/base' as base;
@use '../abstract/variables' as v;
@use 'typescale-tokens' as scale;

$typescale-tokens: 'all' !default;

@property --#{base.$prefix}-density {
syntax: '<integer>';
inherits: true;
initial-value: 0;
}

:root {
--#{base.$prefix}-ref-typeface-brand: #{map.get(map.get(v.$typescale, 'headline-small'), 'font-family')};
--#{base.$prefix}-ref-typeface-plain: #{map.get(map.get(v.$typescale, 'body-medium'), 'font-family')};

@each $step, $radius in v.$shape {
--#{base.$prefix}-sys-shape-corner-#{$step}: #{$radius};
}

@include scale.tokens($typescale-tokens);
}

@for $step from 1 through 5 {
.#{base.$prefix}-density--#{$step} {
--#{base.$prefix}-density: -#{$step};
}
}
