-
Notifications
You must be signed in to change notification settings - Fork 913
/
Copy path_md-comp-list.scss
44 lines (37 loc) · 968 Bytes
/
_md-comp-list.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
//
// 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';
@use './md-sys-color';
@use './v0_192/md-comp-list';
// go/keep-sorted end
$supported-tokens: (
// go/keep-sorted start
'container-color',
// go/keep-sorted end
);
$_default: (
'md-sys-color': md-sys-color.values-light(),
);
@function values(
$deps: $_default,
$exclude-hardcoded-values: false,
$exclude-custom-properties: false
) {
$list-tokens: md-comp-list.values($deps, $exclude-hardcoded-values);
$tokens: (
'container-color': map.get($list-tokens, 'list-item-container-color'),
);
$tokens: validate.values($tokens, $supported-tokens: $supported-tokens);
@if not $exclude-custom-properties {
@each $token, $value in $tokens {
$tokens: map.set($tokens, $token, var(--md-list-#{$token}, #{$value}));
}
}
@return $tokens;
}