You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently passing the "var(--primary-color)" will result Error: Invalid color value: var(--primary-color)
💁 Possible Solution
No response
🔦 Context
I have whole theme(colors) defined in css variables and current use case is that would be nice to have defaultValue set straight from css variables as don't have the color defined anywhere else.
💻 Examples
No response
🧢 Your Company/Team
ReceiptHero
🕷 Tracking Issue
No response
The text was updated successfully, but these errors were encountered:
and use that. I'm not sure about including this as part of the API. We'd need to update parseColor from '@react-stately/color' to parse this. It doesn't really match the existing function of passing in a color value.
Provide a general summary of the feature here
Would be nice to have support for css variables in different Color* components.
🤔 Expected Behavior?
These should use css defined --primary-color as specified.
<ColorSwatch color="var(--primary-color)" />
😯 Current Behavior
Currently passing the "var(--primary-color)" will result
Error: Invalid color value: var(--primary-color)
💁 Possible Solution
No response
🔦 Context
I have whole theme(colors) defined in css variables and current use case is that would be nice to have defaultValue set straight from css variables as don't have the color defined anywhere else.
💻 Examples
No response
🧢 Your Company/Team
ReceiptHero
🕷 Tracking Issue
No response
The text was updated successfully, but these errors were encountered: