-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create custom theme #35
Comments
Hi @n2lose
Please check; |
@demirk4n : I have included it, but it doesn't applied for anything. // Include non-theme styles for core. $default-theme: mat-light-theme($default-primary, $default-accent, $default-warn); @include angular-material-theme($default-theme); // Create Nashtech theme $nashtech-theme: mat-dark-theme($nashtech-primary, $nashtech-accent, $nashtech-warn); @include angular-material-theme($nashtech-theme); I known the angular-material-demo works fine. but i can't do it the same and i don't know what's something wrong in my code? Event you see as the screen, the ripple background button, checkbox,...doesn't apply the color cyan A500 as i define. Thanks, |
I see you have created a default theme within
|
Hi @demirk4n, As i have tried to run https://angular-material-demo.firebaseapp.com/ on my local, it works really good. I'm checking to see what's wrong in my app: As you see the error, it doesn't reset some component as button, checkbox, radio button,... and background color is not fill.
It works fines, just have some mess when they use the color of indigo-pink.css, not same as my theme define. I have check your https://angular-material-demo.firebaseapp.com/ and it no need to include that. @include mat-core(); $primary: mat-palette($mat-cyan, 500); $theme: mat-light-theme($primary, $accent, $warn); .nashtech-ui { $theme: mat-dark-theme($primary, $accent, $warn); @include angular-material-theme($theme); Thanks, |
Please push your current work into a repo so I can check all your code. Thanks. |
Hi,
Do you have a doc or guide to instruct about custom theme?
I have followed theme guide to create a custom theme. I also checkout the showcase material2-app and check the material2-app-theme.scss.
But it seems doesn't work well as on demo :
When click the toggle button, it switch and change all the color md-primary, md-accent, md-warn, background to the colors of dark theme :
What you did to import this scss file in the app? I just see in guide, we need to build this scss file to css and linked in the app.component.html.
Can i import it from stylesURLs in the app.component.ts instead of link in the html?
I have did imported in the app.component.ts, it seems doesn't work well. It just change the background color or main page, but it doesn't change the color of components as checkbox, radio, button,...
Here is my theme:
And here is the screen:
Could show me how to change the all the color of components which has class md-primary, md-accent, md-warn,...?
Thanks,
Lam
The text was updated successfully, but these errors were encountered: