diff --git a/src/index.ts b/src/index.ts index 3ffdd1c..6a0f59a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -162,7 +162,8 @@ async function handlePng( await page.setViewport({ width: 1200, height: 628 }); // Render SVG centered in OG-standard 1200×628 frame (1.91:1 ratio for X/Twitter) - const html = ``; + const bgColor = theme === "dark" ? "#0d1117" : "#fff"; + const html = ``; await page.setContent(html, { waitUntil: "networkidle0" }); // Wait for draw animation to complete