Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sass - Assign variable with another variable

Tags:

sass

I have this variable:

$color_pr1: #d6ad3f;

Now, I'm using Gumby and it uses it's own settings sheet where the following is set:

$header-font-color: #55636b !default;

Is it possible to use $color_pr1 instead? Like this?

$header-font-color: $color_pr1; ?

If now, am I thinking about this all wrong? I'd like to have my own set of colors etc and reuse those within my project.

like image 956
Kenny Bones Avatar asked Apr 29 '13 17:04

Kenny Bones


1 Answers

Use css calc() function:

$header-font-color: calc(#{$color_pr1});
like image 176
Grzegorz Fijołek Avatar answered Dec 17 '22 15:12

Grzegorz Fijołek