Skip to content

Support for CSS variables #1072

@zakariaelas

Description

@zakariaelas

Hey, thanks for a great library!

Do you have any plans on supporting CSS variables? Passing those to the theme doesn't work because the canvas element struggles with recognizing those (by design).

The workaround is to usually just import those colors from some theme provider or do something like getComputedStyle(document.documentElement).getPropertyValue('--color-blue-100');, but I see a potential opportunity to simplify things for consumers.

Was this ever considered? Any strong opinions as to why baking this feature in might not be a good idea?

Thanks!

Metadata

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