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

State diagrams inline color #1952

Closed
doodlewhale opened this issue Mar 22, 2021 · 2 comments · Fixed by #3644, #3798 or #3841
Closed

State diagrams inline color #1952

doodlewhale opened this issue Mar 22, 2021 · 2 comments · Fixed by #3644, #3798 or #3841
Labels
Contributor needed Status: Approved Is ready to be worked on Type: Enhancement New feature or request

Comments

@doodlewhale
Copy link

Is your feature request related to a problem? Please describe.
There is no simple way to define a node's color inline

Describe the solution you'd like
A simple solution akin to the plantuml solution would be ideal. e.g. specifying hex colour code after state name. See plantuml example:
image

Describe alternatives you've considered
PlantUML

@doodlewhale doodlewhale added Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request labels Mar 22, 2021
@knsv
Copy link
Collaborator

knsv commented Mar 22, 2021

How about something more like the current solution in flowcharts? We are trying to keep the syntax as uniform as possible between the different diagrams

@doodlewhale
Copy link
Author

How about something more like the current solution in flowcharts? We are trying to keep the syntax as uniform as possible between the different diagrams

That sounds sensible. My suggestion was to keep the State diagrams as close to the Plantuml format for compatibility which seems to have been a requirement from the developers. It would be good to have both options to be fair. I like the idea of keeping it consistent accross the whole of Mermaid but also see the benefit of sharing state diagrams with Plantuml users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Contributor needed Status: Approved Is ready to be worked on Type: Enhancement New feature or request
Projects
None yet
3 participants