mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[AAE-12782] Custom theme creation (#8450)
* [AAE-12782] Create custom theme * copied ui from ACA * fix some lints * Added theme * Added theme * lint part 1 * lint part 2 * lint part 3 backg color * lint part 4 * lint part 5 * lint part 6 * lint part 7 * update * fix map_merge
This commit is contained in:
24
lib/core/custom-theme/material-theme.scss
Normal file
24
lib/core/custom-theme/material-theme.scss
Normal file
@@ -0,0 +1,24 @@
|
||||
@use 'sass:map';
|
||||
@import './theme/theme-data';
|
||||
|
||||
$custom-theme: mat-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);
|
||||
}
|
Reference in New Issue
Block a user