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

Document Gantt Chart Colour Customization #5915

Open
HariSekhon opened this issue Oct 1, 2024 · 3 comments
Open

Document Gantt Chart Colour Customization #5915

HariSekhon opened this issue Oct 1, 2024 · 3 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@HariSekhon
Copy link

HariSekhon commented Oct 1, 2024

Description

Gantt chart documentation requires clarification on how to easily modify colours using inline init themeVariables

Steps to reproduce

N/A

Screenshots

This looks rubbish and needs colour customization of both bars and text - you can't even see the text in the light grey bar using the default setting:

Screenshot 2024-10-02 at 01 40 05

Code Sample

No response

Setup

  • Mermaid version: GitHub Markdown
  • Browser and Version: Chrome

Suggested Solutions

Improve Official Documentation

This discussion thread has some ideas:

https://github.com/orgs/mermaid-js/discussions/5436

I'm experimenting with it by looking at the variables here:

https://github.com/mermaid-js/mermaid/blob/develop/packages/mermaid/src/themes/theme-default.js

Additional Context

No response

@HariSekhon HariSekhon added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Oct 1, 2024
@HariSekhon
Copy link
Author

I spent ages testing out customizing my Gantt chart colours the other night - the code might give some tips if anyone finds this issue:

https://github.com/HariSekhon/HariSekhon/blob/725ae8fc6c8227b9bdcd46f2c00efc9e91fe2049/README.md#gantt-chart-of-my-experience

@HariSekhon
Copy link
Author

@HariSekhon
Copy link
Author

HariSekhon commented Oct 10, 2024

Should probably go here, which looks like it's missing documentation for many of the new diagram types:

https://mermaid.js.org/config/theming.html

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: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

1 participant