Sign in

Hi, i am Abdullah al fahad. Recently I facing a problem with changing the brand color dynamically of a web application. Laravel, Nuxt, Docker have been used has as technology. This application used SCSS for describing the presentation of application pages, including colors, layout, and fonts, etc., and HEX color system used in the whole application.

I have selected brand colors in my database like brand_color:{primary:'#36ff24', secondary:'#36ff24'} and I have to change everywhere I use primary and secondary colors in SCSS.

We all know in SCSS set variables like $primary:#36ff24 and use like h1{color:$primary}. These SCSS variables can’t access outside…

al_fahad

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store