Skip to content

[HCM] Implement high contrast dataVis colors #8632

Description

@mgadewoll

Description

The current datavis colors were designed to fulfill color contrast requirements only in dark mode. With the introduction of High Contrast Mode (HCM) we need to ensure that those colors have a required color contrast in both color modes (light and dark).

After trying out the update for adding high contrast mode versions for dataVis colors in LIGHT mode as a PoC (issue), we want to implement the changes into EUI.

The changes were added on EUI side on this PoC branch (commit)
On Kibana side it's added on this branch and deployed here

Updates

  1. add support for using HCM switching on the theme (done in PoC)
  2. provide dataVis HCM token overrides (done in PoC)
  3. provide severity HCM token overrides
unknown: shade70
neutral: skyBlue70
success: success80
warning: warning80
risk: risk70
danger: danger70

Activity

  1. added theissue type on Apr 25, 2025
  2. mgadewoll commented on Apr 25, 2025

    @mgadewoll
    ContributorAuthor

    ℹ We had an initial alignment with the Lens team and they'll have a look at the implementation from their end to assess what's still required for a full implementation on Kibana side.

  3. self-assigned this
    on Apr 25, 2025
  4. mgadewoll commented on Jun 3, 2025

    @mgadewoll
    ContributorAuthor

    ℹ We decided that we can move ahead with these changes independent from charts as there are additional needs to colors that consumers can benefit from. This means that any direct usage of these color tokens will use HCM colors. The usage within charts components would still partially not be updating as expected in HCM though. We will iterate on this independently with the @elastic/elastic-charts team when they get to this topic.

    We want to connect the following colors to HCM: dataVis, VisAsText and severity.

  5. changed the issue type fromtoon Aug 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions