mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-22 08:50:13 +02:00
#1542 Setting theme options as the regular options
This commit is contained in:
@@ -1,23 +1,4 @@
|
||||
const options = {
|
||||
mainBkg: '#ECECFF',
|
||||
secondBkg: '#ffffde',
|
||||
lineColor: '#333333',
|
||||
border1: '#CCCCFF',
|
||||
border2: '#aaaa33',
|
||||
arrowheadColor: '#333333',
|
||||
|
||||
/* Flowchart variables */
|
||||
|
||||
nodeBkg: 'mainBkg',
|
||||
nodeBorder: '#9370DB',
|
||||
clusterBkg: 'secondBkg',
|
||||
clusterBorder: 'border2',
|
||||
defaultLinkColor: 'lineColor',
|
||||
titleColor: '#333',
|
||||
edgeLabelBackground: '#e8e8e8'
|
||||
};
|
||||
|
||||
const getStyles = () =>
|
||||
const getStyles = options =>
|
||||
`.label {
|
||||
font-family: 'trebuchet ms', verdana, arial;
|
||||
font-family: var(--mermaid-font-family);
|
Reference in New Issue
Block a user