Repository navigation
feat(theme): write and validate a theme's syntax and pair - #79
Merged
Merged
Conversation
The skill ports a palette's code colors into syntax and pairs a palette's light and dark variants. validate.mjs checks syntax tags, modifiers and styles, and pairs (own id, same scheme in the pack or bundled), as lich's validateSyntax and checkPairs do. tests/lich-ref pins the lich commit whose template shows both, until a lich release ships them.
Merged
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.
The theme skill learns the two optional keys the native window reads.
syntax: the skill ports a palette's code colors from its editor theme (a JetBrains color scheme or a VS CodetokenColors) into highlighting tags, and names the tags lich gives Java's enum constants, annotations, fields and import paths.pair: the skill pairs a palette's light and dark variants solich nativefollows the desktop between them with Auto light/dark on.validate.mjspreviously ignoredsyntax. It now checks both keys as lich'svalidateSyntaxandcheckPairsdo:light/dark.tests/lich-refmoves fromv0.65.0to omartelo/lich@c42e0ea2, the commit whose template showspairbesidesyntax. No lich release ships them yet, which is the unreleased-contract exception in CLAUDE.md. That commit is onfeat/native-ui, not a merge onmain. The hook fixtures are byte-identical at that ref; onlyskills/theme/template.jsonmoved. When a lich release shipssyntaxandpair, the ref goes back to its tag.Tests:
node --test tests/*.test.mjs, 427 pass, 8 of them new for the validator. The published packs (everforest, catppuccin, rose-pine, eldritch, lotus, bluloco) validate clean.