Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mermaid CSS #17

Open
tg-x opened this issue Jul 15, 2024 · 0 comments
Open

Mermaid CSS #17

tg-x opened this issue Jul 15, 2024 · 0 comments
Assignees

Comments

@tg-x
Copy link

tg-x commented Jul 15, 2024

Mermaid diagrams need additional styling.

  1. By default diagrams do not fill the available page width, this needs to be fixed, otherwise some diagrams are too small to read.

  2. Change the default subgraph & node colors to fit the page style from the yellow-purple scheme that is shipped as default.
    This offers a consistent default style, which can be overridden by authors using mermaid syntax if necessary.

Here are some CSS rules that implement the above, it needs to be inserted at the end of the page.

.language-mermaid {
  width: 100%;
}

.language-mermaid .cluster > rect {
  stroke: #caa !important;
  fill: #eee !important;
  fill-opacity: 50%;
}

.language-mermaid .node > :first-child,
.language-mermaid .node > :first-child * {
  stroke: #c33 !important;
  fill: #fee !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants