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

Customizable Colors and Styles for Diagram Elements #4987

Open
sshah135 opened this issue Oct 26, 2023 · 0 comments
Open

Customizable Colors and Styles for Diagram Elements #4987

sshah135 opened this issue Oct 26, 2023 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request

Comments

@sshah135
Copy link

Proposal

As a user of Mermaid, this has helped me a lot with the diagram creation but I would like to add the ability to customize colors and styles for individual elements within diagrams. This feature would enhance the visual appeal of diagrams and allow for greater personalization.

User Story
As a diagram creator,
I want to be able to choose custom colors for nodes and links,
So that I can create visually appealing and personalized diagrams.

Proposed Implementation

  • Add a color picker for each diagram element (nodes, links, etc.).
  • Implement a function to dynamically update the Mermaid code with the chosen colors and styles.
  • Modify the rendering engine to interpret and apply the custom styles.

Expected Behavior

  • Users can select colors for individual elements using a color picker.
  • The Mermaid code is updated in real-time as users choose colors.
  • Diagrams render with the user-defined colors and styles.

Additional Context

This feature aligns with the goal of enhancing the user experience and allowing for greater creativity in diagram creation. It also falls under the "theme proposal" category, as it empowers users to define their visual themes for diagrams.

Labels:

enhancement
theme proposal
user experience

Can you please assign this issue to me

Colors

Make Mermaid diagrams cooler! Let users pick colors easily for their charts. by giving them option to chose their own color to create the diagram rather than providing them with the default color.

Screenshots

No response

@sshah135 sshah135 added Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request labels Oct 26, 2023
@jgreywolf jgreywolf added include and removed include labels Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants