editor icon indicating copy to clipboard operation
editor copied to clipboard

Suggestion: A separate style for only the toolbar

Open ZynthCode opened this issue 2 years ago • 5 comments

I have been looking for a built-in style for the toolbar, but I have not found one that only imports required styling for the toolbar.

Unfortunately, when importing import "@mdxeditor/editor/style.css"; it overrides any font styling and even font color. I would very much appreciate a separate style we could import which contains the style for the toolbars (light/dark theme, for example) without having to fiddle with the CSS.

Thank you for the great work done on this tool, very much appreciated 😸

ZynthCode avatar Jan 20 '24 23:01 ZynthCode

I'm not sure I understand the problem you're describing so that I can understand the suggestion you give. Can you give me an example of what you're doing and the problem you face? Start from here.

petyosi avatar Jan 21 '24 16:01 petyosi

Simply put: I'm looking for a basic style just for the toolbar, but I can't find one without having to import a lot of extra styles I don't need.

ZynthCode avatar Jan 21 '24 17:01 ZynthCode

So, you would rather not use the built-in styling at all, but build your own toolbar with what tools you have? Or you still want to use the built-in primitives, but you don't want any of the current styles applied?

petyosi avatar Jan 21 '24 17:01 petyosi

So, you would rather not use the built-in styling at all, but build your own toolbar with what tools you have?

I'm looking for a premade, basic style, which we already have in style.css, but one that only styles the toolbar and not any other components within the editable text/view.

Or you still want to use the built-in primitives, but you don't want any of the current styles applied? I want to use the toolbar style already included in style.css, but without any of the styles that affect the content.

Ideal solution: import "@mdxeditor/editor/toolbar.css";

Thank you for your patience 😸

ZynthCode avatar Jan 21 '24 17:01 ZynthCode

Same here, would be amazing if the CSS was modularised and it was possible to import selectively.

I'm just trying to figure out how to reset the main text view font styles without !important 😅

daaain avatar Apr 10 '25 13:04 daaain