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:
31
lib/core/custom-theme/theme/custom-theme-palettes.scss
Normal file
31
lib/core/custom-theme/theme/custom-theme-palettes.scss
Normal file
@@ -0,0 +1,31 @@
|
||||
@use '@angular/material' as mat;
|
||||
@import '../../colors';
|
||||
@import './custom-palette-creator.scss';
|
||||
|
||||
@function get-mat-palettes($primary-color, $accent-color) {
|
||||
$mat-primary-palette: null;
|
||||
|
||||
@if ($primary-color) {
|
||||
$custom-theme-primary-palette: create-color-palette($primary-color, 'primary');
|
||||
$mat-primary-palette: mat.define-palette($custom-theme-primary-palette, 500);
|
||||
} @else {
|
||||
$mat-primary-palette: mat.define-palette($aca-primary-blue, A100);
|
||||
}
|
||||
|
||||
$mat-accent-palette: null;
|
||||
|
||||
@if ($accent-color) {
|
||||
$custom-theme-accent-palette: create-color-palette($accent-color, 'accent');
|
||||
$mat-accent-palette: mat.define-palette($custom-theme-accent-palette, 500);
|
||||
} @else {
|
||||
$mat-accent-palette: mat.define-palette($aca-accent-green, A200);
|
||||
}
|
||||
|
||||
$mat-warn-palette: mat.define-palette($aca-warn, A100);
|
||||
|
||||
@return (
|
||||
primary: $mat-primary-palette,
|
||||
accent: $mat-accent-palette,
|
||||
warning: $mat-warn-palette,
|
||||
)
|
||||
}
|
Reference in New Issue
Block a user