I'm using Angular 2. I want to use different themes color from Angular Material. In particular, I want to use a different theme for each slide I have. But where can I change them?
-
You have create seperate css files thatGhanshyam Singh– Ghanshyam Singh2017-02-08 15:20:26 +00:00Commented Feb 8, 2017 at 15:20
-
And import theme.css file inside the css fileGhanshyam Singh– Ghanshyam Singh2017-02-08 15:20:59 +00:00Commented Feb 8, 2017 at 15:20
-
Yes I created 5 different file scss with my themes and I imported them in my angular-cli.json. But then I have only the last theme that I imported.Daniela Donna– Daniela Donna2017-02-08 15:29:59 +00:00Commented Feb 8, 2017 at 15:29
Add a comment
|
1 Answer
Just write styleUrl
with css/scss file path (Do this for all component you have in your project) like this :-
import { Component, OnInit } from '@angular/core';
import { FormGroup, FormControl, Validators, FormBuilder } from '@angular/forms';
import { AuthenticationService } from '../services/authentication.service';
import { Router } from "@angular/router";
import { User } from '../Models/User.interface';
@Component({
templateUrl: '/Html/Account/Login.html',
styleUrls: ['../Content/AppStyles/login.css']
})
export class LoginComponent {
}