I am registering custom icon with:
addCustomMaterialIcon(name: string, url: string) {
      this.matIconRegistry.addSvgIcon(
        name,
        this.domSanitizer.bypassSecurityTrustResourceUrl(`${url}`)
      );
}
and using it with
<mat-icon svgIcon="vl-icon" class="y-icon" color="primary"></mat-icon>
But the icon is white and not seen. How can I change its color? 
Tried with css no luck:
.y-icon svg {
  fill: yellowgreen!important;
}
Thanks in advance
 
     
     
    