@use "sass:string";
@use "abstract/base" as base;
@use "abstract/emit" as emit;
@use "abstract/variables" as v;

@mixin spring-tokens {
@if emit.$spring-tokens != true {
@error 'motion.spring-tokens needs spring-token mode. Load the gateway first: '
+ '@use "material/src/styles/config" with ($spring-tokens: true);';
}
@each $key, $value in v.$motion {
@if string.index($key, "spring-") == 1 {
--#{base.$prefix}-sys-motion-#{$key}: #{$value};
}
}
}
