diff --git a/src/_monaco.scss b/src/_monaco.scss new file mode 100644 index 0000000..e0b1828 --- /dev/null +++ b/src/_monaco.scss @@ -0,0 +1,19 @@ +.monaco-editor { + // selected text + .selected-text { + background-color: $surface0 !important; + } + // line numbers + .margin-view-overlays .line-numbers { + color: $subtext0 !important; + } + .line-numbers.active-line-number { + color: $accent !important; + } + + // current / cursor line + .view-overlays .current-line, + .margin-view-overlays .current-line-margin { + background-color: #{if($isDark, color.mix($surface0, $base, 64%), color.mix($mantle, $base, 70%))} !important; + } +} diff --git a/src/_theme.scss b/src/_theme.scss index 139c0bb..03babf2 100644 --- a/src/_theme.scss +++ b/src/_theme.scss @@ -285,3 +285,4 @@ $lvl3: if($isDark, $base, $crust); @import "chroma"; @import "codemirror"; +@import "monaco";