Config

Theme

  1. default - This is the default theme for all diagrams.
  2. neutral- This theme is great for black and white documents that will be printed.
  3. dark - This theme goes well with dark-colored elements or dark-mode.
  4. forest - This theme contains shades of green.
  5. base - This is the only theme that can be modified. Use this theme as the base for customizations.

Diagram-specific Themes

%%{init: {'theme':'forest'}}%%
  graph TD
    a --> b

Example

%%{init: {'theme':'forest'}}%% graph TD a --> b

This page was last edited on 2025-03-09 08:53

Powered by Wiki|Docs

This page was last edited on 2025-03-09 08:53

Mac
To whom it may concern

Powered by Wiki|Docs