|
1 | 1 | const getStyles = (options) =>
|
2 | 2 | `
|
3 | 3 | .mermaid-main-font {
|
4 |
| - font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); |
| 4 | + font-family: ${options.fontFamily}; |
5 | 5 | }
|
6 | 6 |
|
7 | 7 | .exclude-range {
|
@@ -45,7 +45,7 @@ const getStyles = (options) =>
|
45 | 45 |
|
46 | 46 | .sectionTitle {
|
47 | 47 | text-anchor: start;
|
48 |
| - font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); |
| 48 | + font-family: ${options.fontFamily}; |
49 | 49 | }
|
50 | 50 |
|
51 | 51 |
|
@@ -86,13 +86,13 @@ const getStyles = (options) =>
|
86 | 86 |
|
87 | 87 | .taskText {
|
88 | 88 | text-anchor: middle;
|
89 |
| - font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); |
| 89 | + font-family: ${options.fontFamily}; |
90 | 90 | }
|
91 | 91 |
|
92 | 92 | .taskTextOutsideRight {
|
93 | 93 | fill: ${options.taskTextDarkColor};
|
94 | 94 | text-anchor: start;
|
95 |
| - font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); |
| 95 | + font-family: ${options.fontFamily}; |
96 | 96 | }
|
97 | 97 |
|
98 | 98 | .taskTextOutsideLeft {
|
@@ -248,7 +248,7 @@ const getStyles = (options) =>
|
248 | 248 | text-anchor: middle;
|
249 | 249 | font-size: 18px;
|
250 | 250 | fill: ${options.titleColor || options.textColor};
|
251 |
| - font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); |
| 251 | + font-family: ${options.fontFamily}; |
252 | 252 | }
|
253 | 253 | `;
|
254 | 254 |
|
|
0 commit comments