Deliver a crisp, reliable reading experience with layouts that stay balanced from phones to ultra-wide displays.
VitePress Carbon
Streamlined Theme
GitHub-inspired docs with sharper contrast, balanced spacing, and a polished feel on every screen.
Streamlined Theme
GitHub-inspired docs with sharper contrast, balanced spacing, and a polished feel on every screen.
Get started
Carbon is a drop-in VitePress theme. There is no build step to wire up and no configuration to port — your existing config.mts keeps working.
npm install vitepress-carbonpnpm add vitepress-carbonyarn add vitepress-carbonbun add vitepress-carbon// .vitepress/theme/index.js
import { VPCarbon } from 'vitepress-carbon'
export default VPCarbonWhy Carbon
Paste it in and it renders exactly as it does on GitHub — same headings, tables, code and callouts. Nothing to reformat, nothing to double‑check.
Both schemes are drawn from Primer's own tokens, so neither is an inverted afterthought. Ship on day one without a contrast audit.
Grouped sidebar, an outline that follows your scroll, keyboard search. Anyone who uses GitHub daily already knows where everything is.
Every surface, accent and radius is a CSS variable. Make it yours by changing a token — not by fighting specificity in someone else's component.
Thank you
Every kind of contribution counts here — commits, pull requests, issues, reviews and comments all earn a place on this wall.
Full setup, configuration and theming reference — including how to extend Carbon without forking it.