Skip to content

Support css variables in Color #7628

Closed
Closed
@tume

Description

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.

 <ColorSlider
      colorSpace="rgb"
      channel="alpha"
      defaultValue="var(--primary-color)"
    />

<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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions