Current code highlight schema isn't colour-blind friendly
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 |
|---|---|
PS Screenshots were made using Sim Daltonism, The colour blindness simulator. https://michelf.ca/projects/sim-daltonism/
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.
/assign /triage accepted
@Andygol Shouldn’t this color scheme be consistent across the entire website, rather than just on a specific page?
@lmktfy Is this something that can be accepted so I can start working on it?
@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 I started looking into this. I initially tested switching style = "emacs" to style = "monokailight", but it resulted in a dark background
Then I tried style = "tango". This renders correctly with a light background and looks much more readable
@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.
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/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas 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
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/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas 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
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/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas 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: 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/staleis applied- After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied- After 30d of inactivity since
lifecycle/rottenwas applied, the issue is closedYou 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.