Tools / Editor

Pele Theme Editor: Pele Colors

Customize diagram colors with Pele palettes. Preview text, lines and backgrounds, export an SVG or reuse CSS variables with the Pele renderer.

Choose a palette for the destination

Customize diagram background, text, lines, surfaces, and accent colors for a document or presentation. This editor applies a Pele palette to the diagram preview and SVG export. It changes diagram colors, not the surrounding website theme or the meaning of the source.

A worked example

Diagram source

graph TD
    A[User opens Pele Editor] --> B[Write Mermaid code]
    B --> C{Preview looks right?}
    C -- Yes --> D[Export PNG]
    C -- No --> E[Edit diagram]
    E --> B
The same decision flow can use a light or dark palette. Preserve clear separation between labels, shapes, and connecting lines instead of relying on accent color alone.

How to use this tool

  1. Load or paste a diagram and choose a background that matches the intended document.
  2. Adjust text, line, surface, and accent colors while checking the smallest labels.
  3. Download the SVG for a fixed image or download CSS variables to reuse the palette with Pele.

What to check

DetailGuidance
ContrastCheck text against each surface and lines against the background. A palette can look attractive while making thin connectors unreadable.
PortabilityPele CSS variables are not Mermaid.js themeVariables. A host using a different renderer needs its own theme configuration.
Export reviewOpen the downloaded SVG outside the editor. The document background and image viewer can change how the colors appear.

Common questions

Can I use the downloaded CSS in every Mermaid host?

No. It targets Pele’s color variables. Check the destination renderer and integration before applying it. Use a rendered SVG when a consistent visual handoff matters more than live theme configuration.