diff --git a/index.html b/index.html index 1ceb1cf..b72373d 100644 --- a/index.html +++ b/index.html @@ -322,6 +322,15 @@ var vb = src.viewBox.baseVal; c.setAttribute("width", vb.width); c.setAttribute("height", vb.height); + var w = vb.width, h = vb.height; + var bg = document.createElementNS(NS, "rect"); + bg.setAttribute("x","0"); bg.setAttribute("y","0"); + bg.setAttribute("width", w); bg.setAttribute("height", h); + bg.setAttribute("fill", "#ffffff"); + c.insertBefore(bg, c.firstChild); + var st = document.createElementNS(NS, "style"); + st.textContent = ':root{--kt-ai-bg:#fafaf9;--kt-ai-bg-elevated:#ffffff;--kt-ai-border-strong:#78716c;--kt-ai-fg:#0c0a09;--kt-ai-fg-muted:#78716c;--kt-ai-primary:#3ba6f1;--kt-ai-primary-subtle:#c1e1f7;}'; + c.insertBefore(st, bg.nextSibling); return c; } function triggerDownload(blob, name){