Skip to content

Commit

Permalink
Fix and clean up some docs
Browse files Browse the repository at this point in the history
And hide some config/spec types that were only used in one place,
so that builddocs can inline them.
  • Loading branch information
marijnh committed Jun 11, 2020
1 parent 4a583d3 commit bb908fd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/one-dark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const chalky = "#e5c07b",
selection = "#405948",
cursor = "#528bff"

export const oneDarkTheme = EditorView.theme({
const oneDarkTheme = EditorView.theme({
wrap: {
color: lightWhite,
backgroundColor: background,
Expand Down Expand Up @@ -70,7 +70,7 @@ export const oneDarkTheme = EditorView.theme({
}
}, {dark: true})

export const oneDarkHighlighter = highlighter({
const oneDarkHighlighter = highlighter({
invalid: {color: invalid},
comment: {color: lightDark},
keyword: {color: purple},
Expand All @@ -88,4 +88,5 @@ export const oneDarkHighlighter = highlighter({
heading: {fontWeight: "bold", color: coral}
})

/// Extension to enable the One Dark theme.
export const oneDark: Extension = [oneDarkTheme, oneDarkHighlighter]

0 comments on commit bb908fd

Please sign in to comment.