I want to make a theme where the bg is dark indigo and font is white. I am having trouble making the font white... How would one do this with the angular material themes? I know this can be done with CSS, but I thought this would be configurable as part of the theming
This is my config:
var inversePurple = $mdThemingProvider.extendPalette('indigo', {
'contrastDefaultColor': 'light', // whether, by default, text (contrast)
// on this palette should be dark or light
'contrastDarkColors': "light",
'contrastLightColors': 'light' // could also specify this if default was 'dark'
});
$mdThemingProvider.definePalette('inversePurple', inversePurple)
$mdThemingProvider.theme('inverse')
.backgroundPalette('inversePurple', {
'default': '500',
})
.dark()
My HTML:
<md-content md-theme="inverse" layout-fill flex>
<p>This is not white</p>
</md-content>
.config(function ($mdThemingProvider) {
$mdThemingProvider.theme('default')
.backgroundPalette('indigo',{
'default':'900',
});
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With