Microsoft/vscode

[css] support comma less color notations

Open

#273,934 建立於 2025年10月29日

在 GitHub 查看
 (8 留言) (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 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"
]

貢獻者指南