feat(web-awesome): IDE color scheme picker in Footer#686
Open
todti wants to merge 15 commits into
Open
Conversation
Adds a dropdown in the Footer (next to Language and Version) that lets users switch between 8 popular IDE color schemes persisted in localStorage: - Tokyo Night - Monokai - Dracula - One Dark - Catppuccin Mocha - Nord - Solarized Dark - GitHub Dark Each scheme sets data-color-scheme on <html> and overrides all surface, text, border, control, nav, link, intent and syntax CSS variables. Status/chart colors are inherited from the base dark theme so test result indicators remain readable across schemes.
- stores/colorScheme/ → types.ts, constants.ts, store.ts, index.ts - assets/scss/themes/ → one file per scheme + index.scss - ColorSchemePicker/ → ColorSchemePicker.tsx, ColorSchemeItem.tsx, index.tsx - Remove monolithic color-schemes.scss and colorScheme.ts
…ight, One Light, Catppuccin Latte)
Picker now shows 9 families (Allure, GitHub, One, Catppuccin, Solarized, Tokyo Night, Monokai, Dracula, Nord) instead of 13 individual schemes. The active light/dark variant is derived automatically from the existing ThemeButton toggle — switching light<->dark updates data-color-scheme without changing the selected family.
…it tests - Solarized Light: bg-raised #fffef8, stronger bg-neutral/tag contrast - One Light: darker bg-neutral - Catppuccin Latte / GitHub Light: bg-raised #ffffff, stronger neutral - Add test/stores/colorScheme.test.ts: 11 unit tests for store - Add test/components/ColorSchemePicker.test.tsx: picker rendering
Three new theme families (work with ThemeButton light/dark toggle): - Allure · Deuteranopia — for red-green blindness (~8% of men) orange (failed) · blue (passed) · purple (broken) · gray (skipped) based on Okabe-Ito colorblind-safe palette - Allure · Tritanopia — for blue-yellow blindness red (failed) · teal (passed) · orange (broken) · gray (skipped) - Allure · High Contrast — WCAG AAA (≥7:1) for low vision / achromatopsia each family has light and dark variants that auto-switch with ThemeButton
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.
Summary
localStorageand survives page reloadsdata-color-schemeon<html>and overrides surface, text, border, control, navigation, link, intent and syntax CSS variables