0

Is there any way to configure the theme values dynamically in tailwind react ? I am getting my theme values (background color, color) from server. I need to update these values in tailwind config and use. Not able to find anything in their documentation Example: I am getting primary color as #bada55 from server I need to update this value in tailwind config.

Any workaround would also be helpful.

Thanks

tadain
  • 138
  • 10
  • 2
    Use CSS [variables](https://stackoverflow.com/questions/72300855/load-colors-for-tailwind-config-js-from-server-database-by-using-php/72328467#72328467) instead of hard-coded colors – Ihar Aliakseyenka Jul 25 '22 at 06:48
  • Ya, used css variables only and referenced those var in tailwind.config.js Thanks – tadain Jul 25 '22 at 08:56

0 Answers0