Once the user logs in, I retrieve a color code that is stored in localstorage
and use it throughout the application. However, the challenge lies in replacing this color code in the SASS file.
$Primary-color:#491e6a;
$Secondary-color:#e5673a;
$button-color:#eb0e4d;
$Black:#000;
$White:#fff;
Upon login, the color code needs to replace the existing value for $Primary-color
. For instance, if the color code received is #ecaa0b
, it should replace the old color and be applied to all CSS files.