Virtual Colors vs Mutli-Theme Tokens? #3056
chuckdries
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm working on an interface which is mostly monochrome, but the user can change the primary color at runtime. I'm wondering whether the Virtual Color feature is right for this, or whether I should explicitly define the various color themes using Multi-Theme Tokens. So far, virtual colors gives me the benefit of re-using the built in theme color palette out of the box, but has the con that I can't use the
colorPalette
token in my config theme.Ideally, I'd like to do something like this in my panda.config.ts
and set
colorPalette
on the top element in the app and just use thetext
token everywhere, but that doesn't appear to work.Any guidance? I get the feeling that Multi-Theme Tokens is what I actually want, but I can't see a way to reuse the default theme hues with that.
Beta Was this translation helpful? Give feedback.
All reactions