Repository navigation
chore(catalog): theme previews for every official app theme - #55
Merged
Merged
Conversation
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
Adds display-only
themePreviewcolors to the official theme releases that had none (Midnight, Nord, OLED, Dusk & Ember, GitHub Light, Solarized Light, Dracula, Gruvbox), and trims GitHub Themes for Orca to four previews.Why:
nwparker/theme-default-catalog) that lists catalog themes by mode usingthemePreview(it needsbaseto put a theme in the Light or Dark picker, and the colors for its swatch). Releases without previews can't be offered there, so Dracula, Nord, Gruvbox and friends were missing.themePreviewallows at most 4 entries and Orca parses it with.catch(undefined), so the GitHub release's 5 previews were silently dropped in full. It now keeps Light Default, Dark Default, Dark Dimmed and Light High Contrast.Colors are read from each theme file:
--background,--foreground, accent from--primary(else--ring/--foreground), surface from--card(else--sidebar/--background); labels are the manifest theme titles. No plugin bytes, hashes or commits change.Validation
ORCA_DIR=<orca checkout> node scripts/check-catalog.mjs→catalog: ok.