@ddietr/codemirror-themes
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -38,3 +38,3 @@ import { EditorView } from '@codemirror/view'; | ||
'.cm-cursor, .cm-dropCursor': { borderLeftColor: config.cursor }, | ||
'&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': { backgroundColor: config.selection }, | ||
'&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': { backgroundColor: config.selection }, | ||
'.cm-panels': { backgroundColor: config.dropdownBackground, color: config.foreground }, | ||
@@ -41,0 +41,0 @@ '.cm-panels.cm-panels-top': { borderBottom: '2px solid black' }, |
@@ -14,3 +14,3 @@ import { EditorView } from '@codemirror/view'; | ||
dropdownBorder: '#191A21', | ||
activeLine: '#44475A', | ||
activeLine: '#282A36', | ||
matchingBracket: '#44475A', | ||
@@ -39,3 +39,3 @@ keyword: '#FF79C6', | ||
'.cm-cursor, .cm-dropCursor': { borderLeftColor: config.cursor }, | ||
'&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': { backgroundColor: config.selection }, | ||
'&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': { backgroundColor: config.selection }, | ||
'.cm-panels': { backgroundColor: config.dropdownBackground, color: config.foreground }, | ||
@@ -42,0 +42,0 @@ '.cm-panels.cm-panels-top': { borderBottom: '2px solid black' }, |
@@ -38,3 +38,3 @@ import { EditorView } from '@codemirror/view'; | ||
'.cm-cursor, .cm-dropCursor': { borderLeftColor: config.cursor }, | ||
'&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': { backgroundColor: config.selection }, | ||
'&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': { backgroundColor: config.selection }, | ||
'.cm-panels': { backgroundColor: config.dropdownBackground, color: config.foreground }, | ||
@@ -41,0 +41,0 @@ '.cm-panels.cm-panels-top': { borderBottom: '2px solid black' }, |
@@ -38,3 +38,3 @@ import { EditorView } from '@codemirror/view'; | ||
'.cm-cursor, .cm-dropCursor': { borderLeftColor: config.cursor }, | ||
'&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': { backgroundColor: config.selection }, | ||
'&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': { backgroundColor: config.selection }, | ||
'.cm-panels': { backgroundColor: config.dropdownBackground, color: config.foreground }, | ||
@@ -41,0 +41,0 @@ '.cm-panels.cm-panels-top': { borderBottom: '2px solid black' }, |
@@ -38,3 +38,3 @@ import { EditorView } from '@codemirror/view'; | ||
'.cm-cursor, .cm-dropCursor': { borderLeftColor: config.cursor }, | ||
'&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': { backgroundColor: config.selection }, | ||
'&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': { backgroundColor: config.selection }, | ||
'.cm-panels': { backgroundColor: config.dropdownBackground, color: config.foreground }, | ||
@@ -41,0 +41,0 @@ '.cm-panels.cm-panels-top': { borderBottom: '2px solid black' }, |
@@ -38,3 +38,3 @@ import { EditorView } from '@codemirror/view'; | ||
'.cm-cursor, .cm-dropCursor': { borderLeftColor: config.cursor }, | ||
'&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': { backgroundColor: config.selection }, | ||
'&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': { backgroundColor: config.selection }, | ||
'.cm-panels': { backgroundColor: config.dropdownBackground, color: config.foreground }, | ||
@@ -41,0 +41,0 @@ '.cm-panels.cm-panels-top': { borderBottom: '2px solid black' }, |
@@ -38,3 +38,3 @@ import { EditorView } from '@codemirror/view'; | ||
'.cm-cursor, .cm-dropCursor': { borderLeftColor: config.cursor }, | ||
'&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': { backgroundColor: config.selection }, | ||
'&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': { backgroundColor: config.selection }, | ||
'.cm-panels': { backgroundColor: config.dropdownBackground, color: config.foreground }, | ||
@@ -41,0 +41,0 @@ '.cm-panels.cm-panels-top': { borderBottom: '2px solid black' }, |
@@ -38,3 +38,3 @@ import { EditorView } from '@codemirror/view'; | ||
'.cm-cursor, .cm-dropCursor': { borderLeftColor: config.cursor }, | ||
'&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': { backgroundColor: config.selection }, | ||
'&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': { backgroundColor: config.selection }, | ||
'.cm-panels': { backgroundColor: config.dropdownBackground, color: config.foreground }, | ||
@@ -41,0 +41,0 @@ '.cm-panels.cm-panels-top': { borderBottom: '2px solid black' }, |
@@ -38,3 +38,3 @@ import { EditorView } from '@codemirror/view'; | ||
'.cm-cursor, .cm-dropCursor': { borderLeftColor: config.cursor }, | ||
'&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': { backgroundColor: config.selection }, | ||
'&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': { backgroundColor: config.selection }, | ||
'.cm-panels': { backgroundColor: config.dropdownBackground, color: config.foreground }, | ||
@@ -41,0 +41,0 @@ '.cm-panels.cm-panels-top': { borderBottom: '2px solid black' }, |
@@ -38,3 +38,3 @@ import { EditorView } from '@codemirror/view'; | ||
'.cm-cursor, .cm-dropCursor': { borderLeftColor: config.cursor }, | ||
'&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': { backgroundColor: config.selection }, | ||
'&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': { backgroundColor: config.selection }, | ||
'.cm-panels': { backgroundColor: config.dropdownBackground, color: config.foreground }, | ||
@@ -41,0 +41,0 @@ '.cm-panels.cm-panels-top': { borderBottom: '2px solid black' }, |
@@ -38,3 +38,3 @@ import { EditorView } from '@codemirror/view'; | ||
'.cm-cursor, .cm-dropCursor': { borderLeftColor: config.cursor }, | ||
'&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': { backgroundColor: config.selection }, | ||
'&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': { backgroundColor: config.selection }, | ||
'.cm-panels': { backgroundColor: config.dropdownBackground, color: config.foreground }, | ||
@@ -41,0 +41,0 @@ '.cm-panels.cm-panels-top': { borderBottom: '2px solid black' }, |
@@ -15,8 +15,9 @@ import {EditorView, highlightActiveLine, lineNumbers} from '@codemirror/view' | ||
import {tokyoNightDay} from '../theme/tokyo-night-day' | ||
import {Extension} from '@codemirror/state' | ||
const parent = document.getElementById('examples') | ||
const doc = document.getElementById('code').textContent.trim() | ||
const parent = document.getElementById('examples')! | ||
const doc = document.getElementById('code')?.textContent?.trim() | ||
const createEditor = (theme) => { | ||
const view = new EditorView({ | ||
const createEditor = (theme: Extension) => { | ||
new EditorView({ | ||
doc, | ||
@@ -23,0 +24,0 @@ extensions: [ |
{ | ||
"name": "@ddietr/codemirror-themes", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
864724
1605