Skip to content

feat(web-awesome): IDE color scheme picker in Footer#686

Open
todti wants to merge 18 commits into
mainfrom
labs/theme-colors
Open

feat(web-awesome): IDE color scheme picker in Footer#686
todti wants to merge 18 commits into
mainfrom
labs/theme-colors

Conversation

@todti

@todti todti commented Jun 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a Color Scheme dropdown to the Footer (between the existing Language picker and Version badge)
  • 8 IDE-inspired dark color schemes: Tokyo Night, Monokai, Dracula, One Dark, Catppuccin Mocha, Nord, Solarized Dark, GitHub Dark
  • Selection is persisted in localStorage and survives page reloads
  • Each scheme sets data-color-scheme on <html> and overrides surface, text, border, control, navigation, link, intent and syntax CSS variables
  • Status/chart colors are inherited from the base dark theme — test result indicators stay readable in every scheme
  • A small color swatch is shown next to each scheme name in the dropdown

todti added 2 commits June 2, 2026 18:15
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
@github-actions

github-actions Bot commented Jun 2, 2026

Copy link
Copy Markdown

Allure Report Summary

Name Duration Stats New Flaky Retry Report
Allure 3 Report 35m 11s Passed tests 8477   Skipped tests 15   Unknown tests 27 42 0 0 View
Allure 3 GitHub actions run (2026-06-09T11:49:49.727Z) 35m 11s Passed tests 8477   Skipped tests 15   Unknown tests 27 42 0 0 View
My Dashboard 35m 11s Passed tests 8477   Skipped tests 15   Unknown tests 27 42 0 0 View

todti and others added 15 commits June 2, 2026 19:07
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
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

Allure perf metrics

Generated at: 2026-06-09T12:06:19.518Z

Phase Count Total Avg Min Max
restoreState.total 1 2813.2 ms 2813.2 ms 2813.2 ms 2813.2 ms
restoreState.dump 3 2812.6 ms 937.5 ms 862.0 ms 1037.4 ms
restoreState.attachments 3 2058.0 ms 686.0 ms 625.6 ms 731.0 ms
restoreState.storeRestore 3 246.0 ms 82.0 ms 62.7 ms 94.9 ms
generate.total 1 621909.2 ms 621909.2 ms 621909.2 ms 621909.2 ms
generate.plugins.done 1 7550.8 ms 7550.8 ms 7550.8 ms 7550.8 ms
publish.upload.total 1 351120.7 ms 351120.7 ms 351120.7 ms 351120.7 ms
summary.generate 2 20.5 ms 10.3 ms 6.7 ms 13.8 ms
generate.plugin.done.agent 1 0.2 ms 0.2 ms 0.2 ms 0.2 ms
generate.plugin.done.awesome 1 5841.6 ms 5841.6 ms 5841.6 ms 5841.6 ms
generate.plugin.done.dashboard 1 951.9 ms 951.9 ms 951.9 ms 951.9 ms
generate.plugin.done.log 1 2.4 ms 2.4 ms 2.4 ms 2.4 ms
generate.plugin.done.testops 1 753.7 ms 753.7 ms 753.7 ms 753.7 ms
publish.upload.plugin.awesome 1 342860.0 ms 342860.0 ms 342860.0 ms 342860.0 ms
publish.upload.plugin.dashboard 1 1769.9 ms 1769.9 ms 1769.9 ms 1769.9 ms

Artifacts: allure-perf-metrics

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant