Skip to content

[css-typed-om] Color conversion and contrast ratio #989

Open
@atanassov

Description

@atanassov

With the the current color space additions to [css-color-4], namely lch() and lab(), we solved the declarative side of the problem. What we lack is the ability to request or at least easily convert computed color values into these color spaces. Can we allow that in Typed OM?

Further, it would be great to have a function that enables contrast ratio calc given any two colors. The expectations for color contrast described by WCAG are rather detailed and lack developer ergonomics. Typed OM seems really well positioned to help.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions