Skip to content

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

Closed as not planned
Closed as not planned

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

Activity

  1. thompsongl commented on Jan 31, 2020

    @thompsongl
    ContributorAuthor

    isValidHex at the very least should remain part of the API, although it should change to use chroma.valid for consistency.

  2. github-actions commented on Mar 20, 2021

    @github-actions

    👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.

  3. added
    stale-issue
    on Mar 20, 2021
  4. removed
    stale-issue
    on Mar 20, 2021
  5. github-actions commented on Sep 17, 2021

    @github-actions

    👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.

  6. added
    stale-issue
    on Sep 17, 2021
  7. removed
    stale-issue
    on Sep 17, 2021
  8. github-actions commented on Mar 16, 2022

    @github-actions

    👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.

  9. added
    stale-issue
    on Mar 16, 2022
  10. removed
    stale-issue
    on Mar 16, 2022
  11. 2 remaining items

  12. added
    stale-issue
    on Apr 19, 2023
  13. removed
    stale-issue
    on Oct 24, 2023
  14. github-actions commented on Apr 21, 2024

    @github-actions

    👋 Hi there - this issue hasn't had any activity in 6 months. If the EUI team has not explicitly expressed that this is something on our roadmap, it's unlikely that we'll pick this issue up. We would sincerely appreciate a PR/community contribution if this is something that matters to you! If not, and there is no further activity on this issue for another 6 months (i.e. it's stale for over a year), the issue will be auto-closed.

  15. added
    stale-issue
    on Apr 21, 2024
  16. added
    Stale
    and removed
    stale-issue
    Stale
    on Oct 4, 2024
  17. github-actions commented on Apr 2, 2025

    @github-actions

    👋 Hi there - this issue hasn't had any activity in 6 months. If the EUI team has not explicitly expressed that this is something on our roadmap, it's unlikely that we'll pick this issue up. We would sincerely appreciate a PR/community contribution if this is something that matters to you! If not, and there is no further activity on this issue for another 6 months (i.e. it's stale for over a year), the issue will be auto-closed.

  18. added
    stale-issue
    on Apr 2, 2025
  19. SivalakshmiViswanathan commented on Jul 8, 2025

    @SivalakshmiViswanathan

    Is it still open. Can I work on it?

  20. removed
    stale-issue
    on Jul 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions