-
Notifications
You must be signed in to change notification settings - Fork 5
/
theme.scss
35 lines (31 loc) · 999 Bytes
/
theme.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
@use "@angular/material" as mat;
@include mat.core();
// Define a dark theme
$dark-theme: mat.define-dark-theme(
(
color: (
primary: mat.define-palette(mat.$blue-palette),
accent: mat.define-palette(mat.$blue-gray-palette),
),
// Only include `typography` and `density` in the default dark theme.
typography: mat.define-typography-config(),
density: -2,
)
);
// Define a light theme
$light-theme: mat.define-light-theme(
(
color: (
primary: mat.define-palette(mat.$blue-palette),
accent: mat.define-palette(mat.$blue-gray-palette),
),
)
);
// Apply the dark theme by default// Apply the dark theme by default
@include mat.all-component-themes($dark-theme);
// Apply the light theme only when the user prefers light themes.
@media (prefers-color-scheme: light) {
// Use the `-color` mixins to only apply color styles without reapplying the same
// typography and density styles.
@include mat.all-component-colors($light-theme);
}