-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(material): added angular material2
- Loading branch information
Showing
10 changed files
with
5,334 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
@import '~@angular/material/core/theming/all-theme'; | ||
|
||
// NOTE: Theming is currently experimental and not yet publically released! | ||
|
||
@include md-core(); | ||
|
||
//Here the existing theme is being redfined | ||
$primary: md-palette($md-deep-purple); | ||
$accent: md-palette($md-amber, A200, A100, A400); | ||
|
||
$theme: md-light-theme($primary, $accent); | ||
|
||
@include angular-material-theme($theme); | ||
|
||
// This is where you define your custom them | ||
|
||
// md-palette takes, color, default, lighter and darker params | ||
.m2app-dark { | ||
$dark-primary: md-palette($md-cyan, 700, 500, 900); | ||
$dark-accent: md-palette($md-yellow, A200, A100, A400); | ||
$dark-warn: md-palette($md-amber, A200, A100, A400); | ||
|
||
$dark-theme: md-dark-theme($dark-primary, $dark-accent, $dark-warn); | ||
|
||
@include angular-material-theme($dark-theme); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<div [formGroup]="messageForm"> | ||
<h1>{{messageForm.controls['messageText'].value}}</h1> | ||
<input type="text" formControlName="messageText"/> | ||
<input type="text" formControlName="messageText"/><br/> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.