Next.js Discord

Discord Forum

ImageResponse using custom tailwind config

Rainbow trout posted this in #help-forum
Open in Discord
Rainbow troutOP
I'm currently working on a new website and I want to reuse the same Tailwind configuration between my web app and my open graph images, is it possible to do that using the ImageResponse function from next/server?

2 Replies

fuma 💙 joulev
Currently, the support for tailwind css is still experimental. it is impossible to pass a custom tailwind css configuration
You can refer to there for more information:
Rainbow troutOP
Actually, there is a way to pass custom Tailwind configurations shipped into Satori: