Update theming.md

This commit is contained in:
Neil Cuzon
2020-07-28 19:10:14 -07:00
committed by GitHub
parent 8f9d132ed6
commit e4e24399d9

View File

@@ -4,10 +4,12 @@
With Version 8.7.0 Mermaid comes out with a system for dynamic and integrated setting of the diagram's theme. The objective of this is to increase the customizability of mermaid, by allowing for the customization of themes through the `%%init%%` directive and `initialize`. With it a site integrator can override a vast majority of attributes used when rendering a diagram. With Version 8.7.0 Mermaid comes out with a system for dynamic and integrated setting of the diagram's theme. The objective of this is to increase the customizability of mermaid, by allowing for the customization of themes through the `%%init%%` directive and `initialize`. With it a site integrator can override a vast majority of attributes used when rendering a diagram.
Themes for all intents and purposes also follow the Levels of Configuration and employ `directives` that were introduced in Version [8.6.0](./8.6.0_docs.md). Themes, for all intents and purposes also follow the Levels of Configuration and employ `directives` to modify configurations, as they were introduced in Version [8.6.0](./8.6.0_docs.md).
## Site-wide Themes ## Site-wide Themes
Examples of Initalize Site-wide themes are still declared via `initialize` by site owners.
Example of `Initalize` call:
``` ```
mermaidAPI.initialize({ mermaidAPI.initialize({
'securityLevel': 'loose', 'theme': 'base' 'securityLevel': 'loose', 'theme': 'base'