mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
* [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
32 lines
1006 B
SCSS
32 lines
1006 B
SCSS
@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,
|
|
)
|
|
}
|