DocsBuild your experienceTheming
Quick install
Looks like your product

Theming & typography

Themes and fonts. Match the editor to the product around it so nothing feels bolted on.

Last updated

Force a theme

By default, Eddyter automatically detects the host application's theme. To force a specific theme regardless of the user's system or application settings, use the darkMode prop.

Force dark mode

ForceDark.tsx
<ConfigurableEditorWithAuth
  apiKey="your-api-key"
  darkMode={true}
/>

Force light mode

ForceLight.tsx
<ConfigurableEditorWithAuth
  apiKey="your-api-key"
  darkMode={false}
/>

Interface font

Eddyter's interface uses Geist by default. Pass uiFontFamily to match your own product's typography — it restyles the toolbar labels, menus, dialogs and sidebars, so Eddyter stops looking like a foreign widget on your page.

UiFont.tsx
<ConfigurableEditorWithAuth
  apiKey="your-api-key"
  uiFontFamily="Poppins"
/>

This affects the interface only — document content is untouched, since that font is chosen by your users in Eddyter's own font picker.

You don’t need to load the font yourself

System fonts are used directly, any Google Fonts family is fetched automatically, and a font your page already declares with @font-face is detected and reused. Pass a single family name rather than a CSS stack — "Poppins", not "Poppins, sans-serif". An unrecognised name is ignored and the editor stays on Geist.

Content font

uiFontFamily styles the interface. To set the starting font for the document text your users write, use contentFontFamily.

ContentFont.tsx
<ConfigurableEditorWithAuth
  apiKey="your-api-key"
  uiFontFamily="Poppins"     // toolbar, menus, dialogs
  contentFontFamily="Lora"   // the text users write
/>

The font appears as the selected value in the toolbar's font picker and is applied as your users type. It is a default, not a lock — anyone can pick a different font from the picker and their choice wins. If a user has pinned their own default font, that pin takes precedence over this prop.

Existing content

It applies to newly typed text. Content you load through initialContent that carries no font of its own keeps rendering in Eddyter's base font, DM Sans — so an existing document can show both fonts until its text is rewritten. Loading works the same way as uiFontFamily, and this prop is separate from defaultFontFamilies, which controls which fonts the picker offers.

Was this page useful?