Skip to content
Limited Time 40% off for early adopters — 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
Section titled “Navigate to Declaration ”

Navigate to Declaration lets you click an element in the preview while holding the Command Command key to jump directly to that element’s definition in the source code.

This feature is experimental and is only available for a subset of diagram types and elements.

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