mermaid-js / mermaid

Generation of diagrams like flowcharts or sequence diagrams from text in a similar manner as markdown
https://mermaid.js.org
MIT License
68.79k stars 6.08k forks source link

Unable to Style Sequence Diagram Title #5440

Open MaxenceGui opened 3 months ago

MaxenceGui commented 3 months ago

Description

When adding a title to a sequence diagram, I'm unable to modify the title font size. My current workaround is to use a Markdown title.

I have seen other graphs in Mermaid have attributes related to the title, like QuadrantChartConfig, but it is not yet available for the Sequence Diagram.

Steps to reproduce

  1. Create a Sequence Diagram
  2. Insert a title
  3. Add participant and interaction until the title gets very tiny

Screenshots

image image

Code Sample

%% Would like to do
%%{init: {'title': 'fontSize': 40}}%%

title: Sequence Diagram for inference request 1.2.1

    actor Client
    participant Frontend
    participant Backend
    participant Blob storage
    participant Model

Setup

Suggested Solutions

No response

Additional Context

No response