change tailwind color based on api response
Using next 14, turbo, tailwind
I have an app that should change colors based on api response.
Can I somehow change the tailwind config primary color in the top of my next app in the head server component?
I think that it is possible in client component by adding style tag and adding new declaration of css variable, but i can’t do it in a server component
I have an app that should change colors based on api response.
Can I somehow change the tailwind config primary color in the top of my next app in the head server component?
I think that it is possible in client component by adding style tag and adding new declaration of css variable, but i can’t do it in a server component
