Themes and contentStyle
Dark mode, colors, and matching your view page.
theme: 'auto' follows the OS. If your site has its own toggle, call editor.setTheme('dark').
Colors
The editor uses CSS variables; override them to match your site.
.e82 {
--e82-accent: #0f73e5;
--e82-radius: 6px;
--e82-font: 'Inter', sans-serif;
}Match your view page
createEditor('#editor', {
contentStyle: 'body { font-family: Georgia, serif; font-size: 17px; line-height: 1.7; }',
});