brenoprata10 / nvim-highlight-colors

Highlight colors for neovim
724 stars 33 forks source link

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

Open benfrain opened 11 months ago

benfrain commented 11 months ago

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);
}
brenoprata10 commented 9 months ago

This would be indeed a considerable ammount of work for formats that are not yet that popular to justify my time investment. Let's leave it in our improvement list for now 😄