After reading the development docs I simply added a background color picker to the sources theme.
how ever, I think that a switch between them might be a better solution.
anyways, these are the code snippets for the sources theme:
file config.json
lines 592 – 605
{
"name": "backgroundcolor",
"label": "Background color",
"group": "Colors",
"value": "#000000",
"type": "colorpicker"
},
{
"name": "primaryColor",
"label": "Primary color",
"group": "Colors",
"value": "#FF427F",
"type": "colorpicker"
},
file theme-variables.js
line 302
--white: ${params.backgroundcolor};
while this is not a full solution. this solved my problem (having to update the CSS every single time).
the log thream solution would be to add a switch between dark theme and white theme