nvim-highlight-colors icon indicating copy to clipboard operation
nvim-highlight-colors copied to clipboard

Support for color() function and newer color formats like lab/lch an oklab/oklch

Open benfrain opened this issue 1 year ago • 1 comments

I'm sure it would be considerable work but it would be great to eventually see the newer color formats supported in this plugin.

Examples:

P3

.p3 {
    --bg: color(display-p3 0 1 0);
    background-color: var(--bg);
}

LCH

.lch-lightness {
    background: linear-gradient(
        to right,
        lch(50% 300 45) 50%,
        lch(50% 300 0) 0
    );
}

OKLCH

.oklch {
   background-color: oklch(67.22% 0.327 329.65);
}

benfrain avatar Dec 07 '23 22:12 benfrain