I am having trouble with Angular4, @angular/cli and custom themes in Material. I have searched many times for tuts and read and reread the docs, but nothing works. I'm afraid this seems to be something a few people have asked, but the answers to their questions don't seem to work for me and seem to correspond to earlier versions of angular and angular-cli.
I can get the prebuilt themes to work, but when I try to use custom themes nothing happens. There must be some step I'm not doing, but it seems from the tuts that I just need to add a scss file containing my custom theme to my src folder and add the filename to the styles section of angular-cli.json
I have tried various @import syntax and it does not seem to be importing? Does
@import '~@angular/material/theming'
work or should it be
@import '~@angular/material/_theming'
or even
@import '~@angular/material/_theming.scss'
?
Do I need a separate @import in my styles.css file?
I cannot find any tutorials that work, and the documentation seems to leave things out. Are custom themes just broken, as many people seem to claim?