Skip to content

Add Support of oklch and oklab to plugin/color.py #2603

@rgant

Description

@rgant

Is your feature request related to a problem? Please describe.
I'm converting my CSS colors1 to oklch and the color preview doesn't work:

Image

Also the change format panel doesn't have an option for the ok* color formats:

Image

Describe the solution you'd like
I would like for color previews to be provided for oklch and oklab color formats.

I would also like for the Change color format panel to support oklch and oklab color formats.

Additional context
I'll take a look at the code and see if I can provide a PR.

Footnotes

  1. https://evilmartians.com/chronicles/oklch-in-css-why-quit-rgb-hsl

Metadata

Metadata

Assignees

No one assigned

    Labels

    language server issueIssues related to language servers communicating with this plugin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions