Angular 2 Material Foreground -
i have difficulties changing colour of foreground in angular 2 material. example in toolbar, text black. tried change following styles
@import '~@angular/material/theming'; $primary: mat-palette($mat-cyan, 300); $accent : mat-palette($mat-yellow, 500);; $warn : mat-palette($mat-red, 600); $theme-foreground: ( base: gray, divider: $white-12-opacity, dividers: $white-12-opacity, disabled: rgba(200, 200, 200, 0.38), disabled-button: rgba(200, 200, 200, 0.38), disabled-text: rgba(200, 200, 200, 0.38), hint-text: rgba(200, 200, 200, 0.38), secondary-text: rgba(200, 200, 200, 0.54), icon: rgba(200, 200, 200, 0.54), icons: rgba(200, 200 , 200, 0.54), text: rgba(200, 200, 200, 0.87), slider-min: rgba(200, 200, 200, 0.87), slider-off: rgba(200, 200, 200, 0.26), slider-off-active: rgba(200, 200, 200, 0.38), ); $theme-background: ( status-bar: map_get($mat-grey, 300), app-bar: map_get($mat-grey, 100), background: map_get($mat-grey, 50), hover: rgba(200, 200, 200, 0.04), // todo(kara): check style material design ux card: white, dialog: white, disabled-button: $black-12-opacity, raised-button: white, focused-button: $black-6-opacity, selected-button: map_get($mat-grey, 300), selected-disabled-button: map_get($mat-grey, 400), disabled-button-toggle: map_get($mat-grey, 200), unselected-chip: map_get($mat-grey, 300), ); $theme: ( primary: $primary, accent: $accent, warn: $warn, is-dark: true, foreground: $theme-foreground, background: $theme-background ); @include mat-core(); @include angular-material-theme($theme); primary , accent colours changed, frontend did not change. how can fix it?
i tried set toolbar theme, there wasn't difference.
Comments
Post a Comment