-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Labels
cannot reproduceThe team is unable to reproduce this issue with the information providedThe team is unable to reproduce this issue with the information provided
Description
I cannot find an open/closed issue with this but I found this: http://stackoverflow.com/questions/41967601/dark-theme-in-angular-material2-is-not-dark
For the contrast from white to dark to apply if you add a $theme: mat-dark-theme($primary, $accent);
in struction
Everything just stays on the light theme no matter which theme you choose or create.
If you @import '~@angular/material/core/theming/prebuilt/purple-green';
to app.component.scss (using the default CLI project)
or create your own:
@include mat-core();
$primary: mat-palette($mat-indigo,A400);
$accent: mat-palette($mat-lime,A400);
$warn: mat-palette($mat-red);
$test: mat-dark-theme($primary, $accent, $warn);
@include angular-material-theme($test);
The colours are available but none of the stylings under $mat-dark-theme-background
and $mat-dark-theme-foreground
work.
Metadata
Metadata
Assignees
Labels
cannot reproduceThe team is unable to reproduce this issue with the information providedThe team is unable to reproduce this issue with the information provided