Virtual Colors vs Mutli-Theme Tokens? #3056
Replies: 2 comments 3 replies
-
|
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.
-
|
@segunadebayo or @anubra266 I've noticed this too this week when we started scoping out our themes into their own respective presets (basically just semantic color palettes and conditions). Does this mean that the Virtual Color feature is scoped to the preset a recipe belongs to? For example:
Panda config uses all three in the presets option. Base/recipes/button is something like:
☝️ Since base no longer registers sem-tokens, Panda has no idea how to connect the virtual color? Maybe? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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
colorPalettetoken in my config theme.Ideally, I'd like to do something like this in my panda.config.ts
and set
colorPaletteon the top element in the app and just use thetexttoken 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