Skip to content

Custom Theming (Please help) #3002

Answered by simonswiss
harinathpamu asked this question in Help
Discussion options

You must be logged in to vote

Hey 👋

The current implementation of darkMode is not meant to work as a multi-theme approach.

Here's a very basic demo of how you could handle this: https://github.com/adamwathan/theming-tailwind-demo

More context on the "dark mode only" nature of our darkMode implementation, copied from the dark mode PR:

Design Rationale

The obvious question when implementing this feature is "why not build some generalized universal theming solution that supports an arbitrary number of themes?"

The main reasons are:

  1. Operating systems only support light and dark.
  2. Supporting more than a single theme introduces significantly more complexity and challenging decisions.
  3. 99% of people only care about dark mode.
  4. W…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@harinathpamu
Comment options

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