Skip to content

Commit

Permalink
Merge pull request #96 from sillvva/master
Browse files Browse the repository at this point in the history
Allow configurable text color
  • Loading branch information
phibr0 authored Oct 22, 2023
2 parents e9684ca + f76d27c commit 5afcee2
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 @@ -69,7 +69,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 5afcee2

Please sign in to comment.