tremorlabs / tremor

React components to build charts and dashboards
https://tremor.so
Apache License 2.0
15.39k stars 446 forks source link

Can we add our own cutom colors in the props for bar and line charts? #975

Closed LombaxTech closed 2 months ago

LombaxTech commented 2 months ago

What problem does this feature solve?

right now we can only add colors predefined by tremor. It would be nice if we could also add any custom color.

What does the proposed API look like?

No response

severinlandolt commented 2 months ago

Hey @LombaxTech, you actually can! Have a look here: https://www.tremor.so/docs/getting-started/theming#custom-charts-colors

LombaxTech commented 2 months ago

Oh I see. I was hoping to add custom colors in a way that my users could select custom colors and have that be used in the graph. But in that case, it wouldn't be easy to change the tailwind config file right? So would it be possible to use in line css to change it to some dynamic custom value or is there some other way?