Mermaid


title: Mermaid —

Introduction

I use Mermaid to create diagrams to help me with the design and documentation of software I’m creating, including COTS packages such as the Primavera applications that can be found in Oracle’s Construction and Engineering industry sector.

Some of the Mermaid diagrams can be themed using css, and having created a simple theme for the Entity Relationships, I am hoping to create more. The idea is for these themes to be used as a template whenever I need to create the diagram.

Entity Relationships

Entity Relationships in Mermaid can use their actual name or an alias. By using an alias, I can treat the letters it starts with as if it is a CSS class, and also provide a style for that class. My Entity Relationship provides a different colour scheme for a Tables and Views when documenting database schemas. It also includes different colour schemes for Sub-Queries and the resulting data model when building reports and data feeds. This has been very useful for complex data models used in Oracle Analytics Publisher.

Here are the themes:

Name Alias prefix Basic Colour
Table tbl Blue
View vie Green
Sub-Query sub Red
Final fin Yellow
Default anything else Grey\Blue

This line appears after every note.

Notes mentioning this note


Here are all the notes in this garden, along with their links, visualized as a graph.