Skip to content

Use chroma-js for all color parsing and conversion #2804

@thompsongl

Description

@thompsongl

Now that EUI has heavy reliance on chroma-js (color palette creation, color contrast calculations for a11y), other custom methods should likely be deprecated and removed.

Such custom methods are part of the public API, so we need to either schedule for deprecation and removal, or convert them to use chroma-js for consistency.

Methods in the EUI public API:

hexToHsv,
hexToRgb,
hsvToHex,
hsvToRgb,
rgbToHex,
rgbToHsv,
isValidHex

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions