@uiw/codemirror-themes-all
TypeScript icon, indicating that this package has built-in type declarations

4.21.25 • Public • Published

Themes all for CodeMirror 6.

Buy me a coffee npm version

Preview all the themes we have created here, just need to install and import them.

Install

npm install @uiw/codemirror-themes-all --save
import * as themes from '@uiw/codemirror-themes-all';

Usage

import CodeMirror from '@uiw/react-codemirror';
import { abcdef } from '@uiw/codemirror-themes-all';
import { javascript } from '@codemirror/lang-javascript';

function App() {
  return (
    <CodeMirror
      value="console.log('hello world!');"
      height="200px"
      theme={abcdef}
      extensions={[javascript({ jsx: true })]}
      onChange={(value, viewUpdate) => {
        console.log('value:', value);
      }}
    />
  );
}
export default App;
import { EditorView } from '@codemirror/view';
import { EditorState } from '@codemirror/state';
import { javascript } from '@codemirror/lang-javascript';
import { abcdef } from '@uiw/codemirror-themes-all';

const state = EditorState.create({
  doc: 'my source code',
  extensions: [abcdef, javascript({ jsx: true })],
});

const view = new EditorView({
  parent: document.querySelector('#editor'),
  state,
});

API

export * from '@uiw/codemirror-theme-abcdef';
export * from '@uiw/codemirror-theme-abyss';
export * from '@uiw/codemirror-theme-androidstudio';
export * from '@uiw/codemirror-theme-andromeda';
export * from '@uiw/codemirror-theme-atomone';
export * from '@uiw/codemirror-theme-aura';
export * from '@uiw/codemirror-theme-basic';
export * from '@uiw/codemirror-theme-bbedit';
export * from '@uiw/codemirror-theme-bespin';
export * from '@uiw/codemirror-theme-copilot';
export * from '@uiw/codemirror-theme-darcula';
export * from '@uiw/codemirror-theme-dracula';
export * from '@uiw/codemirror-theme-duotone';
export * from '@uiw/codemirror-theme-eclipse';
export * from '@uiw/codemirror-theme-github';
export * from '@uiw/codemirror-theme-gruvbox-dark';
export * from '@uiw/codemirror-theme-kimbie';
export * from '@uiw/codemirror-theme-material';
export * from '@uiw/codemirror-theme-monokai';
export * from '@uiw/codemirror-theme-monokai-dimmed';
export * from '@uiw/codemirror-theme-noctis-lilac';
export * from '@uiw/codemirror-theme-nord';
export * from '@uiw/codemirror-theme-okaidia';
export * from '@uiw/codemirror-theme-quietlight';
export * from '@uiw/codemirror-theme-red';
export * from '@uiw/codemirror-theme-solarized';
export * from '@uiw/codemirror-theme-sublime';
export * from '@uiw/codemirror-theme-tokyo-night';
export * from '@uiw/codemirror-theme-tokyo-night-storm';
export * from '@uiw/codemirror-theme-tokyo-night-day';
export * from '@uiw/codemirror-theme-tomorrow-night-blue';
export * from '@uiw/codemirror-theme-vscode';
export * from '@uiw/codemirror-theme-white';
export * from '@uiw/codemirror-theme-xcode';

Themes

abcdef

codemirror-theme-abcdef

abyss

codemirror-theme-abyss

android studio

codemirror-theme-androidstudio

andromeda

codemirror-theme-andromeda

atom one

codemirror-theme-androidstudio

aura

codemirror-theme-aura

basic

codemirror-theme-basic dark codemirror-theme-basic light

bbedit

codemirror-theme-bbedit

bespin

codemirror-theme-bespin

console

codemirror-theme-console light codemirror-theme-console dark

copilot

codemirror-theme-copilot

darcula

codemirror-theme-darcula

dracula

codemirror-theme-dracula

duotone

codemirror-theme-duotone dark codemirror-theme-duotone light

eclipse

codemirror-theme-eclipse

github

codemirror-theme-github dark codemirror-theme-github light

gruvbox

codemirror-theme-gruvbox-dark codemirror-theme-eclipse

kimbie

codemirror-theme-kimbie

material

codemirror-theme-material codemirror-theme-material

monokai

codemirror-theme-monokai

monokai-dimmed

codemirror-theme-monokai-dimmed

noctis-lilac

codemirror-theme-noctis-lilac

nord

codemirror-theme-nord

okaidia

codemirror-theme-okaidia

quietlight

codemirror-theme-okaidia

red

codemirror-theme-red

solarized

codemirror-theme-solarized codemirror-theme-solarized

sublime

codemirror-theme-sublime

tokyo-night

codemirror-theme-tokyo-night

tokyo-night-day

codemirror-theme-tokyo-night-day

tokyo-night-storm

codemirror-theme-tokyo-night-storm

tomorrow-night-blue

codemirror-theme-tomorrow-night-blue

vscode

codemirror-theme-vscode dark

white

codemirror-theme-white codemirror-theme-white

xcode

codemirror-theme-xcode dark codemirror-theme-xcode light

Contributors

As always, thanks to our amazing contributors!

Made with github-action-contributors.

License

Licensed under the MIT License.

Package Sidebar

Install

npm i @uiw/codemirror-themes-all

Weekly Downloads

2,035

Version

4.21.25

License

MIT

Unpacked Size

38.8 kB

Total Files

7

Last publish

Collaborators

  • uiwjs
  • wcjiang