1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2026-03-13 10:41:59 +00:00

src/themes/editorTheme.ts

This commit is contained in:
Fred Sauer
2026-02-14 20:33:57 -08:00
parent 2c17572a9e
commit 986e2df338

40
src/themes/editorTheme.ts Normal file
View File

@@ -0,0 +1,40 @@
import { EditorView } from "@codemirror/view";
export const editorTheme = EditorView.theme({
"&": {
height: "100%",
},
".cm-currentpc": {
backgroundColor: "#7e2a70 !important",
},
".currentpc-marker": {
color: "#ff66ee",
},
".currentpc-span-blocked": {
backgroundColor: "#7e2a70 !important",
},
".currentpc-marker-blocked": {
color: "#ffee33",
},
".highlight-lines": {
backgroundColor: "#003399 !important",
},
".gutter-offset": {
marginRight: "0.25em",
},
".gutter-bytes": {
marginLeft: "0.25em",
marginRight: "0.25em",
opacity: 0.7,
},
".gutter-currentpc": {
color: "#ff66ee",
},
".gutter-clock": {
marginLeft: "0.25em",
marginRight: "0.25em",
},
"& .cm-lineNumbers .cm-gutterElement": {
color: "#99cc99",
},
});