I wanted to use React and have SEO, so I chose Next. But I need to load colors that come from the backend to use in tailwind.config.ts
, but how can I do this using Next?
I wanted to use React and have SEO, so I chose Next. But I need to load colors that come from the backend to use in tailwind.config.ts
, but how can I do this using Next?
2
Answers
I found a solution, thanks everyone!
My
_app.tsx
:In my
tailwind.config.js
:Here is an example of how to import data from backend for
tailwindcss.config