2023-01-31 16:53:34 +01:00
|
|
|
@use 'sass:map';
|
|
|
|
@use 'sass:meta';
|
|
|
|
@use 'scale';
|
2023-02-20 15:19:52 +01:00
|
|
|
@use 'color/brand';
|
2023-02-09 22:15:01 +01:00
|
|
|
@use 'color';
|
2023-01-31 07:13:57 +01:00
|
|
|
|
|
|
|
/// Returns all the variables defined in a module,
|
|
|
|
/// as a map from variable names (without $)
|
|
|
|
/// to the values of those variables.
|
|
|
|
/// @link https://sass-lang.com/documentation/modules/meta#module-variables
|
|
|
|
$scale: meta.module-variables('scale');
|
2023-02-09 22:15:01 +01:00
|
|
|
$colors: meta.module-variables('color');
|
2023-01-31 07:13:57 +01:00
|
|
|
|
|
|
|
// Loops through and returns all tokens from above files as CSS variables.
|
|
|
|
@mixin tokens($map, $prefix: null) {
|
|
|
|
@each $tokenname, $tokenvalue in $map {
|
|
|
|
--#{$prefix}#{$tokenname}: #{$tokenvalue};
|
|
|
|
}
|
|
|
|
}
|