I am trying to set the background color for my application using the $background-color variables.scss in the variables.scss file. This works great when setting only colors, such as #000 or #fff , but cannot make it work with a gradient.
$background-color: linear-gradient(to bottom, #000 0%, #fff 100%);
This code throws the following Sass error:
argument '$color' of 'rgba($color, $alpha)' must be a color Backtrace .
So how to set the background color as a gradient?
css sass ionic2
Alexandru Pufan
source share