Skip to content

[Feature Request] Resizing / Styling the d2legend #2774

Description

@axillusion

I didn't see any option to style or resize the built-in d2legend.

Currently for most of the diagrams I make the legend is way too small compared to the rest of the image.
I propose to add the possibility to use the same style or size commands to update the d2legend look.

Example:
vars: { d2-legend: { style: { font-size: 100 } width: 100 height: 100 } }

If this suggestion is approved, I can work on it by myself to add it, as I would love to be able to use it and make the diagrams more readable.
I am currently thinking what styling is needed / useful for the legend, so I am open to any suggestion.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions