google / mesop

Build delightful web apps quickly in Python
https://google.github.io/mesop/
Apache License 2.0
4.17k stars 190 forks source link

Support dark theme in Mesop #461

Open wwwillchen opened 2 weeks ago

wwwillchen commented 2 weeks ago

Discussed in https://github.com/google/mesop/discussions/446

Originally posted by **pranshu-raj-211** June 17, 2024 I'm making a couple of websites using mesop, and I'd like to implement a dark mode toggle, cards among other stuff. Could you point me to some example in this repo where something similar has been done, so that I can make it and submit a PR? Thanks for the wonderful work that you're doing!

We should expose a way to use Angular Material dark theme: https://material.angular.io/guide/theming#customizing-your-colors

adriens commented 2 weeks ago

Yes, please :pray: :star_struck:

lnarimatsu commented 1 week ago

Interesting! It would be nice to have an easy way to change the default color tokens for primary, secondary, etc.

adriens commented 1 week ago

Yes please make it happening so we can make better demos and screenshots