Bartosz Sekula 3c7e8e84ff
AAE-31712 Custom theme fix after ng17 update (#10661)
* AAE-31712 Fix custom theme after Angular17 update

* update
2025-02-18 13:58:29 +01:00

40 lines
739 B
SCSS

@use 'sass:map';
@use '@angular/material' as mat;
@import './theme/theme-data';
$custom-theme: mat.define-light-theme(
(
color: (
primary: map.get($palettes, primary),
accent: map.get($palettes, accent),
warn: map.get($palettes, warning),
),
typography: $app-typography,
)
);
@if $background-color {
$custom-theme: get-custom-background-color(
$background-color,
$custom-theme
);
}
@if $text-color {
$custom-theme: get-custom-text-color($text-color, $custom-theme);
}
@if $base-font-size {
body,
html {
font-size: $base-font-size;
}
}
@if $font-family {
body,
html {
font-family: $font-family;
}
}