Skip to content

Commit

Permalink
feat: style monaco editor selection & cursorline
Browse files Browse the repository at this point in the history
Closes #8
  • Loading branch information
nekowinston committed Aug 22, 2023
1 parent fdd8b85 commit 6bae7a8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/_monaco.scss
Original file line number Diff line number Diff line change
@@ -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;
}
}
1 change: 1 addition & 0 deletions src/_theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -285,3 +285,4 @@ $lvl3: if($isDark, $base, $crust);

@import "chroma";
@import "codemirror";
@import "monaco";

0 comments on commit 6bae7a8

Please sign in to comment.