Skip to content

fsegurai/codemirror-themes

Repository files navigation

Themes for CodeMirror 6

[ DEMO ]

Themes for CodeMirror 6.

Available themes

How to use

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

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

Read the CodeMirror documentation for more detail about themes.