4.23.10 • Published 4 months ago

@uiw/codemirror-themes-all v4.23.10

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

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 { 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,
});

Using in React:

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;

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

abyss

android studio

andromeda

atom one

aura

basic

bbedit

bespin

console

copilot

darcula

dracula

duotone

eclipse

github

gruvbox

kimbie

material

monokai

monokai-dimmed

noctis-lilac

nord

okaidia

quietlight

red

solarized

sublime

tokyo-night

tokyo-night-day

tokyo-night-storm

tomorrow-night-blue

vscode

white

xcode

Contributors

As always, thanks to our amazing contributors!

Made with github-action-contributors.

License

Licensed under the MIT License.

4.23.10

4 months ago

4.23.8

5 months ago

4.23.9

4 months ago

4.23.7

7 months ago

4.23.6

8 months ago

4.23.4

9 months ago

4.23.5

9 months ago

4.23.1

10 months ago

4.23.2

10 months ago

4.23.3

9 months ago

4.23.0

12 months ago

4.22.2

1 year ago

4.22.1

1 year ago

4.22.0

1 year ago

4.21.25

1 year ago

4.21.24

1 year ago

4.21.23

1 year ago

4.21.22

1 year ago

4.21.11

2 years ago

4.21.10

2 years ago

4.21.13

2 years ago

4.21.12

2 years ago

4.21.19

2 years ago

4.21.18

2 years ago

4.21.15

2 years ago

4.21.14

2 years ago

4.21.17

2 years ago

4.21.16

2 years ago

4.21.9

2 years ago

4.21.8

2 years ago

4.21.21

2 years ago

4.21.20

2 years ago

4.21.6

2 years ago

4.21.7

2 years ago

4.21.4

2 years ago

4.21.5

2 years ago

4.21.1

2 years ago

4.20.2

2 years ago

4.21.2

2 years ago

4.20.3

2 years ago

4.21.3

2 years ago

4.20.4

2 years ago

4.20.0

2 years ago

4.21.0

2 years ago

4.20.1

2 years ago

4.19.14

2 years ago

4.19.13

2 years ago

4.19.12

2 years ago

4.19.11

2 years ago

4.19.10

2 years ago

4.19.16

2 years ago

4.19.15

2 years ago

4.19.8

2 years ago

4.19.9

2 years ago

4.19.5

3 years ago

4.19.6

2 years ago

4.19.7

2 years ago

4.19.3

3 years ago

4.19.4

3 years ago

4.19.0

3 years ago

4.18.1

3 years ago

4.19.1

3 years ago

4.18.2

3 years ago

4.19.2

3 years ago

4.16.0

3 years ago

4.17.0

3 years ago

4.18.0

3 years ago

4.17.1

3 years ago

4.15.0

3 years ago

4.14.1

3 years ago

4.13.2

3 years ago

4.15.1

3 years ago

4.14.2

3 years ago

4.12.4

3 years ago

4.14.3

3 years ago

4.13.0

3 years ago

4.14.0

3 years ago

4.13.1

3 years ago

4.12.3

3 years ago

4.12.2

3 years ago

4.12.1

3 years ago