From f76d27c1aa719ac81fa40c3083a85cd35527f6fc Mon Sep 17 00:00:00 2001 From: Matt DeKok Date: Sat, 21 Oct 2023 19:05:08 -0500 Subject: [PATCH] Fix text color --- src/chartRenderer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chartRenderer.ts b/src/chartRenderer.ts index 603e9e3..1501a16 100644 --- a/src/chartRenderer.ts +++ b/src/chartRenderer.ts @@ -57,7 +57,7 @@ export default class Renderer { let chartOptions: ChartConfiguration; - Chart.defaults.color = getComputedStyle(el).getPropertyValue('--text-muted'); + Chart.defaults.color = yaml.textColor || getComputedStyle(el).getPropertyValue('--text-muted'); Chart.defaults.font.family = getComputedStyle(el).getPropertyValue('--mermaid-font'); Chart.defaults.plugins = { ...Chart.defaults.plugins,