Skip to content

[Colors] Create text-ink and text-ghost tokens and replace respective old tokens in the code #8968

Description

@ek-so

Problem

Currently we have leftover tokens (euiColorInk and euiColorGhost), that originally belong to Amsterdam and were intended to be deprecated. During Borealis update, we mapped those to old "shades" tokens (euiTheme.colors.ink and euiTheme.colors.ghost) -> the leftovers of both approaches can be currently found in the code base.

The problem is, that in order to clean up the code base and fit such usages into new color system (and reflect this similarly in Figma) we need to align on consistent approach to that. The proposal is based on this discussion.

Proposed Solution

  • Create text-ghost and text-ink color tokens in Borealis theme, which will be used for text and icons; check the usages of those and replace with proper tokens.

    • The ones that are known are EuiLink (ghost color) and EuiBadge (for customized badges), but maybe there are some more.
    Image
  • Use plainLight and plainDark instead in all other cases (meaning in all cases that are not icons or text, but rather background or border, for example) — we don't envision a lot of such usages, so we don't introduce 3rd level tokens for those specifically.

    • These usages might include contrast mode borders (black/white), for example.

Notes

  • We still keep the approach of using the enforced color mode when possible: e.g. in EuiTooltip we don't use any other color tokens, but rather enforce the component to eb in a dark mode, and use regular text-paragraph there, for example.
  • The change is already used in Figma, since we needed this tokens to apply them to respective elements, so we only need to clean up the code. cc @JoseLuisGJ just fyi.

Value / Impact

Cleaning up the leftovers after transition to Borealis. Almost no visual impact.

Urgency

Not urgent, but desirable for full theme migration and code base cleanness.

Activity

  1. JoseLuisGJ commented on Aug 22, 2025

    @JoseLuisGJ
    Member

    Let's sync the work for this ticket also with the work needed in Figma. This way we will deliver the same on both sides at the same time.

  2. JasonStoltz commented on Dec 15, 2025

    @JasonStoltz
    Contributor

    Closing this because I don't think we're going to be planning it any time soon. It'll still be here in our repository if we decide to reconsider and open it back up in the future. But for now it'll be closed.

  3. added
    breaking change
    on Dec 17, 2025
  4. JasonStoltz commented on Dec 17, 2025

    @JasonStoltz
    Contributor

    Re-opened, Kate highlighted that this is one we should prioritize. The work is done in Figma, it just needs to be updated in the EUI library as well.

    It sounds like the work here is, at a glance:

    1. Remove euiColorInk and euiColorGhost tokens
    2. Add text ghost and text ink tokens
    3. Replace existing usage:
        - If text or icon -- use new text ghost and text ink tokens
        - For anything else (backgrounds, etc.) -- use plainLight and `plainDark

    This can be handled as either a deprecation or a breaking change.

    Usage in Kibana appears to be minimal (~10 references), so a straight breaking change is likely fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

breaking changevisual refresh

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions