Switch between several themes

202 views
Skip to first unread message

Ralf Schneider

unread,
Dec 17, 2016, 3:12:15 AM12/17/16
to angular-material2
I want to provide several themes in my application and let the user switch between them. Is this possible with Angular Material 2?

in https://github.com/angular/material2/blob/master/docs/theming.md there is an info about multiple themes but I did not find anything about changing the theme at runtime. Did anyone managed to implement such a "theme switching"?

In Angular Material 1 there was $mdThemingProvider, but I did find anything like that in version 2.

PhineasFreakers

unread,
Dec 19, 2016, 9:39:41 AM12/19/16
to angular-material2
Here is an example Angular Material2 Example App

https://material2-app.firebaseapp.com/

with a live theme switch.
Reply all
Reply to author
Forward
0 new messages