@codemirror/theme-one-dark
Advanced tools
+6
-0
@@ -0,1 +1,7 @@ | ||
| ## 0.20.0 (2022-04-20) | ||
| ### Breaking changes | ||
| Update dependencies to 0.20.0 | ||
| ## 0.19.1 (2021-11-06) | ||
@@ -2,0 +8,0 @@ |
+5
-4
@@ -6,3 +6,4 @@ 'use strict'; | ||
| var view = require('@codemirror/view'); | ||
| var highlight = require('@codemirror/highlight'); | ||
| var language = require('@codemirror/language'); | ||
| var highlight = require('@lezer/highlight'); | ||
@@ -23,3 +24,3 @@ // Using https://github.com/one-dark/vscode-one-dark-theme/ as reference for the colors | ||
| }, | ||
| "&.cm-focused .cm-cursor": { borderLeftColor: cursor }, | ||
| ".cm-cursor, .cm-dropCursor": { borderLeftColor: cursor }, | ||
| "&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: selection }, | ||
@@ -77,3 +78,3 @@ ".cm-panels": { backgroundColor: darkBackground, color: ivory }, | ||
| */ | ||
| const oneDarkHighlightStyle = highlight.HighlightStyle.define([ | ||
| const oneDarkHighlightStyle = language.HighlightStyle.define([ | ||
| { tag: highlight.tags.keyword, | ||
@@ -118,3 +119,3 @@ color: violet }, | ||
| */ | ||
| const oneDark = [oneDarkTheme, oneDarkHighlightStyle]; | ||
| const oneDark = [oneDarkTheme, language.syntaxHighlighting(oneDarkHighlightStyle)]; | ||
@@ -121,0 +122,0 @@ exports.oneDark = oneDark; |
+1
-1
| import { Extension } from '@codemirror/state'; | ||
| import { HighlightStyle } from '@codemirror/highlight'; | ||
| import { HighlightStyle } from '@codemirror/language'; | ||
@@ -4,0 +4,0 @@ /** |
+4
-3
| import { EditorView } from '@codemirror/view'; | ||
| import { HighlightStyle, tags } from '@codemirror/highlight'; | ||
| import { HighlightStyle, syntaxHighlighting } from '@codemirror/language'; | ||
| import { tags } from '@lezer/highlight'; | ||
@@ -18,3 +19,3 @@ // Using https://github.com/one-dark/vscode-one-dark-theme/ as reference for the colors | ||
| }, | ||
| "&.cm-focused .cm-cursor": { borderLeftColor: cursor }, | ||
| ".cm-cursor, .cm-dropCursor": { borderLeftColor: cursor }, | ||
| "&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: selection }, | ||
@@ -112,4 +113,4 @@ ".cm-panels": { backgroundColor: darkBackground, color: ivory }, | ||
| */ | ||
| const oneDark = [oneDarkTheme, oneDarkHighlightStyle]; | ||
| const oneDark = [oneDarkTheme, /*@__PURE__*/syntaxHighlighting(oneDarkHighlightStyle)]; | ||
| export { oneDark, oneDarkHighlightStyle, oneDarkTheme }; |
+5
-4
| { | ||
| "name": "@codemirror/theme-one-dark", | ||
| "version": "0.19.1", | ||
| "version": "0.20.0", | ||
| "description": "One Dark theme for the CodeMirror code editor", | ||
@@ -29,5 +29,6 @@ "scripts": { | ||
| "dependencies": { | ||
| "@codemirror/highlight": "^0.19.0", | ||
| "@codemirror/state": "^0.19.0", | ||
| "@codemirror/view": "^0.19.0" | ||
| "@lezer/highlight": "^0.16.0", | ||
| "@codemirror/language": "^0.20.0", | ||
| "@codemirror/state": "^0.20.0", | ||
| "@codemirror/view": "^0.20.0" | ||
| }, | ||
@@ -34,0 +35,0 @@ "devDependencies": { |
15512
1.8%244
0.83%4
33.33%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated