Linear-gradient in variables.scss


#1

Hello,

Im tryng do this:
$colors: ( primary: #485e87, primaryGradient: linear-gradient(#485e87, #1cb5e0), secondary: #3dce69, tertiary: rgb(255, 216, 110), success: #3dce69, danger: #fa6464, light: #f4f4f4, dark: #222 );

but, i having an error:

`The value ‘’ must be a color. If you are setting the value as a map make sure both the base and contrast are
defined as colors. For example: $colors: ( primary: #327eff, secondary: (base: #32db64, contrast: #000), );

  L35:    @error $error-msg;`

what is the best way to add a gradient in variables?


#2

See: Dynamic Theming Ionic not work for model view and side bar