fix: neutral inline code color and github-dark syntax theme for readability#479
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📝 WalkthroughWalkthroughVitePress now uses the GitHub Dark Markdown theme, and inline code styling uses the standard text color variable across the theme modes. ChangesVitePress theme updates
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
danciaclara
approved these changes
Jul 23, 2026
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.
Problem
Inline code inherits the brand color via VitePress's default
--vp-code-color: var(--vp-c-brand-1), so every inline code span renders in Plane blue on a gray pill — hard to read, especially in dark mode. Dark code blocks also used thedraculasyntax theme, whose palette assumes a#282a36background, but our blocks sit on near-black#0f0f0f, washing out comments and muted tokens.Before

After

Changes
style.css: override--vp-code-colortovar(--vp-c-text-1)so inline code uses the neutral body-text color in both modes (GitHub-style — monospace + pill background signal code, not color). Code inside links keeps brand blue via--vp-code-link-color.config.ts: swap the dark syntax themedracula→github-dark, designed for dark backgrounds.Verification
pnpm check:formatandpnpm buildpass.Companion PR in developer-docs applies the same treatment for consistency.
Summary by CodeRabbit