Microsoft/vscode

[css] support comma less color notations

Open

#273.934 geöffnet am 29. Okt. 2025

Auf GitHub ansehen
 (8 Kommentare) (0 Reaktionen) (1 zugewiesene Person)TypeScript (10.221 Forks)batch import
css-less-scssfeature-requesthelp wanted

Repository-Metriken

Stars
 (74.848 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 11h 43m) (1.000 gemergte PRs in 30 T)

Beschreibung

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"
]

Contributor Guide