Microsoft/vscode

[css] Color picker for css variables

Open

#126.733 aberto em 19 de jun. de 2021

Ver no GitHub
 (3 comments) (0 reactions) (1 assignee)TypeScript (10.221 forks)batch import
css-less-scssfeature-requesthelp wanted

Métricas do repositório

Stars
 (74.848 stars)
Métricas de merge de PR
 (Mesclagem média 11h 43m) (1.000 fundiu PRs em 30d)

Description

Currently vs code color picker doesn't display color picker on hover for a color picker where css variable is used. E.g.

color: hsl(0, 0%, 0%)

^Works

But,

--hue-color: 250
color: hsl(var(--hue-color), 0%, 0%)

^Doesn't work.

Is there a way to make it work? If the feature is not implemented is there any challenge to do so. I am currently looking at the code how this can be implemented but if some can direct me where to start would be great.

Guia do colaborador