Skip to content

Commit b65ebfe

Browse files
author
Your Name
committed
Angular Material In Depth
1 parent 1d38de0 commit b65ebfe

File tree

1 file changed

+83
-1
lines changed

1 file changed

+83
-1
lines changed

src/styles.scss

Lines changed: 83 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,89 @@
22
@use '@angular/material' as mat;
33
/* You can add global styles to this file, and also import other style files */
44

5-
@import "@angular/material/prebuilt-themes/indigo-pink.css";
5+
6+
@include mat.core();
7+
8+
$dark-primary-text: rgba(black, 0.87);
9+
10+
$light-primary-text: white;
11+
12+
$mat-primary: (
13+
50: #e8eaf6,
14+
100: #c5cae9,
15+
200: #9fa8da,
16+
300: #7986cb,
17+
400: #5c6bc0,
18+
500: #3f51b5,
19+
600: #3949ab,
20+
700: #303f9f,
21+
800: #283593,
22+
900: #1a237e,
23+
A100: #8c9eff,
24+
A200: #536dfe,
25+
A400: #3d5afe,
26+
A700: #304ffe,
27+
contrast: (
28+
50: $dark-primary-text,
29+
100: $dark-primary-text,
30+
200: $dark-primary-text,
31+
300: $light-primary-text,
32+
400: $light-primary-text,
33+
500: $light-primary-text,
34+
600: $light-primary-text,
35+
700: $light-primary-text,
36+
800: $light-primary-text,
37+
900: $light-primary-text,
38+
A100: $dark-primary-text,
39+
A200: $light-primary-text,
40+
A400: $light-primary-text,
41+
A700: $light-primary-text,
42+
)
43+
);
44+
45+
$mat-accent: (
46+
50: #fce4ec,
47+
100: #f8bbd0,
48+
200: #f48fb1,
49+
300: #f06292,
50+
400: #ec407a,
51+
500: #e91e63,
52+
600: #d81b60,
53+
700: #c2185b,
54+
800: #ad1457,
55+
900: #880e4f,
56+
A100: #ff80ab,
57+
A200: #ff4081,
58+
A400: #f50057,
59+
A700: #c51162,
60+
contrast: (
61+
50: $dark-primary-text,
62+
100: $dark-primary-text,
63+
200: $dark-primary-text,
64+
300: $dark-primary-text,
65+
400: $dark-primary-text,
66+
500: $light-primary-text,
67+
600: $light-primary-text,
68+
700: $light-primary-text,
69+
800: $light-primary-text,
70+
900: $light-primary-text,
71+
A100: $dark-primary-text,
72+
A200: $light-primary-text,
73+
A400: $light-primary-text,
74+
A700: $light-primary-text,
75+
)
76+
);
77+
78+
79+
$primary: mat.define-palette($mat-primary);
80+
81+
$accent: mat.define-palette($mat-accent);
82+
83+
$theme: mat.define-light-theme($primary, $accent);
84+
85+
86+
@include mat.all-component-themes($theme);
87+
688

789
@import "./mixins";
890

0 commit comments

Comments
 (0)