Skip to content
Limited Time 30% off Mermaid Studio — Get discount →

Preview

Last updated:

Mermaid Studio’s diagram preview pane provides interactive pan and zoom controls along with customizable appearance settings. Access preview settings at Settings > Tools > Mermaid Studio > Preview.

Preview settings

Some dark IDE themes have very dark gray or black backgrounds that can make certain diagram elements or edges difficult to see.

Dark background

Enable Lighten Dark Backgrounds to lighten the preview background by 10%, improving diagram visibility.

Lighten dark backgrounds option

As seen below, enabling this option changes the preview background from very dark to a lighter shade, making black elements more visible:

Lightened background

The preview includes zoom and pan controls that you can position and arrange to your preference.

Choose where zoom and pan controls appear in the preview:

PositionDescription
Top LeftControls in the upper-left corner
Top RightControls in the upper-right corner
Bottom LeftControls in the lower-left corner
Bottom RightControls in the lower-right corner (default)

Choose how controls are arranged:

LayoutDescription
VerticalButtons stacked vertically (default)
HorizontalButtons arranged side-by-side

Navigate to Declaration lets you jump from a rendered element in the preview to its definition in the source code.

In preview mode (edit mode off), hold Command Control and click an element. In edit mode, a plain click navigates directly.

SettingDescription
Navigation from previewClick elements to jump to their source definition
Highlight on hoverShow visual feedback when hovering over navigable elements

For the full interactive editing experience including selection, drag-to-connect, and inline editing, see Edit Mode.