Theme
The embed takes its theme from thetheme prop rather than from the host
page’s own class, so several editors on one page can differ, and a dark editor
can sit inside a light application.
The theme is scoped to the editor’s own subtree, including the canvas. It
never restyles the page around it.
Colours
Three surfaces are separately tunable. Each is a prop, and each is backed by a CSS custom property on the editor root if you would rather use a stylesheet.Fonts
Add your application’s fonts to the native picker without coupling the DOCX family name to the browser rendering stack:family is canonical: it is stored in the document and written to .docx.
cssFamily is only used to preview the choice in the browser.
Zoom
Zoom accepts any positive scale or"fit-width":
zoom is what was requested; scale is the effective canvas scale, which for
"fit-width" is computed from the widest page and recomputed when the
container or the comments stack changes. An expanded comments stack is removed
from the available width; a fixed numeric zoom stays fixed and the editor
scrolls horizontally.
Subscribe to follow it in your own UI:
Layout inside your page
The editor fills its container. Give it a sized parent:className and style pass through to the editor root, so your own layout
rules apply normally.