Skip to content

Commit bac5a2d

Browse files
ps173marijnh
authored andcommitted
[themes] Add styling for vim-style cursors to more themes
Issue #6714
1 parent 9b81d0f commit bac5a2d

File tree

8 files changed

+41
-4
lines changed

8 files changed

+41
-4
lines changed

theme/ayu-dark.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,7 @@
4040
text-decoration: underline;
4141
color: white !important;
4242
}
43+
44+
/* changing cursor color in vim mode */
45+
.cm-s-ayu-dark .CodeMirror-cursor { background-color: #a2a8a175 !important; }
46+
.cm-s-ayu-dark .cm-animate-fat-cursor { background-color: #a2a8a175 !important; }

theme/ayu-mirage.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
.cm-s-ayu-mirage .CodeMirror-guttermarker { color: white; }
99
.cm-s-ayu-mirage .CodeMirror-guttermarker-subtle { color: rgba(112, 122, 140, 66); }
1010
.cm-s-ayu-mirage .CodeMirror-linenumber { color: rgba(61, 66, 77, 99); }
11-
.cm-s-ayu-mirage .CodeMirror-cursor { border-left: 1px solid #ffcc66; }
11+
.cm-s-ayu-mirage .CodeMirror-cursor { border-left: 1px solid #ffcc66; }
1212

1313
.cm-s-ayu-mirage span.cm-comment { color: #5c6773; font-style:italic; }
1414
.cm-s-ayu-mirage span.cm-atom { color: #ae81ff; }
@@ -41,3 +41,7 @@
4141
text-decoration: underline;
4242
color: white !important;
4343
}
44+
45+
/* changing cursor color in vim mode */
46+
.cm-s-ayu-mirage .CodeMirror-cursor {background-color: #a2a8a175 !important;}
47+
.cm-animate-fat-cursor { background-color: #a2a8a175 !important; }

theme/base16-dark.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,8 @@
3636

3737
.cm-s-base16-dark .CodeMirror-activeline-background { background: #202020; }
3838
.cm-s-base16-dark .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; }
39+
40+
/* changing cursor color in vim */
41+
.cm-s-base16-dark .CodeMirror-cursor { background-color: #8e8d8875 !important; }
42+
.cm-s-base16-dark .cm-animate-fat-cursor { background-color: #8e8d8875 !important; }
43+

theme/gruvbox-dark.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,8 @@
3535

3636
.cm-s-gruvbox-dark span.cm-builtin { color: #fe8019; }
3737
.cm-s-gruvbox-dark span.cm-tag { color: #fe8019; }
38+
39+
/* changing cursor color in vim mode */
40+
.cm-s-gruvbox-dark .CodeMirror-cursor { background-color: #8e8d8875 !important; }
41+
.cm-s-gruvbox-dark .cm-animate-fat-cursor { background-color: #8e8d8875 !important; }
42+

theme/material-ocean.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,9 @@
132132
.cm-s-material-ocean .CodeMirror-matchingbracket {
133133
text-decoration: underline;
134134
color: white !important;
135-
}
135+
}
136+
137+
/* changing cursor color in vim mode */
138+
.cm-s-material-ocean .CodeMirror-cursor { background-color: #a2a8a175 !important; }
139+
.cm-s-material-ocean .cm-animate-fat-cursor { background-color: #a2a8a175 !important; }
140+

theme/material-palenight.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,8 @@
132132
.cm-s-material-palenight .CodeMirror-matchingbracket {
133133
text-decoration: underline;
134134
color: white !important;
135-
}
135+
}
136+
137+
/* changing cursor colors in vim mode */
138+
.cm-s-material-palenight .CodeMirror-cursor { background-color: #607c8b80 !important; }
139+
.cm-s-material-palenight .cm-animate-fat-cursor { background-color: #607c8b80 !important; }

theme/material.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,9 @@
132132
.cm-s-material .CodeMirror-matchingbracket {
133133
text-decoration: underline;
134134
color: white !important;
135-
}
135+
}
136+
137+
/* changing cursor color in vim mode */
138+
.cm-s-material .CodeMirror-cursor { background-color: #5d6d5c80 !important; }
139+
.cm-s-material .cm-animate-fat-cursor { background-color: #5d6d5c80 !important; }
140+

theme/oceanic-next.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,8 @@
4242
text-decoration: underline;
4343
color: white !important;
4444
}
45+
46+
/* changing cursor color in vim */
47+
.cm-s-oceanic-next .CodeMirror-cursor { background-color: #a2a8a175 !important; }
48+
.cm-s-oceanic-next .cm-animate-fat-cursor { background-color: #a2a8a175 !important; }
49+

0 commit comments

Comments
 (0)