Skip to content

Managing multiple themes #249

Answered by nandorojo
kennetpostigo asked this question in Q&A
Discussion options

You must be logged in to vote

i think you can more simply do:

const lightTheme: typeof darkTheme = {
  …darkTheme,
  colors: { 
    // light colors here 
  }
}

and then remove the module declaration for both themes. the two themes should have the same keys for colors.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@kennetpostigo
Comment options

@nandorojo
Comment options

@nandorojo
Comment options

@kennetpostigo
Comment options

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