DiagrammeR icon indicating copy to clipboard operation
DiagrammeR copied to clipboard

How can I set fontsize for mermaid diagrams?

Open dktanwar opened this issue 3 years ago • 1 comments

I have tried:

graph TD
A[Hard] -->|Text| B(Round)
B --> C{Decision}
C -->|One| D[Result 1]
C -->|Two| E[Result 2]

%% Class Definitions
%% =================
class B cssClass;
classDef cssClass font-size:15px;

dktanwar avatar Apr 29 '21 07:04 dktanwar

Hi, you can use ::: to apply the class

graph TD
A[Hard] -->|Text| B(Round)
B:::cssClass --> C{Decision}:::cssClass
C -->|One| D[Result 1]
C -->|Two| E[Result 2]:::cssClass

%% Class Definitions
%% =================
classDef cssClass font-size:15px,color:red;

swsoyee avatar May 22 '21 11:05 swsoyee