I am trying to customize an Angular project in conjunction with material design. Part of my package.json looks like this:
"dependencies": { "@angular2-material/button": "2.0.0-alpha.3", "@angular2-material/card": "2.0.0-alpha.3", "@angular2-material/checkbox": "2.0.0-alpha.3", "@angular2-material/core": "2.0.0-alpha.3", "@angular2-material/input": "2.0.0-alpha.3", "@angular2-material/list": "2.0.0-alpha.3", "@angular2-material/progress-bar": "2.0.0-alpha.3", "@angular2-material/progress-circle": "2.0.0-alpha.3", "@angular2-material/radio": "2.0.0-alpha.3", "@angular2-material/sidenav": "2.0.0-alpha.3", "@angular2-material/toolbar": "2.0.0-alpha.3", "angular2": "2.0.0-beta.16", "core-js": "^2.2.2", "normalize.css": "^4.1.1", "rxjs": "5.0.0-beta.2", "zone.js": "~0.6.12" },
inside AngularJS 1 you can set the color palette in the application via mdThemingProvider:
angular.module('myApp', ['ngMaterial']).config(function($mdThemingProvider) { $mdThemingProvider.theme('default') .primaryPalette('pink') .accentPalette('orange'); });
Now I want to do the same for Angular, but I donβt know how to do it. Is it necessary to set the palette through the provider (then which provider can be used and how to configure it?). Or do I need to include scss files from Angular material modules in my main scss file and set some properties?
source share