Answer the question
In order to leave comments, you need to log in
How to correctly specify the combination of the # symbol and color code?
Hello!
There is a piece of code like this
$blue:0378FA;//цвет указан БЕЗ #
@function color($color){
@return #{'#'}$color;//в этом месте добавляем #
}
body{
color:color($blue);//используем функцию
}
Answer the question
In order to leave comments, you need to log in
Have you tried that?
Well, or so
Maybe something will work, although I’m not sure
Yes, by the way, it’s possible like and as you did, just through + connect
Or maybe even like that
@return #{'#'}#{$color}
@return '#' + #{$color}
@return #{'#'}+$color
@return #{'#'} + #{$color}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question