Customise class names

Hi,

We are looking to use CodeMirror in our design system and I was wondering if there was a way to customise class names. By default our design system is based mostly on headless components. We add custom classes with a prefix of cn and let the user customise the theme based on these class names. Because Code Mirror is using cm prefix there might be confusions.

Is there a way to customise the prefix of each class names?

No, there isn’t. You can add additional classes to the outer and the content element, but the classes used by the system itself are hard-coded (as they are in most libraries, I imagine).

Thanks for your feedback. I think there’s a big trend right now for headless components that doesn’t force a certain styling way so you could use Tailwind, CSS Module, plain CSS, …