Replies: 1 comment
-
virtualColor light and dark properties can only be keys of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have set of colors defined in theme Object, I want to add design tokens which will reference these colors for light and dark mode. I am trying to use
virtualColor
function to define different values for light and dark color schemes.As of now
virtualColor
defaults to whatever theprimarySade
value is set for any theme.color key. Is there a way to reference different shade values for light and dark color schemes?If this is not possible, What is the best way to implement this workflow?
// theme.ts
// page.tsx
Originally posted by @Raalzz in #6834
Beta Was this translation helpful? Give feedback.
All reactions