Skip to content

Dark mode for Billing Monkey #1752

Answered by richbachman
PoojMenon asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @PoojMenon

Thanks for posting this and taking interest in dark mode, and super happy to hear that billing is entirely in Paste. Thats really exciting, and the prototype looks great.

To answer your first question, we have an RFC/FAQ here that should answer things. If there's something we're missing, feel free to reach back out.

For switching between light and dark, your team will need some way of toggling the Paste theme. So instead of theme="default" at the ThemeProvider level, that will need to switch to theme="dark" in order to enabled dark mode. We use context in order to store the theme value, and the toggle changes the value of that context. You can see code for our setup here.

Le…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@PoojMenon
Comment options

@richbachman
Comment options

@PoojMenon
Comment options

@nkrantz
Comment options

@PoojMenon
Comment options

Answer selected by richbachman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants