Repository navigation
Conversation
In preparation for adding dark mode, this commit renames color variables semantically. This also cleans up redundant or unused colors between the idoc and inko repos, and re-orders them to group fg-*, border-*, and bg-* for easier reading.
A dark mode color scheme, which can be toggled by the reader in their browser or operating system settings and is read by the `prefers-color-scheme` media query, is added. The colors are based on the open source a11y-syntax-highlighting theme. For the colorful backgrounds, I transformed the foreground colors in the OKLCH color space by reducing lightness until it met both WCAG AAA against fg-primary, and WCAG AA against fg-blue (for links). Implements: inko-lang#895
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #895 in concert with idoc/#6
A dark mode color scheme, which can be toggled by the reader in their browser or operating system settings and is read by the
prefers-color-schememedia query, is added. The colors are based on the open source a11y-syntax-highlighting theme. For the colorful backgrounds, I transformed the foreground colors in the OKLCH color space by reducing lightness until it met both WCAG AAA againstprimary text, and WCAG AA against hyperlink text.
In preparation for adding dark mode, the first commit renames color variables semantically. It also cleans up redundant or unused colors between the idoc and inko repos, and re-orders them to group fg-, border-, and bg-* for easier reading.