Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5054

how to use config file values in .css file in laravel

$
0
0

I want to use Laravel config file values in my .css file to customize some colors how can I do this?or maybe it is impossible.I hope my question is clearThank you.

my config file

return ['custom' => ['mainLayoutType' => 'horizontal','theme' => 'light','sidebarCollapsed' => false,'navbarColor' => '','navbarTextColor' => '#ffffff',],

];

my css

.header-navbar .navbar-container ul.nav li > a.nav-link {  color: #ffffff;  padding: 1.6rem 1rem 1.35rem 0.5rem;}

what I want to do is something like this

.header-navbar .navbar-container ul.nav li > a.nav-link {  color: config('custom.navbarTextColor');  padding: 1.6rem 1rem 1.35rem 0.5rem;}

Viewing all articles
Browse latest Browse all 5054

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>