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

Why override user-defined styles? #6291

Open
GreedyPirate opened this issue Feb 16, 2025 · 0 comments
Open

Why override user-defined styles? #6291

GreedyPirate opened this issue Feb 16, 2025 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request

Comments

@GreedyPirate
Copy link

Proposal

Here is my demo link: https://jsfiddle.net/jaynnay/mgkedpth/
As you can see, I have defined a class .myClass, and I need to add !important to override the Mermaid default styles, as shown in the image below.

Image

But if I need to define a complete set of flowchart styles, this approach would be very inconvenient. Is there a better solution for customizing styles?

Example

No response

Screenshots

No response

@GreedyPirate GreedyPirate added Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request labels Feb 16, 2025
@GreedyPirate GreedyPirate changed the title Why would you want to override user-defined styles? Why override user-defined styles? Feb 16, 2025
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

1 participant