From f476002691814d6aedc5a60aa98c7b868212524a Mon Sep 17 00:00:00 2001 From: Imma Date: Sun, 15 Jul 2018 19:04:42 +0200 Subject: [PATCH] add comments about CSS in config --- src/mermaidAPI.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/mermaidAPI.js b/src/mermaidAPI.js index d40c336c42..89ce969492 100644 --- a/src/mermaidAPI.js +++ b/src/mermaidAPI.js @@ -49,6 +49,17 @@ for (const themeName of ['default', 'forest', 'dark', 'neutral']) { * ``` */ 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', themeCSS: undefined,