Skip to content

Light mode missing selection background color #3179

Closed

Description

@david-crespo

Splitting this out from #3087 so we can close it.

Text highlight in info message doesn't have a background: silos will use subnet pool is highlighted in the screenshot.

Image

*Originally posted by @david-crespo in *#3087

Text selection in serial console doesn't appear.

Image

Same in dark:

Image

*Originally posted by @sion42x in *#3087

Activity

  1. added this to the 20 milestone on Apr 13, 2026
  2. sudoaugustin commented on Apr 14, 2026

    @sudoaugustin

    Hey,
    Sorry to jump in again. I noticed that the selection colors in the style file are currently using fully opaque values. From my experience, using a base color with some transparency for selection backgrounds tends to adapt better across different UI contexts without requiring manual adjustments.

    For example, rgba(0,0,0,0.5) for light mode and rgba(255,255,255,0.5) for dark mode can work more naturally with varying backgrounds. If you’re aiming for branded feel, applying the same approach with an accent color can also work well e.g, using a darker shade of the accent with some transparency in light mode, and a lighter variant in dark mode.

  3. benjaminleonard commented on Apr 15, 2026

    @benjaminleonard
    Contributor

    For example, rgba(0,0,0,0.5) for light mode and rgba(255,255,255,0.5) for dark mode can work more naturally with varying backgrounds. If you’re aiming for branded feel, applying the same approach with an accent color can also work well e.g, using a darker shade of the accent with some transparency in light mode, and a lighter variant in dark mode.

    We hadn't done this previously because it was awkward to apply opacity to the core brand colours. With the latest design system we can do it fairly easily with Tailwind and I've done so for the general selection. Thanks for the recommendation.

    xterm.js uses a canvas renderer. I could potentially try to figure out a way to get the underlying oklch value from the var, but unlikely to be worth it. I settled on --surface-accent.

  4. added a commit that references this issue on Apr 15, 2026
    7bf337b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions