Microsoft/vscode

[css] support comma less color notations

Open

#273934 opened on Oct 29, 2025

View on GitHub
 (8 comments) (0 reactions) (1 assignee)TypeScript (74,848 stars) (10,221 forks)batch import
css-less-scssfeature-requesthelp wanted

Description

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