Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 955 Bytes

README.md

File metadata and controls

38 lines (29 loc) · 955 Bytes

Themes for CodeMirror 6

[ DEMO ]

Themes for CodeMirror 6.

Available themes

How to use

import { EditorView, basicSetup } from 'codemirror'
import { javascript } from "@codemirror/lang-javascript"
import { solarizedDark } from 'cm6-theme-solarized-dark'

let editor = new EditorView({
  doc: 'Hello',
  extensions: [
    basicSetup,
    javascript(),
    solarizedDark
  ],
  parent: document.body
})

Read the CodeMirror documentation for more detail about themes.