Skip to content

How is the 【oklch】 palette compatible #3235

@lihongyao

Description

@lihongyao

The project used Tailwind CSS, but the color palette in Tailwind CSS 4.0 changed from rgb (red, green and blue) to oklch (Oklab Color Space), resulting in the following error when using html2canvas:

Error: Attempting to parse an unsupported color function "oklch"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions