mermaid-js / mermaid

Generation of diagrams like flowcharts or sequence diagrams from text in a similar manner as markdown
https://mermaid.js.org
MIT License
70.8k stars 6.35k forks source link

Gradient Styling #2907

Open JWBWork opened 2 years ago

JWBWork commented 2 years ago

Our company's style applies gradients a lot, would be great if we could see that reflected in mermaid!

A proposed solution: we can set some styling on elements, we could possible define gradients like so: style E gradient:((#fc0303,0%), (#f003fc,50%), (#f003fc,100%));

macejiko commented 2 years ago

This is a critical feature for our company as well. Thinking about shifting to some other tool cause of this

knsv commented 2 years ago

We should add this!

enourbakhsh commented 6 days ago

Is there a way to use linear-gradient for this? See https://github.com/orgs/mermaid-js/discussions/4476