-
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.
- Refactored tooltips from custom impl to AM, removed custom impl - Use system preference dark/light mode - Generated and added AM theme instead of using a default one - Customised some colors to get nicer background colors - Use SASS instead of LESS
- Loading branch information
Showing
7 changed files
with
234 additions
and
75 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,151 @@ | ||
// This file was generated by running 'ng generate @angular/material:m3-theme'. | ||
// Proceed with caution if making changes to this file. | ||
|
||
@use 'sass:map'; | ||
@use '@angular/material' as mat; | ||
|
||
// Note: Color palettes are generated from primary: #e62429 | ||
$_palettes: ( | ||
primary: ( | ||
0: #000000, | ||
10: #410003, | ||
20: #690007, | ||
25: #7d000a, | ||
30: #93000e, | ||
35: #a90012, | ||
40: #c00016, | ||
50: #e72529, | ||
60: #ff544c, | ||
70: #ff897f, | ||
80: #ffb4ac, | ||
90: #ffdad6, | ||
95: #ffedea, | ||
98: #fff8f7, | ||
99: #fffbff, | ||
100: #ffffff, | ||
), | ||
secondary: ( | ||
0: #000000, | ||
10: #410003, | ||
20: #680007, | ||
25: #790f11, | ||
30: #891c1b, | ||
35: #9a2825, | ||
40: #aa342f, | ||
50: #cb4d45, | ||
60: #ed655c, | ||
70: #ff897f, | ||
80: #ffb4ac, | ||
90: #ffdad6, | ||
95: #ffedea, | ||
98: #fff8f7, | ||
99: #fffbff, | ||
100: #ffffff, | ||
), | ||
tertiary: ( | ||
0: #000000, | ||
10: #2c1600, | ||
20: #492900, | ||
25: #593200, | ||
30: #683c00, | ||
35: #794700, | ||
40: #895100, | ||
50: #ac6701, | ||
60: #cb8022, | ||
70: #ea9a3c, | ||
80: #ffb86d, | ||
90: #ffdcbd, | ||
95: #ffeee0, | ||
98: #fff8f4, | ||
99: #fffbff, | ||
100: #ffffff, | ||
), | ||
neutral: ( | ||
0: #000000, | ||
10: #291715, | ||
20: #402b29, | ||
25: #4c3634, | ||
30: #58413f, | ||
35: #644d4a, | ||
40: #715856, | ||
50: #8b716e, | ||
60: #a78a87, | ||
70: #c2a4a1, | ||
80: #dfbfbc, | ||
90: #fcdbd7, | ||
95: #ffedea, | ||
98: hsl(216, 8%, 80%), // customised for background color | ||
99: #fffbff, | ||
100: #ffffff, | ||
4: #190a08, | ||
6: hsl(216, 8%, 25%), // customised for background color | ||
12: #2d1b19, | ||
17: #392523, | ||
22: #44302d, | ||
24: #493432, | ||
87: #f4d3cf, | ||
92: #ffe2de, | ||
94: #ffe9e6, | ||
96: #fff0ef, | ||
), | ||
neutral-variant: ( | ||
0: #000000, | ||
10: #2c1513, | ||
20: #442927, | ||
25: #503431, | ||
30: #5d3f3c, | ||
35: #6a4b47, | ||
40: #775653, | ||
50: #926f6b, | ||
60: #ad8884, | ||
70: #caa29e, | ||
80: #e7bdb8, | ||
90: #ffdad6, | ||
95: #ffedea, | ||
98: #fff8f7, | ||
99: #fffbff, | ||
100: #ffffff, | ||
), | ||
error: ( | ||
0: #000000, | ||
10: #410002, | ||
20: #690005, | ||
25: #7e0007, | ||
30: #93000a, | ||
35: #a80710, | ||
40: #ba1a1a, | ||
50: #de3730, | ||
60: #ff5449, | ||
70: #ff897d, | ||
80: #ffb4ab, | ||
90: #ffdad6, | ||
95: #ffedea, | ||
98: #fff8f7, | ||
99: #fffbff, | ||
100: #ffffff, | ||
), | ||
); | ||
|
||
$_rest: ( | ||
secondary: map.get($_palettes, secondary), | ||
neutral: map.get($_palettes, neutral), | ||
neutral-variant: map.get($_palettes, neutral-variant), | ||
error: map.get($_palettes, error), | ||
); | ||
$_primary: map.merge(map.get($_palettes, primary), $_rest); | ||
$_tertiary: map.merge(map.get($_palettes, tertiary), $_rest); | ||
|
||
$light-theme: mat.define-theme(( | ||
color: ( | ||
theme-type: light, | ||
primary: $_primary, | ||
tertiary: $_tertiary, | ||
), | ||
)); | ||
$dark-theme: mat.define-theme(( | ||
color: ( | ||
theme-type: dark, | ||
primary: $_primary, | ||
tertiary: $_tertiary, | ||
), | ||
)); |
Oops, something went wrong.