carbon-app / carbon

:black_heart: Create and share beautiful images of your source code

Home Page:https://carbon.now.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cursor not visible with dark background

Erim32 opened this issue · comments

Describe the bug
Code editor cursor is not visible when user use a dark background, current version keep black color.

To Reproduce

  • Create a custop theme with black background
  • click on code block
  • you should not be able to see text cursor position

Expected behavior

  • Be able to see text cursor in different cases, I suggest :
    option 1 : add custom theme color for cursor, using -> my favorite
    option 2 : dynamic ajust text cursor color according background color ( if background is dark, cursor is light and reverse ).

How to fix that :
Use caret-color css propertie ;
https://developer.mozilla.org/en-US/docs/Web/CSS/caret-color

More details :
After deep investigation if you create a theme with a white text cursor, after save your new theme, text cursor will became dark.

Hi @Erim32, can you please put images because I am able to see the cursor with the black background. Thank you