Skip to content

style: unify keyword color to magenta and tighten code line-height - #178

Merged
magnus-madsen merged 2 commits into
masterfrom
tweak-code-samples
Aug 3, 2026
Merged

style: unify keyword color to magenta and tighten code line-height#178
magnus-madsen merged 2 commits into
masterfrom
tweak-code-samples

Conversation

@magnus-madsen

Copy link
Copy Markdown
Member

Summary

  • Render all Flix keywords in the front-page code samples in the same magenta (#AF00DB) that Light+ already uses for control keywords like foreach and match. Done by passing a modified Light+ theme to Astro''s <Code> component with one extra token rule for the base keyword/storage scopes.
  • Tighten the code samples'' line-height from 16px to 14px (12px font).

Non-keyword tokens such as Ok/Err/Nil (constant.language.*) and ${...} interpolation delimiters keep their Light+ blue, matching VS Code behavior.

Test plan

  • npm run build passes; verified in dist/index.html that def, let, pub, etc. now render with color:#AF00DB.

🤖 Generated with Claude Code

Override Light+ so base keyword/storage scopes use the same #AF00DB as
keyword.control, and reduce code sample line-height from 16px to 14px.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@magnus-madsen
magnus-madsen merged commit 1bf2388 into master Aug 3, 2026
2 checks passed
@magnus-madsen
magnus-madsen deleted the tweak-code-samples branch August 3, 2026 05:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant