Skip to content

Commit

Permalink
Fix text color
Browse files Browse the repository at this point in the history
  • Loading branch information
sillvva authored Oct 22, 2023
1 parent 2102a51 commit f76d27c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chartRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f76d27c

Please sign in to comment.