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 --> BHow to use this tool
- Load or paste a diagram and choose a background that matches the intended document.
- Adjust text, line, surface, and accent colors while checking the smallest labels.
- Download the SVG for a fixed image or download CSS variables to reuse the palette with Pele.
What to check
| Detail | Guidance |
|---|---|
| Contrast | Check text against each surface and lines against the background. A palette can look attractive while making thin connectors unreadable. |
| Portability | Pele CSS variables are not Mermaid.js themeVariables. A host using a different renderer needs its own theme configuration. |
| Export review | Open 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.