---
title: "Custom themes & CSS, MailKaro Docs"
description: "Custom themes & CSS in MailKaro: brand the email your end-users build. For React, Vue, Angular and plain JavaScript."
---

# Custom themes & CSS

Appearance

# Custom 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`.

ℹ The end-user theme manager is a paid feature, the palette button appears only when the plan grants `appearance.custom_themes` (see [Plans & entitlements](https://docs.mailkaro.com/plans)). 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.`. 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.

ts tokens.ts

```
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 `` 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.

ts email-css.ts

```
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.

tsx embed.tsx

```
<EmailEditor
 config={{
 appearance: {
 customCss: ".mailkaro-toolbar { background: #0b1020; }"
 }
 }}
/>
// Drop-in (react-email-craft): pass appearance={{ customCss }} on <EmailEditor />
```

Source: https://docs.mailkaro.com/custom-themes
