Content styling

The MDXEditor component exposes a property called contentEditableClassName that you can use to style the content of the editor. This is useful if you want to use a different font family, or change the contents of the various blocks inside.

For best results, ensure that you style the editor using the same CSS classes that you use in your application.

.prose {
  font-family: "Inter", sans-serif;

.prose strong {
  font-weight: 600;
markdown="Hello **world**!" 

Avoiding collisions with the editor UI

In addition to the content itself, the content editable editor area can include editor elements like the table editor dialog cells and buttons, the frontmatter editor, and the code block editor. To avoid breaking the look of those, ensure that your selectors are conservative and don't target generic elements like div, for example.