mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-18 11:15:12 +00:00
# Which Problems Are Solved # How the Problems Are Solved # Additional Changes # Additional Context - Closes #10690
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
@use 'sass:map';
|
||||
|
||||
@function modify-palette($theme, $map, $partial) {
|
||||
// A theme is a map with the following structure:
|
||||
// (
|
||||
@@ -11,28 +13,28 @@
|
||||
// Again in the background palette itself.
|
||||
|
||||
// Replace the background in the color object's background palette.
|
||||
$theme-color: map-get($theme, color);
|
||||
$color-map-palette: map-get($theme-color, $map);
|
||||
$color-map-palette: map-merge($color-map-palette, $partial);
|
||||
$theme-color: map.get($theme, color);
|
||||
$color-map-palette: map.get($theme-color, $map);
|
||||
$color-map-palette: map.merge($color-map-palette, $partial);
|
||||
|
||||
// Replace the background in the background palette.
|
||||
$background-palette: map-get($theme, $map);
|
||||
$background-palette: map-merge($background-palette, $partial);
|
||||
$background-palette: map.get($theme, $map);
|
||||
$background-palette: map.merge($background-palette, $partial);
|
||||
|
||||
// Merge the changes into a new theme.
|
||||
$modified-theme-color: map-merge(
|
||||
$modified-theme-color: map.merge(
|
||||
$theme-color,
|
||||
(
|
||||
$map: $color-map-palette,
|
||||
)
|
||||
);
|
||||
$modified-theme: map-merge(
|
||||
$modified-theme: map.merge(
|
||||
$theme,
|
||||
(
|
||||
color: $modified-theme-color,
|
||||
)
|
||||
);
|
||||
$modified-theme: map-merge(
|
||||
$modified-theme: map.merge(
|
||||
$modified-theme,
|
||||
(
|
||||
$map: $background-palette,
|
||||
|
||||
Reference in New Issue
Block a user