Microsoft/vscode

[css] Lab colors and other CSS Color Module Level 4 features

Open

#43.111 aberto em 7 de fev. de 2018

Ver no GitHub
 (8 comments) (18 reactions) (1 assignee)TypeScript (10.221 forks)batch import
css-less-scssfeature-requesthelp wantedverified

Métricas do repositório

Stars
 (74.848 stars)
Métricas de merge de PR
 (Mesclagem média 11h 43m) (1.000 fundiu PRs em 30d)

Description

See the CSS Color Module Level 4 specification.

While the specification is still a draft and browsers don't support these features yet, there already exists a PostCSS plugin that (partially) implements them, so it's actually already possible to use at least a part of them.

.example {
	background-color: lab(33 43 -47);
	box-shadow: 0 0 20px lch(54 107 41 / 10%);
}

Would be nice to get previews for those colors in VS Code like it's shown for rgb/rgba/hsl colors.

Guia do colaborador