I'm experiencing some issues implementing Custom Palettes with Angular Material Framework. I'm still trying to grasp the concept of using a custom theme.
In the Angular configuration file.
$mdThemingProvider.definePalette('crmPalette', {
'50': 'fafafa',
'100': 'ffcdd2',
'200': '000000',
'300': 'e57373',
'400': 'ef5350',
'500': 'f44336',
'600': 'e53935',
'700': 'd32f2f',
'800': 'c62828',
'900': 'b71c1c',
'A100': 'ff8a80',
'A200': 'ff5252',
'A400': 'ff1744',
'A700': 'd50000',
'contrastDefaultColor': 'light',
'contrastDarkColors': ['50', '100', '200'],
'contrastLightColors': undefined
});
$mdThemingProvider.theme('crmPaletteTheme')
.primaryPalette('crmPalette');
In a View file
<div md-theme="crmPaletteTheme">
<md-button class="md-raised">Login</md-button>
</div>
I have some questions
Once a custom theme is defined, how do I use 'fafafa' and 'ffcdd2' to set the background color and text color of a md-button?