I’m writing a package that changes the pipe cursor to a block cursor, like some terminal emulators have. It uses the
@syntax-cursor-color variable from the currently selected syntax theme by default, but this may very well be extremely annoying (white text on a white cursor etc.).
To solve this I added a config option to the package, so this behavior can be overridden. To do this, I would like to dynamically change a rule in the packages stylesheet, but is there a way to get the packages stylesheet? Or is there another preferred way of doing such a thing?