README.md

March 30, 2026 ยท View on GitHub

CodeMirror 6 Themes Logo

Build Main Status Latest Release
GitHub contributors Dependency status for repo GitHub License
Stars Forks

A library of custom themes for CodeMirror 6.

@fsegurai/codemirror-theme-bundle is a collection of themes to enhance CodeMirror 6 editor, making it visually engaging and adaptable to different coding styles and user preferences.


Table of contents

Installation

@fsegurai/codemirror-theme-bundle

To add @fsegurai/codemirror-theme-bundle along with CodeMirror 6 to your package.json use the following commands.

bun install @fsegurai/codemirror-theme-bundle codemirror@^6.0.0 --save

Using a Theme

Import the desired theme from the package and apply it to your CodeMirror instance as shown below.

import {EditorView, basicSetup} from 'codemirror'
import {markdown} from '@codemirror/lang-markdown'
import {bundle} from '@fsegurai/codemirror-theme-bundle'

let editor = new EditorView({
	doc: '# Hello World',
	extensions: [
		basicSetup,
		markdown(),
		bundle
	],
	parent: document.body
})

Read the CodeMirror documentation for more details about themes.

Available Themes

ThemePackageVersion
All - Bundle@fsegurai/codemirror-theme-bundlenpm
Abcdef@fsegurai/codemirror-theme-abcdefnpm
Abyss@fsegurai/codemirror-theme-abyssnpm
Android Studio@fsegurai/codemirror-theme-android-studionpm
Andromeda@fsegurai/codemirror-theme-andromedanpm
Basic Dark@fsegurai/codemirror-theme-basic-darknpm
Basic Light@fsegurai/codemirror-theme-basic-lightnpm
Catppuccin Mocha@fsegurai/codemirror-theme-catppuccin-mochanpm
Cobalt2@fsegurai/codemirror-theme-cobaltnpm
Forest@fsegurai/codemirror-theme-forestnpm
GitHub Dark@fsegurai/codemirror-theme-github-darknpm
GitHub Light@fsegurai/codemirror-theme-github-lightnpm
Gruvbox Dark@fsegurai/codemirror-theme-gruvbox-darknpm
Gruvbox Light@fsegurai/codemirror-theme-gruvbox-lightnpm
High Contrast Dark@fsegurai/codemirror-theme-high-contrast-darknpm
High Contrast Light@fsegurai/codemirror-theme-high-contrast-lightnpm
Material Dark@fsegurai/codemirror-theme-material-darknpm
Material Light@fsegurai/codemirror-theme-material-lightnpm
Material Ocean@fsegurai/codemirror-theme-material-oceannpm
Monokai@fsegurai/codemirror-theme-monokainpm
Nord@fsegurai/codemirror-theme-nordnpm
Palenight@fsegurai/codemirror-theme-palenightnpm
Solarized Dark@fsegurai/codemirror-theme-solarized-darknpm
Solarized Light@fsegurai/codemirror-theme-solarized-lightnpm
Synthwave 84@fsegurai/codemirror-theme-synthwave-84npm
Tokyo Night Day@fsegurai/codemirror-theme-tokyo-night-daynpm
Tokyo Night Storm@fsegurai/codemirror-theme-tokyo-night-stormnpm
Volcano@fsegurai/codemirror-theme-volcanonpm
VS Code Light@fsegurai/codemirror-theme-vscode-lightnpm
VS Code Dark@fsegurai/codemirror-theme-vscode-darknpm

Demo Application

To see all themes in action, check out the demo: https://fsegurai.github.io/codemirror-themes.

To set up the demo locally:

git clone https://github.com/fsegurai/codemirror-themes.git
bun install
bun start

This will serve the application locally at http://[::1]:8000.

License

Licensed under MIT.