Microsoft/vscode

[css] Color picker for css variables

Aperta

#126.733 aperta il 19 giu 2021

 (3 commenti) (0 reazioni) (1 assegnatario)TypeScript (39.847 fork)batch import
css-less-scssfeature-requesthelp wanted

Metriche repository

Star
 (184.936 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor