To customize your own theme, you will need to follow these steps from Angular Material official site .
If you run into any problem, please let me know.
Looks like we needed to override the background and foreground variables. I managed to achieve it using this example
Currently, there is no simple built-in way to change the background and foreground color.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.