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

pyreverse: colored classes and packages in HTML generated diagrams #10242

Open
mamerzouk opened this issue Feb 20, 2025 · 1 comment
Open

pyreverse: colored classes and packages in HTML generated diagrams #10242

mamerzouk opened this issue Feb 20, 2025 · 1 comment
Labels
Good first issue Friendly and approachable by new contributors Help wanted 🙏 Outside help would be appreciated, good for new contributors pyreverse Related to pyreverse component

Comments

@mamerzouk
Copy link

Current problem

In pyreverse, assuming we use --colorized and increase --max-color-depth, the .png generated diagrams use different colors. But the .html generated diagrams do not use multiple colors, they only use a single color.

Desired solution

When using use --colorized and increasing --max-color-depth with --output html, the generated packages.html and classes.html should have different colors.

More precisely, the node elements in CSS should have different stroke and fill colors, according to the --max-color-depth and the --color-palette.

Additional context

No response

@mamerzouk mamerzouk added the Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling label Feb 20, 2025
@Pierre-Sassoulas Pierre-Sassoulas added the pyreverse Related to pyreverse component label Feb 20, 2025
@DudeNr33
Copy link
Collaborator

The HTML files are generated via MermaidJS, and the MermaidJSPrinter printer implementation currently does not support the colored output.
Looking at the documentation it should be possible to also implement colored output for Mermaid and therefore also for HTML.

@DudeNr33 DudeNr33 added Help wanted 🙏 Outside help would be appreciated, good for new contributors Good first issue Friendly and approachable by new contributors and removed Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling labels Feb 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Good first issue Friendly and approachable by new contributors Help wanted 🙏 Outside help would be appreciated, good for new contributors pyreverse Related to pyreverse component
Projects
None yet
Development

No branches or pull requests

3 participants