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,
)
Any custom colors you add will not be overwritten by the dark mode toggle.
More theming options are coming soon!