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

Very different styles when rendering as png vs. svg #489

Closed
StingyJack opened this issue Mar 10, 2017 · 2 comments
Closed

Very different styles when rendering as png vs. svg #489

StingyJack opened this issue Mar 10, 2017 · 2 comments

Comments

@StingyJack
Copy link

I get very different looking results when using the on-page render as svg vs. calling the cli for the same graph text. Is there a way to get these more consistent looking (more like the svg if possible but either way is better than current)?

Diffs

  • transparent svg background
  • node color
  • subgraph background color
  • subgraph text color (also text and line collision, but thats different)

As CLI rendered image
image

As on page svg...
image

@yudenzel
Copy link
Contributor

yudenzel commented Apr 1, 2017

It looks like these two images were rendered with different theme, default and forest.

To change theme applied to svg output on web, just introduce the css file you want, options available under dist/mermaid.*.css.

I don't know how to change/apply theme for CLI output.

@tylerlong
Copy link
Collaborator

Yes, the are two different themes. You can change the theme with the new CLI: https://github.com/mermaidjs/mermaid.cli

mgenereu pushed a commit to mgenereu/mermaid that referenced this issue Jun 25, 2022
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

3 participants