Personal I'm using a background made with svg from that here link though his color palette is with SCSS
e I am using LESS
how can I convert these elements to LESS
? I tried to put @
instead of $
but did not work follow code in SCSS
that I need to convert to LESS
SCSS:
$colors: (
#feda3e,
#cc6698,
#0869ad,
#ff8300,
#7A86b8,
#f05133,
#2aa9e0,
#71bf45,
#ef0e39,
#9e79d7,
);
$color: nth($colors, random(length($colors)));
#bg {
background: radial-gradient(ellipse at center, @color 0%, darken(@color.toHSL, 50%) 100%);
}
LESS:
@colors:
#feda3e,
#cc6698,
#0869ad,
#ff8300,
#7A86b8,
#f05133,
#2aa9e0,
#71bf45,
#ef0e39,
#9e79d7
;
@color: nth(@colors, random(length(@colors)));
#bg {
background: radial-gradient(ellipse at center, @color 0%, darken(@color, 50%) 100%);
}