Custom themes & CSS
AppearanceCustom themes & CSS
Brand the email your end-users build. The in-editor Theme & custom CSS panel edits the design's brand tokens (colors, radius, spacing), the brand font, and raw custom CSS, all applied live to the preview and every export. Separately, integrators can restyle the editor's own chrome with appearance.customCss.
appearance.custom_themes (see Plans & entitlements). Editor-chrome appearance.customCss is an embed-time option, always available to the integrator.Two layers of styling#
| Property | Controls | Default |
|---|---|---|
Brand tokens | design.design_tokens (primary/accent/background/text/radius/spacing) + body.font_family | Theme panel · end-user |
Email custom CSS | design.body.custom_css, injected into the exported email's <head> | Theme panel · end-user |
Editor chrome CSS | config.appearance.customCss, restyles the toolbar/panels/palette | Embed config · integrator |
Built-in themes#
The theme panel opens with a row of one-click palettes (Classic, Midnight, Sunrise, Forest, Mono, Candy). Each applies a complete set of brand tokens + body colors + font; pick one as a starting point, then fine-tune the tokens below.
Brand tokens#
Tokens are named values the renderer maps to CSS custom properties and that any field can reference as token.<name>. Change a token once and every block that references it updates. The theme panel edits the built-in brand tokens and lets you add your own.
design.design_tokens = {
primary: "#14213d", accent: "#ef476f", background: "#f5f1ea", text: "#1f2937", radius: "18px", spacing: "24px"
};
// reference anywhere a value is accepted:
block.values.background_color = "token.accent";Email custom CSS#
Custom CSS on the design is added to the exported email's <head> after the base stylesheet, so it wins the cascade. Target the .mailkaro-* classes. It survives CSS inlining (class rules are also inlined) and shows in the preview and every export.
design.body.custom_css = `
.mailkaro-button-link { text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 620px) { .mailkaro-inner { padding: 0 8px; } }
`;Editor-chrome CSS (integrator)#
Restyle the editor UI itself (not the email) at embed time, the drop-in Unlayer-style customCSS. Rules are scoped under the editor shell so they can't leak into your app.
<EmailEditor
config={{
appearance: {
customCss: ".mailkaro-toolbar { background: #0b1020; }"
}
}}
/>
// Drop-in (react-email-craft): pass appearance={{ customCss }} on <EmailEditor />