Skip to content

Repository files navigation

VitePress Carbon is a minimalistic theme for VitePress, inspired by GitHub's monochromatic design. It offers a clean and elegant documentation experience, ideal for projects seeking simplicity.

Open on npmx.dev Open on npmx.dev Open on npmx.dev

Demo

Check out the demo on GitHub Pages to see VitePress Carbon in action.

Storybook

Every theme component, rendered in isolation, lives at carbon.breno.tech/storybook — including an Overflow section that stress-tests components with oversized text. Run it locally with pnpm storybook.

Installation

To create a GitHub project with VitePress Carbon theme, click here.

Alternatively, you can use the vpcar CLI tool to initialize a new VitePress Carbon project:

npx vpcar init my-project

Usage

To use this project, follow these docs:

Design system

Carbon has a documented design language — color roles, typography, spacing, shape, and elevation, with light and dark values for every token. Read design.md before changing any UI, and build with the --vp-* tokens in packages/theme/src/theme/styles/vars.css rather than hardcoded values.

Contribution Guide

Before contributing, read AGENTS.md — the setup, commands, conventions, and workflow that apply to human and automated contributors alike.

We use pnpm as our package manager. To get started, run:

pnpm install

To start the development server, run:

pnpm run dev

If you encounter any issues or have suggestions for improvements, feel free to open an issue or submit a pull request. Your contributions and ⭐ are greatly appreciated!

Packages

This monorepo contains the following packages:

  • theme: The theme package for VitePress.
  • cli: CLI tool for initializing and managing VitePress Carbon projects.
  • demo: Demo project showcasing the VitePress Carbon theme.
  • storybook: Component workbench, deployed alongside the demo at /storybook/.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Releases

Sponsor this project

Used by

Contributors

Languages