Microsoft/vscode

[css] Color picker for css variables

Open

#126,733 创建于 2021年6月19日

在 GitHub 查看
 (3 评论) (0 反应) (1 负责人)TypeScript (10,221 fork)batch import
css-less-scssfeature-requesthelp wanted

仓库指标

Star
 (74,848 star)
PR 合并指标
 (平均合并 11小时 43分钟) (30 天内合并 1,000 个 PR)

描述

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.

贡献者指南