You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

27 lines
798 B

@use 'sass:map';
@use '../core/tokens/m3-utils';
@use '../core/tokens/m3';
// The prefix used to generate the fully qualified name for tokens in this file.
$prefix: (mat, progress-spinner);
/// Generates the tokens for MDC circular-progress
/// @param {String} $color-variant The color variant to use for the component
@function get-tokens($theme: m3.$sys-theme, $color-variant: null) {
$system: m3-utils.get-system($theme);
@if $color-variant {
$system: m3-utils.replace-colors-with-variant($system, primary, $color-variant);
}
@return (
base: (
progress-spinner-size: 48px,
progress-spinner-active-indicator-width: 4px,
),
color: (
progress-spinner-active-indicator-color: map.get($system, primary),
),
typography: (),
density: (),
);
}