Merge pull request #688 from imma90/master

add comments about CSS in config
This commit is contained in:
Tyler Long 2018-12-17 17:37:25 +08:00 committed by GitHub
commit de78bb5ffe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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,