Based on the documentation found under Angular Component Styles, I was trying to import the style sheets found under the node_modules; ie:
test.component.css:
@import '~@angular/material/core/theming/all-theme.css';
Whereby the component is defined:
@Component({
moduleId: module.id,
selector: 'app-test',
templateUrl: 'test.component.html',
styleUrls: ['test.component.css'],
encapsulation: ViewEncapsulation.None
})
export class TestComponent {
}
Unfortunately when browsed to the page, it comes up that the ~@angular/material/core/theming/all-theme.css cannot be found.
This project was set up using the Angular-Cli.
I suppose I could copy in the styles, and reference them that way, but I'd rather keep the library dependencies separate.