Export Code

Mermaid Starter

Curran Kelleher

Last edited Mar 21, 2025
Created on Mar 21, 2025
Forked from HTML Starter

Basic Mermaid Diagram Example

This project demonstrates how to create a basic Mermaid diagram in an HTML page.

Features

  • Simple flowchart diagram created with Mermaid
  • Responsive layout
  • Easy to modify diagram syntax
  • Left-to-right flow direction
  • Custom grayscale theme with inline styling
  • Base theme support for custom colors

How to Use

  1. Open index.html in a web browser to view the diagram
  2. To modify the diagram, change the diagramDefinition variable in the JavaScript code
  3. Learn more about Mermaid syntax at Mermaid Documentation

Customization

  • The diagram uses the 'base' theme to support custom colors
  • Individual node styles are defined using inline styling
  • Colors are specified using hexadecimal codes
  • Theme variables control the overall appearance

More Examples

For more advanced diagrams like sequence diagrams, class diagrams, and state diagrams, visit the Mermaid official website.

MIT Licensed