-
Notifications
You must be signed in to change notification settings - Fork 938
/
Copy path_md-comp-icon.scss
46 lines (40 loc) · 991 Bytes
/
_md-comp-icon.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//
// Copyright 2023 Google LLC
// SPDX-License-Identifier: Apache-2.0
//
// go/keep-sorted start
@use 'sass:map';
// go/keep-sorted end
// go/keep-sorted start
@use './internal/validate';
// go/keep-sorted end
$supported-tokens: (
// go/keep-sorted start
'font',
'size',
// go/keep-sorted end
);
@function _get-new-tokens($exclude-hardcoded-values) {
@return (
// go/keep-sorted start
font: if($exclude-hardcoded-values, null, 'Material Symbols Outlined'),
size: if($exclude-hardcoded-values, null, 24px),
// go/keep-sorted end
);
}
@function values(
$exclude-hardcoded-values: false,
$exclude-custom-properties: false
) {
$tokens: validate.values(
(),
$supported-tokens: $supported-tokens,
$new-tokens: _get-new-tokens($exclude-hardcoded-values)
);
@if not $exclude-custom-properties {
@each $token, $value in $tokens {
$tokens: map.set($tokens, $token, var(--md-icon-#{$token}, #{$value}));
}
}
@return $tokens;
}