CSS variable support for styling (via JS API)
simzer opened this issue · comments
Laszlo Simon commented
use case: easy dark/light mode switch, or themes
const el = document.getElementById("myVizzu");
const styles = window.getComputedStyle(el);
styles.getPropertyValue("--plot-marker-label-position");
// style: { plot: { marker: { label: { position: "whatever"}}}}