Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: A separate style for only the toolbar #326

Open
ZynthCode opened this issue Jan 20, 2024 · 4 comments
Open

Suggestion: A separate style for only the toolbar #326

ZynthCode opened this issue Jan 20, 2024 · 4 comments

Comments

@ZynthCode
Copy link

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 😸

@petyosi
Copy link
Contributor

petyosi commented Jan 21, 2024

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.

@ZynthCode
Copy link
Author

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.

@petyosi
Copy link
Contributor

petyosi commented Jan 21, 2024

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?

@ZynthCode
Copy link
Author

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 😸

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants