@vl2376 wrote:
I am building a
pythonplotlydashwebapp. I am using colors and fonts to style it, and I’d like these colors to be easily changeable. For now I need to declare them both in mypythonandcsscodes, as I usedplotlyfor the graphs andcssfor the styling of some elements. Is there a wy to declare them in a single place, so that I dont have to change colors and fonts at several places. I am thinking something like ajsonfile, which I can easily parse inpythonbut dont know how to parse incss.For now:
Pythoncode:color1 = "rgb(0, 63, 114)" color2 = "rgb(0, 97, 152)" font = "SourceSansProRegular"
CSScode::root { --dark-blue: rgb(0, 63, 114); --light-blue: rgb(0, 97, 152); --font: "SourceSansProRegular"; }
Posts: 1
Participants: 1