From 7d59a624d7f860f5b497a0c3f3a239fe5369c5a7 Mon Sep 17 00:00:00 2001 From: Knut Sveidqvist Date: Wed, 16 Oct 2024 18:25:27 +0200 Subject: [PATCH] Updating fontsize to 14px --- packages/mermaid/src/themes/theme-base.js | 2 +- packages/mermaid/src/themes/theme-dark.js | 2 +- packages/mermaid/src/themes/theme-default.js | 2 +- packages/mermaid/src/themes/theme-forest.js | 2 +- packages/mermaid/src/themes/theme-mc.js | 2 +- packages/mermaid/src/themes/theme-neo-dark.js | 4 ++-- packages/mermaid/src/themes/theme-neo.js | 2 +- packages/mermaid/src/themes/theme-neutral.js | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/mermaid/src/themes/theme-base.js b/packages/mermaid/src/themes/theme-base.js index 350cb0b7e..dd5c401a3 100644 --- a/packages/mermaid/src/themes/theme-base.js +++ b/packages/mermaid/src/themes/theme-base.js @@ -24,7 +24,7 @@ class Theme { // dark this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif'; - this.fontSize = '16px'; + this.fontSize = '14px'; this.useGradient = true; this.dropShadow = 'drop-shadow( 1px 2px 2px rgba(185,185,185,1))'; } diff --git a/packages/mermaid/src/themes/theme-dark.js b/packages/mermaid/src/themes/theme-dark.js index df98bfd28..63b3f29dc 100644 --- a/packages/mermaid/src/themes/theme-dark.js +++ b/packages/mermaid/src/themes/theme-dark.js @@ -25,7 +25,7 @@ class Theme { this.border2 = rgba(255, 255, 255, 0.25); this.arrowheadColor = 'calculated'; this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif'; - this.fontSize = '16px'; + this.fontSize = '14px'; this.labelBackground = '#181818'; this.textColor = '#ccc'; this.THEME_COLOR_LIMIT = 12; diff --git a/packages/mermaid/src/themes/theme-default.js b/packages/mermaid/src/themes/theme-default.js index c03a3553b..0a32673fd 100644 --- a/packages/mermaid/src/themes/theme-default.js +++ b/packages/mermaid/src/themes/theme-default.js @@ -34,7 +34,7 @@ class Theme { this.border2 = '#aaaa33'; this.arrowheadColor = '#333333'; this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif'; - this.fontSize = '16px'; + this.fontSize = '14px'; this.labelBackground = 'rgba(232,232,232, 0.8)'; this.textColor = '#333'; this.THEME_COLOR_LIMIT = 12; diff --git a/packages/mermaid/src/themes/theme-forest.js b/packages/mermaid/src/themes/theme-forest.js index e6cb57ff6..c87b87d6e 100644 --- a/packages/mermaid/src/themes/theme-forest.js +++ b/packages/mermaid/src/themes/theme-forest.js @@ -19,7 +19,7 @@ class Theme { this.border2 = '#6eaa49'; this.arrowheadColor = 'green'; this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif'; - this.fontSize = '16px'; + this.fontSize = '14px'; this.tertiaryColor = lighten('#cde498', 10); this.primaryBorderColor = mkBorder(this.primaryColor, this.darkMode); diff --git a/packages/mermaid/src/themes/theme-mc.js b/packages/mermaid/src/themes/theme-mc.js index ad600efe5..24104b790 100644 --- a/packages/mermaid/src/themes/theme-mc.js +++ b/packages/mermaid/src/themes/theme-mc.js @@ -27,7 +27,7 @@ class Theme { // dark this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif'; - this.fontSize = '12px'; + this.fontSize = '14px'; // Neo-specific this.nodeBorder = '#000000'; diff --git a/packages/mermaid/src/themes/theme-neo-dark.js b/packages/mermaid/src/themes/theme-neo-dark.js index 9eaa42fef..8070dbe32 100644 --- a/packages/mermaid/src/themes/theme-neo-dark.js +++ b/packages/mermaid/src/themes/theme-neo-dark.js @@ -31,7 +31,7 @@ class Theme { this.border2 = rgba(255, 255, 255, 0.25); this.arrowheadColor = invert(this.background); this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif'; - this.fontSize = '16px'; + this.fontSize = '14px'; this.labelBackground = '#181818'; this.textColor = '#ccc'; this.THEME_COLOR_LIMIT = 12; @@ -43,7 +43,7 @@ class Theme { this.THEME_COLOR_LIMIT = 12; // dark this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif'; - this.fontSize = '10px'; + this.fontSize = '14px'; // Neo-specific // this.nodeBorder = 'none'; diff --git a/packages/mermaid/src/themes/theme-neo.js b/packages/mermaid/src/themes/theme-neo.js index aa24b58dc..abb144321 100644 --- a/packages/mermaid/src/themes/theme-neo.js +++ b/packages/mermaid/src/themes/theme-neo.js @@ -26,7 +26,7 @@ class Theme { // dark this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif'; - this.fontSize = '10px'; + this.fontSize = '14px'; // Neo-specific this.nodeBorder = '#000000'; diff --git a/packages/mermaid/src/themes/theme-neutral.js b/packages/mermaid/src/themes/theme-neutral.js index 61031d28e..6b86a4533 100644 --- a/packages/mermaid/src/themes/theme-neutral.js +++ b/packages/mermaid/src/themes/theme-neutral.js @@ -40,7 +40,7 @@ class Theme { this.done = '#bbb'; this.arrowheadColor = '#333333'; this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif'; - this.fontSize = '16px'; + this.fontSize = '14px'; this.THEME_COLOR_LIMIT = 12; this.radius = 5;