# CodeMirror6: editor.setOption('theme', 'blackboard')

**URL:** https://discuss.codemirror.net/t/codemirror6-editor-setoption-theme-blackboard/5281
**Category:** Uncategorized
**Created:** [November 11, 2022, 7:24pm UTC](https://discuss.codemirror.net/t/codemirror6-editor-setoption-theme-blackboard/5281 "2022-11-11T19:24:37Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ide5kllc](https://discuss.codemirror.net/user_avatar/discuss.codemirror.net/ide5kllc/32/2680_2.png) [@ide5kllc](https://discuss.codemirror.net/u/ide5kllc)
#### Post date: [November 11, 2022, 7:24pm UTC](https://discuss.codemirror.net/t/codemirror6-editor-setoption-theme-blackboard/5281/1 "2022-11-11T19:24:38Z")

</div>

I have created an editor via:

```auto
let editor = new Editorview( ... )

```

and everything works fine.

I try to set a theme using `editor.setOption('theme', 'blackboard');`  
and it appears nothing happens.

From googling around, it appears this is the CodeMirror5 way of doing things.

In CodeMirror6, how do I set my theme to ‘blackboard’ (or any black-background theme?)

---

<div class="post-metadata">

### Author: ![marijn](https://discuss.codemirror.net/user_avatar/discuss.codemirror.net/marijn/32/136_2.png) [@marijn](https://discuss.codemirror.net/u/marijn)
#### Post date: [November 11, 2022, 7:40pm UTC](https://discuss.codemirror.net/t/codemirror6-editor-setoption-theme-blackboard/5281/2 "2022-11-11T19:40:38Z")

</div>

[The configuration example](https://codemirror.net/examples/config/) (specifically the section about dynamic configuration) should help.
