nikiv
1
Trying to make cursor be white in dark theme, I tried this
.CodeMirror-cursor {
border-left: 1px solid white;
}
And it did nothing. I also tried solution here: Scripting on Decaf ~ Schalk Neethling with:
.CodeMirror-cursor {
border-left: 1px solid white;
border-right: 1px solid black;
}
nikiv
2
@media (prefers-color-scheme: dark) {
.cm-cursor {
color: white;
}
}
I thought this would work.
As per the docs there is this class. But it has no effect too. 
marijn
3
See the styling example. You have to add another selector for your rule to override the default theme.