Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
This fixes the need to search docs and forums for an example on how to use the `theme-one-dark` theme.
  • Loading branch information
christopher4lis authored and marijnh committed Dec 30, 2024
1 parent 8340686 commit 830f40c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,19 @@ we have a [code of
conduct](http://contributor-covenant.org/version/1/1/0/) that applies
to communication around the project.

# Usage
```bash
npm install @codemirror/theme-one-dark
```

```js
import { oneDark } from '@codemirror/theme-one-dark'

const editor = new EditorView({
extensions: [oneDark]
})
```

## API Reference

@oneDark
Expand Down

0 comments on commit 830f40c

Please sign in to comment.