✨ Announcing our seed funding led by Lux Capital! Read more about it on our blog
DocsBlogChangelog

Search documentation...

/

Star

12k+

[ Learn ]

[ Concepts ]

[ Reference ]

Theming


You can also add a dark mode toggle by adding rx.toggle_color_mode to an event trigger. This will change the whole app to dark mode.
Here is an example of a button that will change the app to dark mode:
rx.button(
    rx.icon(tag="moon"),
    on_click=rx.toggle_color_mode,
)
More theming options are coming soon!
← Custom StylesheetsDatabase Overview →

Copyright © 2023 Pynecone, Inc.