I did not use @vercel/og. What it does is it lets you create the image with a subset of html that can be interpreted with Yoga, transforms it to an SVG, and draws it with Resvg, but I found that for anything other than when you're adapting basic html, Yoga complicates things more than it helps.