/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/material/core/_m2-app.scss
23 строки
567 B
Andrew Seguin
refactor: align m2 and m3 token file functions by using get-tokens (#31425)
26 июн 2025, 19:15
Не верифицирован
26 июн 2025, 19:15
3db4f23
Код
Авторство
О чём код?
@use 'sass:map'; @use './style/elevation'; @use '../core/tokens/m2-utils'; @function get-tokens($theme) { $system: m2-utils.get-system($theme); $color-tokens: ( app-background-color: map.get($system, background), app-text-color: map.get($system, on-surface) ); @for $zValue from 0 through 24 { $color-tokens: map.set($color-tokens, 'app-elevation-shadow-level-#{$zValue}', elevation.get-box-shadow($zValue, map.get($system, shadow))); } @return ( base: (), color: $color-tokens, typography: (), density: (), ); }