mirror of
https://github.com/material-components/material-web.git
synced 2024-09-11 13:46:10 +03:00
32 lines
925 B
SCSS
32 lines
925 B
SCSS
//
|
|
// 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 './v0_192/md-sys-elevation';
|
|
// go/keep-sorted end
|
|
|
|
@function values($exclude-hardcoded-values: false) {
|
|
$tokens: md-sys-elevation.values($exclude-hardcoded-values);
|
|
$tokens: map.merge(
|
|
$tokens,
|
|
(
|
|
// Elevation levels on web should use the level number, not the dp value.
|
|
// We can remove this if the generated tokens swap from dp to level. See
|
|
// b/261602454.
|
|
'level0': if($exclude-hardcoded-values, null, 0),
|
|
'level1': if($exclude-hardcoded-values, null, 1),
|
|
'level2': if($exclude-hardcoded-values, null, 2),
|
|
'level3': if($exclude-hardcoded-values, null, 3),
|
|
'level4': if($exclude-hardcoded-values, null, 4),
|
|
'level5': if($exclude-hardcoded-values, null, 5)
|
|
)
|
|
);
|
|
|
|
@return $tokens;
|
|
}
|