I am trying to create a custom theme for my angular 2 app which is using a few components from angular material 2.
I tried to google this but could'nt find much. The only documentation available is for Angular Material :- https://material.angularjs.org/latest/Theming/03_configuring_a_theme
I could not locate the corresponding documentation for angular 2.
So far I have a figured out that there is a file under @angular2-material/core/style named _default-theme.scss with the below contents :-
@import 'theme-functions';
@import 'palette';
// Person creating a theme writes variables like this:
$md-is-dark-theme: false;
$md-primary: md-palette($md-teal, 500, 100, 700, $md-contrast-palettes);
$md-accent: md-palette($md-purple, 500, 300, 800, $md-contrast-palettes);
$md-warn: md-palette($md-red, 500, 300, 900, $md-contrast-palettes);
$md-foreground: if($md-is-dark-theme, $md-dark-theme-foreground, $md-light-theme-foreground);
$md-background: if($md-is-dark-theme, $md-dark-theme-background, $md-light-theme-background);
I changed
$md-primary: md-palette($md-teal, 500, 100, 700, $md-contrast-palettes);
To
$md-primary: md-palette($md-blue, 500, 100, 700, $md-contrast-palettes);
However this does not seem to be working. Any suggestions would be welcome.