Themes colors on Pie Charts tittles

Hello!

I´m trying to do the whole project viewable on both dark and light themes.

For Pie Charts text the Theme Colors doesn´t work.


I tried adding some css on the styleseet.css

:root {
    --neutral-10: #fafafa; 
    --neutral-90: #323232:
}

[data-theme="dark"] {
    --neutral-10: #161616; 
    --neutral-90: #21272a:
}

[data-theme="light-cool"] {
    --neutral-10: #f2f4f8;
    --neutral-90: #272525:
}

[data-theme="light-warm"] {
    --neutral-10: #f7f3f2; 
    --neutral-90: #f4f4f4:
}

[data-theme="dark-cool"] {
    --neutral-10: #121619; 
    --neutral-90: #dde1e6:
}

[data-theme="dark-warm"] {
    --neutral-10: #171414; 
    --neutral-90: #e5e0df:
}


text tspan {
    fill: var(--neutral-90); 
}

it works for the Pie chart text but also modify a lot of other things...

Any ideas on a workaround to do this?

Related:

1 Like

Thanks Transistor!