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

Apply styles from inside mermaid graphs #631

Open
micartey opened this issue Dec 31, 2023 · 0 comments
Open

Apply styles from inside mermaid graphs #631

micartey opened this issue Dec 31, 2023 · 0 comments

Comments

@micartey
Copy link

You can set styles inside a mermaid graph with something like:

subgraph container [Container]
    ....
    style container fill: transparent, stroke-width: 0px, padding: 0px, margin: 0px
end

But the style is not applied when building the graph to a png e.g.
I saw that there is a -cssFile flag...

Now I see two possibilities:

  1. Create CSS files - If so, then how can I set the style for the container subgraph?
  2. The CLI should detect the styles and apply them on the go
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

1 participant