I am new in to the angular material. I want to change a theme when a user click on one of the two available options: 1] Dark Theme 2] Light Theme
So when user select Dark Theme / Light Theme then it will change component color(mat-card, mat-toolbar, mat-sidenav-container etc.) as well as font color.
mat-card
from the Angular Material documentation to the stackblitz I linked in the comments here. As you can see when you change the theme via the buttons, the background color of themat-card
also changes. Maybe it is best if you post your code and what you have tried so far. – Fabian Küng