vercel / satori

Enlightened library to convert HTML and CSS to SVG
https://og-playground.vercel.app
Mozilla Public License 2.0
11.09k stars 246 forks source link

Support for PandaCss #541

Closed juliomuhlbauer closed 1 year ago

juliomuhlbauer commented 1 year ago

Feature Request

Support PandaCss style engine in Satori.

Description

PandaCss is a css in js that generates styles at build time.

Additional Context

https://panda-css.com/

shuding commented 1 year ago

Sorry, this is not considered as possible with the current architecture. Tailwind or inlined styles are required because Satori can't handle CSS files (or <style> tags) as that adds a lot of complexity. With Tailwind (tw=) we are able to get the element's style directly without parsing the CSS tree.