Skip to content

Commit

Permalink
Use OneDark theme instead of custom theme
Browse files Browse the repository at this point in the history
  • Loading branch information
bkeepers committed Mar 21, 2024
1 parent d4957c2 commit e39923b
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 56 deletions.
16 changes: 14 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"@codemirror/lint": "^6.5.0",
"@codemirror/search": "^6.5.6",
"@codemirror/state": "^6.4.1",
"@codemirror/theme-one-dark": "^6.1.2",
"@codemirror/view": "^6.26.0"
},
"devDependencies": {
Expand Down
10 changes: 10 additions & 0 deletions src/extensions/baseTheme.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { EditorView } from "@codemirror/view"

export default EditorView.baseTheme({
"&": {
minHeight: '100%'
},
".cm-editor": {
minHeight: '100%'
}
})
19 changes: 0 additions & 19 deletions src/extensions/highlightStyle.ts

This file was deleted.

8 changes: 4 additions & 4 deletions src/extensions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import { lintKeymap } from '@codemirror/lint'
import { highlightSelectionMatches, searchKeymap } from '@codemirror/search'
import { drawSelection, highlightActiveLine, highlightActiveLineGutter, highlightSpecialChars, keymap, lineNumbers } from '@codemirror/view'
import { ChordPro } from '@chordbook/codemirror-lang-chordpro'
import highlightStyle from './highlightStyle'
import theme from './theme'
import { oneDark } from '@codemirror/theme-one-dark'
import baseTheme from './baseTheme'

export default [
theme(),
highlightStyle,
baseTheme,
oneDark,
ChordPro(),
lineNumbers(),
highlightActiveLineGutter(),
Expand Down
31 changes: 0 additions & 31 deletions src/extensions/theme.ts

This file was deleted.

0 comments on commit e39923b

Please sign in to comment.