website icon indicating copy to clipboard operation
website copied to clipboard

Current code highlight schema isn't colour-blind friendly

Open Andygol opened this issue 1 year ago • 11 comments

This is a Bug Report

Problem: The current code highlighting scheme in the documentation does not take into account the needs of people with colour blindness. The colours currently used are difficult to distinguish from one another for people with colour perception impairments.

Proposed Solution: To solve this problem, it is proposed to choose a different, more user-friendly scheme for highlighting code in documentation for people who have problems distinguishing colours.

What to Update: Replace emacs in style = "emacs" in the hugo.toml with one that better suits the needs, from https://gohugo.io/quick-reference/syntax-highlighting-styles/.

Normal Deuteranopia
Image Image

PS Screenshots were made using Sim Daltonism, The colour blindness simulator. https://michelf.ca/projects/sim-daltonism/

Andygol avatar Nov 10 '25 11:11 Andygol

This issue is currently awaiting triage.

SIG Docs takes a lead on issue triage for this website, but any Kubernetes member can accept issues by applying the triage/accepted label.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

k8s-ci-robot avatar Nov 10 '25 11:11 k8s-ci-robot

/assign /triage accepted

dhanishaphadate avatar Nov 11 '25 18:11 dhanishaphadate

@Andygol Shouldn’t this color scheme be consistent across the entire website, rather than just on a specific page?

dhanishaphadate avatar Nov 11 '25 18:11 dhanishaphadate

@lmktfy Is this something that can be accepted so I can start working on it?

dhanishaphadate avatar Nov 11 '25 19:11 dhanishaphadate

@dhanishaphadate Code highlighting will be applied to the entire site. Feel free to experiment with different schemes from https://gohugo.io/quick-reference/syntax-highlighting-styles/.

In my opinion, monokailight (for light themes) is the most user-friendly colour scheme.

Andygol avatar Nov 12 '25 07:11 Andygol

@Andygol I started looking into this. I initially tested switching style = "emacs" to style = "monokailight", but it resulted in a dark background Image

Then I tried style = "tango". This renders correctly with a light background and looks much more readable Image

Aryan-Bagale avatar Jan 07 '26 07:01 Aryan-Bagale

@Aryan-Bagale It looks strange that monokailight use dark background. 🤷

Maybe we should wait a little while before changing the code highlighting, until something happens with Hugo's configuration for Kubernetes documentation.

Andygol avatar Jan 07 '26 12:01 Andygol

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot avatar Apr 07 '26 12:04 k8s-triage-robot

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle rotten
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

k8s-triage-robot avatar May 07 '26 13:05 k8s-triage-robot

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Reopen this issue with /reopen
  • Mark this issue as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close not-planned

k8s-triage-robot avatar Jun 06 '26 14:06 k8s-triage-robot

@k8s-triage-robot: Closing this issue, marking it as "Not Planned".

In response to this:

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Reopen this issue with /reopen
  • Mark this issue as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close not-planned

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

k8s-ci-robot avatar Jun 06 '26 14:06 k8s-ci-robot