I wrote scss mixin in main root file style.scss. when i try to access it in my home component it gives me error as No mixin named gradient.
Please help do i need to include styles.scss file in my component
//linear gradient color
$from: #1279C9;
$to: #439FE7;
@mixin gradient($from, $to) {
/* fallback/image non-cover color */
background-color: $from;
/* Firefox 3.6+ */
background-image: -moz-linear-gradient($from, $to);
/* Safari 4+, Chrome 1+ */
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from($from), to($to));
/* Safari 5.1+, Chrome 10+ */
background-image: -webkit-linear-gradient($from, $to);
/* Opera 11.10+ */
background-image: -o-linear-gradient($from, $to);
}