I have an Angular solution, and I would like to import a config.json file into the "styles.css" file. I don't even know if that is possible, because I did not find anything like this by searching for similar issues.
Here's what the config.json file looks like:
{
"style" : {
"primaryColor": "#008080",
"secondaryColor" : "#D32F2F"
}
}
Here's what the styles.css looks like:
import * as config from 'config.json';
html {
font-family: 'Trebuchet MS';
background-color: '$config.style.primaryColor';
}
As you can guess, this does not even compile. But I hope you guys get the idea of what I'm trying to do. Do you have any idea how to achieve that?