mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
add comments about CSS in config
This commit is contained in:
parent
a4992963b3
commit
f476002691
@ -49,6 +49,17 @@ for (const themeName of ['default', 'forest', 'dark', 'neutral']) {
|
|||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
const config = {
|
const config = {
|
||||||
|
|
||||||
|
/** theme , the CSS style sheet
|
||||||
|
*
|
||||||
|
* **theme** - Choose one of the built-in themes: default, forest, dark or neutral. To disable any pre-defined mermaid theme, use "null".
|
||||||
|
* **themeCSS** - Use your own CSS. This overrides **theme**.
|
||||||
|
*```
|
||||||
|
* "theme": "forest",
|
||||||
|
* "themeCSS": ".node rect { fill: red; }"
|
||||||
|
*```
|
||||||
|
*/
|
||||||
|
|
||||||
theme: 'default',
|
theme: 'default',
|
||||||
themeCSS: undefined,
|
themeCSS: undefined,
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user