Virtual Colors vs Mutli-Theme Tokens? #3056
chuckdries
started this conversation in
General
Replies: 1 comment 1 reply
-
Not quite sure what is the objective but have you considered using On the one hand this approach allows user to define whatever colors they want via input field at runtime. Based on those inputs you can update Please let me know if you need more help brainstorming or in case I missed the point. |
Beta Was this translation helpful? Give feedback.
1 reply
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