blob: fb6d03c9e8bbe958dbfee459af2a323adbc9d652 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
@forward 'style-overrides';
@forward 'variables';
@use 'sass:meta';
@use 'variables';
@function custom-property-name($name) {
@return '--' + $name;
}
@mixin define-custom-property($name, $value) {
#{custom-property-name($name)}: meta.inspect($value);
}
:root {
// Make vendor variables accessible to JS/TS code via CSS custom property definition.
@each $key_name, $value in meta.module-variables('variables') {
@if type-of($value) != 'map' {
@include define-custom-property($key_name, $value);
}
}
}
|