EditorColorPreview icon indicating copy to clipboard operation
EditorColorPreview copied to clipboard

Color with CSS Custom Properties do not display preview

Open graymatter00 opened this issue 3 years ago • 1 comments

Colors constructed using CSS Custom Properties do not display the color preview.

See attached screenshot.

Expected behavior Colors constructed using CSS Custom Properties should display the color preview.

image

graymatter00 avatar Feb 23 '23 08:02 graymatter00

Color Preview does not support CSS custom properties. Color Preview is a line interpreter and not a CSS processor. A line is identified as having a particular token (color, hsl, etc...) then further analysis is done to interpreter the values to calculate the color. Color Preview does not know how to calculate a color with values of var(--foo-baz-bar).

y2k4life avatar Feb 13 '24 15:02 y2k4life