What you can customize
With CSS variables, you can change the look of SuperDoc without rebuilding the editor UI. Typical use cases:- Match your product brand colors
- Style toolbar and menus to fit your app
- Adjust page/canvas appearance
- Customize comments and highlight colors
- Create multiple themes (for example: default, legal, enterprise)
Quick start (2 steps)
1. Define a theme class in your app CSS
2. Apply the theme class on html
Preset themes
SuperDoc includes ready-to-use presets:sd-theme-google-docsβ Google Docs-like looksd-theme-wordβ Microsoft Word-like looksd-theme-blueprintβ high-contrast technical preset
html:
:root.
Recommended token groups
Start with a small set of token groups. You donβt need to override everything.-
UI base
--sd-ui-text,--sd-ui-surface,--sd-ui-border,--sd-ui-action,--sd-ui-action-hover -
Toolbar / dropdown / context menu
--sd-ui-toolbar-*,--sd-ui-dropdown-*,--sd-ui-context-menu-* -
Layout
--sd-layout-page-* -
Comments
--sd-ui-comments-panel-*,--sd-comments-highlight-* -
Tracked changes
--sd-tracked-changes-*
Best practices
- Prefer token overrides over direct selector overrides.
- Override the smallest token set that gives the visual result you need.
- Keep your theme class on
htmlso teleported UI (dropdowns, menus) stays themed.
Where to find the full token list
For the complete, always-up-to-date token list, use source files:variables.cssβ default contract (:root)themes.cssβ preset theme overrides (.sd-theme-*)

