add comments about CSS in config

This commit is contained in:
Imma 2018-07-15 19:04:42 +02:00
parent a4992963b3
commit f476002691

View File

@ -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,