When Angular 19 was released, Angular Material 19 uses a new way to override styles.
If you are using Angular 19 or Angular 20 or newer,
you need to use the new syntax to set the color of the Angular Material Snackbar.
See details in this article:
How To Change the Color of Angular Material Snackbar
See this GitHub repo for the exact code:
angular-signalstore-example