changing cursor colors at runtime

In my app, users can change themes and I need to adjust the cursor color every time they do it.

What’s the best way to achieve this ?

I assume you’re setting some class on a wrapping container element when you change themes. To specify different cursor colors using CSS rules that target your class and .CodeMirror-cursor.

got it, thx!