docs: retune the code theme to match the marketing site - #71
Merged
Conversation
Backport the code syntax palette settled on the marketing site (js-suite #572): rose keywords, purple functions, aqua types, lime strings, a lighter yellow for numbers, and a neutral grey for comments. The dark theme takes those exact values; the light theme uses darkened, readable variants of the same hues so both modes share one hue assignment.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Backports the code syntax palette settled on the marketing site (js-suite #572) so code reads the same across both sites.
Dark (exact match to marketing)
#d77595#d2a8ff#7fd0c4#c8f031#f4dd63#8f8f8f#eae8ddLight (derived)
The docs render code blocks in both light and dark mode (marketing is dark-only), so the light theme uses darkened, readable variants of the same hues — one hue assignment across both modes:
#a63057#8250df#1c8577#567d0d#977c11#7a7a7aOnly
source.config.tschanges (the two theme palettes). The theme structure, code-block behavior, transformers, and Fira Code font are untouched.Verification
bun run buildcompiles with 0 errors.Note: you tuned the dark palette directly; the light-mode colors are my derivation, so they're the thing to eyeball on the preview (flip the docs to light mode on a page with TypeScript + SQL). Easy to nudge.
https://claude.ai/code/session_01NkxKebM3qffTB7FayXsfxP