frappe / charts

Simple, responsive, modern SVG Charts with zero dependencies
https://frappe.io/charts
MIT License
14.95k stars 720 forks source link

How do I separate the CSS injection from the actual script? #266

Open wolffe opened 4 years ago

wolffe commented 4 years ago

Expected Behaviour

Separate CSS file provided

Actual Behaviour

CSS is injected

Steps to Reproduce:

Frappé Charts version: 1.2.4

How do I separate the CSS injection from the actual script? I want to add box-sizing and custom fonts and I had to use !important to override the injected inline style. I also want to combine the Frappe CSS with my product, so as to avoid loading inline CSS or a separate file.

Note: I love how Frappe looks like and if I get past the styling issue, I'll switch from ChartJS.

nicofrand commented 2 years ago

Hi!

I'd like to add that this is pretty much mandatory for me (no pressure though, this is just meant to be an indication) as the CSS class names are too generic and don't use a prefix.