Skip to content

CSS Color Module 4 - 8-digit color codes. #428

@cburschka

Description

@cburschka

https://drafts.csswg.org/css-color/
https://www.w3.org/TR/css-color-4/

This standardizes #RRGGBBAA and #RGBA codes where the A is a hexadecimal representation of opacity (0-255).

Cadence currently adds opacity to a dynamic color value in the text color button, whose background is set to 50% opacity of whatever the chosen color is. To accomplish this, cadence parses the hex value and outputs an rgba(x,y,z,0.5) string.

As soon as this standard can be relied on, this function can be replaced by a simple string concatenation.

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions