Microsoft/vscode

[css] support comma less color notations

Open

#273,934 创建于 2025年10月29日

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

描述

Currently the color picker offers colors in (legacy):

  • rgba(r, g, b, a)
  • hsla(h, s, l, a)
  • #rrggbbaa

and are not configurable. company rules or personal preference might require other formats for instance (modern)

  • rgb(r g b / a)
  • rgb(r g b)
  • rgb(r, g, b) (legacy none transparent)

which, in css color module level 4 are all valid color definitions.

Settings

"editor.colorPickerLevel" : "legacy",
"editor.colorPickerPresentations" [
  "rgb",
  "rgb_modern"
]

贡献者指南