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
- Open index.html in a web browser to view the diagram
- To modify the diagram, change the diagramDefinition variable in the JavaScript code
- 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.