Microsoft/vscode

[css] support comma less color notations

Open

#273.934 aperta il 29 ott 2025

Vedi su GitHub
 (8 commenti) (0 reazioni) (1 assegnatario)TypeScript (10.221 fork)batch import
css-less-scssfeature-requesthelp wanted

Metriche repository

Star
 (74.848 star)
Metriche merge PR
 (Merge medio 11h 43m) (1000 PR mergiate in 30 g)

Descrizione

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

Guida contributor