My Task is that I will get a hex code from database and depending on the hex code, colors should change.
variables.js
const primaryColor = "#000000";
const secondaryColor = "#ff0000";
const notCheckedColor = "#9CA3AF";
export { primaryColor, secondaryColor, notCheckedColor };
This is an example of code
<section className={`bg-white py-12 mt-12 text-${secondaryColor} sm:py-16 lg:py-20`}>
Problem is the color didn't show.
Inspect output
Thanks as well
I tried to add it statically and it works but when I use bg-${secondaryColor} code, it doesn't work.
I expect that hex code return the color to the element.
