-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
apply the multiple theme for the angular material
by using the newest method which fix the overlay bug. but there is still has some problems: 1. input placeholder 2. select placeholder and underline 3. slide bar ref issues: [multiple themes don't work with overlay-based components](angular/components#2662) [Some sass selector expressions don't work when nested in a theme class](angular/components#4077)
- Loading branch information
Showing
5 changed files
with
96 additions
and
2 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,83 @@ | ||
@import '~@angular/material/theming'; | ||
//the theme list | ||
// light | ||
//1. indigo-pink | ||
//2. deep-purple-amber | ||
//3. pink-blue-grey | ||
//4. purple-green | ||
//6. orange-cyan | ||
// dark | ||
|
||
@include mat-core(); | ||
// Define a theme. | ||
$primary: mat-palette($mat-indigo, 700, 500, 800); | ||
$accent: mat-palette($mat-pink, A200, A100, A400); | ||
$theme: mat-light-theme($primary, $accent); | ||
|
||
// Include all theme styles for the components. | ||
@include angular-material-theme($theme); | ||
.pink-indigo{ | ||
$primary: mat-palette($mat-pink); | ||
$accent: mat-palette($mat-indigo, A200, A100, A400); | ||
$theme: mat-light-theme($primary, $accent); | ||
@include angular-material-theme($theme); | ||
} | ||
|
||
.deep-purple-amber{ | ||
$primary: mat-palette($mat-deep-purple); | ||
$accent: mat-palette($mat-amber, A200, A100, A400); | ||
$theme: mat-light-theme($primary, $accent); | ||
@include angular-material-theme($theme); | ||
} | ||
.pink-blue-grey{ | ||
$primary: mat-palette($mat-pink); | ||
$accent: mat-palette($mat-blue-grey, A200, A100, A400); | ||
$theme: mat-light-theme($primary, $accent); | ||
@include angular-material-theme($theme); | ||
} | ||
.purple-green{ | ||
$primary: mat-palette($mat-purple); | ||
$accent: mat-palette($mat-green, A200, A100, A400); | ||
$theme: mat-light-theme($primary, $accent); | ||
@include angular-material-theme($theme); | ||
} | ||
.orange-cyan{ | ||
$primary: mat-palette($mat-orange); | ||
$accent: mat-palette($mat-cyan, A200, A100, A400); | ||
$theme: mat-light-theme($primary, $accent); | ||
@include angular-material-theme($theme); | ||
} | ||
|
||
|
||
//dark | ||
.dark-pink-indigo{ | ||
$primary: mat-palette($mat-pink); | ||
$accent: mat-palette($mat-indigo, A200, A100, A400); | ||
$theme: mat-dark-theme($primary, $accent); | ||
@include angular-material-theme($theme); | ||
} | ||
|
||
.dark-deep-purple-amber{ | ||
$primary: mat-palette($mat-deep-purple); | ||
$accent: mat-palette($mat-amber, A200, A100, A400); | ||
$theme: mat-dark-theme($primary, $accent); | ||
@include angular-material-theme($theme); | ||
} | ||
.dark-pink-blue-grey{ | ||
$primary: mat-palette($mat-pink); | ||
$accent: mat-palette($mat-blue-grey, A200, A100, A400); | ||
$theme: mat-dark-theme($primary, $accent); | ||
@include angular-material-theme($theme); | ||
} | ||
.dark-purple-green{ | ||
$primary: mat-palette($mat-purple); | ||
$accent: mat-palette($mat-green, A200, A100, A400); | ||
$theme: mat-dark-theme($primary, $accent); | ||
@include angular-material-theme($theme); | ||
} | ||
.dark-orange-cyan{ | ||
$primary: mat-palette($mat-orange); | ||
$accent: mat-palette($mat-cyan, A200, A100, A400); | ||
$theme: mat-dark-theme($primary, $accent); | ||
@include angular-material-theme($theme); | ||
} |