From 3dc66a64c7bd5c069454012848c4b87c0fb25c32 Mon Sep 17 00:00:00 2001 From: Knut Sveidqvist Date: Tue, 6 Aug 2024 10:27:06 +0200 Subject: [PATCH] MC-1730 Making neo the default theme --- packages/mermaid/package.json | 2 +- packages/mermaid/src/mermaidAPI.ts | 2 +- packages/mermaid/src/schemas/config.schema.yaml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/mermaid/package.json b/packages/mermaid/package.json index e7d646859..51fda31f2 100644 --- a/packages/mermaid/package.json +++ b/packages/mermaid/package.json @@ -1,6 +1,6 @@ { "name": "@mermaid-chart/mermaid", - "version": "11.0.0-b.55", + "version": "11.0.0-b.56", "description": "Markdown-ish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.", "type": "module", "module": "./dist/mermaid.core.mjs", diff --git a/packages/mermaid/src/mermaidAPI.ts b/packages/mermaid/src/mermaidAPI.ts index 2846629af..7fd5dc0e4 100644 --- a/packages/mermaid/src/mermaidAPI.ts +++ b/packages/mermaid/src/mermaidAPI.ts @@ -494,7 +494,7 @@ function initialize(options: MermaidConfig = {}) { options.themeVariables ); } else if (options) { - options.themeVariables = theme.default.getThemeVariables(options.themeVariables); + options.themeVariables = theme.neo.getThemeVariables(options.themeVariables); } const config = diff --git a/packages/mermaid/src/schemas/config.schema.yaml b/packages/mermaid/src/schemas/config.schema.yaml index 7223aba25..18ef2c9cf 100644 --- a/packages/mermaid/src/schemas/config.schema.yaml +++ b/packages/mermaid/src/schemas/config.schema.yaml @@ -71,7 +71,7 @@ properties: - 'null' # should this be a `null`-type? meta:enum: 'null': Can be set to disable any pre-defined mermaid theme - default: 'default' + default: 'neo' themeVariables: tsType: any themeCSS: @@ -84,7 +84,7 @@ properties: - classic - handdrawn - neo - default: 'classic' + default: 'neo' handdrawnSeed: description: | Defines the seed to be used when using handdrawn look. This is important for the automated tests as they will always find differences without the seed. The default value is 0 which gives a random seed.