Skip to content

docs: retune the code theme to match the marketing site - #71

Merged
coderdan merged 1 commit into
v2from
docs/code-theme-tweaks
Jul 15, 2026
Merged

docs: retune the code theme to match the marketing site#71
coderdan merged 1 commit into
v2from
docs/code-theme-tweaks

Conversation

@coderdan

Copy link
Copy Markdown
Contributor

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)

Role Color
Keyword rose #d77595
Function purple #d2a8ff
Type aqua #7fd0c4
String lime #c8f031
Number light yellow #f4dd63
Comment grey #8f8f8f
Text #eae8dd

Light (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:

Role Color
Keyword rose #a63057
Function purple #8250df
Type teal #1c8577
String lime #567d0d
Number gold #977c11
Comment grey #7a7a7a

Only source.config.ts changes (the two theme palettes). The theme structure, code-block behavior, transformers, and Fira Code font are untouched.

Verification

  • Full bun run build compiles with 0 errors.
  • Rendered code carries the new colors in both modes (dark rose/purple/lime, light rose/purple/lime); the old lime-keyword / teal-function values are gone.

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

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.
@vercel

vercel Bot commented Jul 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
public-docs Ready Ready Preview, Comment Jul 15, 2026 4:09am

Request Review

@coderdan
coderdan merged commit 5d68d6c into v2 Jul 15, 2026
2 checks passed
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