mirror of https://github.com/ghostfolio/ghostfolio
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
886 B
26 lines
886 B
@use 'sass:map';
|
|
@use '../core/tokens/m3-utils';
|
|
@use '../core/tokens/m3';
|
|
|
|
/// Generates custom tokens for the mat-sidenav.
|
|
@function get-tokens($theme: m3.$sys-theme) {
|
|
$system: m3-utils.get-system($theme);
|
|
|
|
@return (
|
|
base: (
|
|
sidenav-container-shape: map.get($system, corner-large),
|
|
sidenav-container-elevation-shadow: none,
|
|
sidenav-container-width: 360px,
|
|
sidenav-container-divider-color: transparent,
|
|
),
|
|
color: (
|
|
sidenav-container-background-color: map.get($system, surface),
|
|
sidenav-container-text-color: map.get($system, on-surface-variant),
|
|
sidenav-content-background-color: map.get($system, background),
|
|
sidenav-content-text-color: map.get($system, on-background),
|
|
sidenav-scrim-color: m3-utils.color-with-opacity(map.get($system, neutral-variant20), 40%),
|
|
),
|
|
typography: (),
|
|
density: (),
|
|
);
|
|
}
|
|
|