-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
13 additions
and
59 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,8 @@ | ||
@use '@angular/material' as mat; | ||
|
||
// Include the common styles for Angular Material. We include this here so that you only | ||
// have to load a single css file for Angular Material in your app. | ||
// Be sure that you only ever include this mixin once! | ||
@include mat.all-component-typographies(); | ||
@include mat.elevation-classes(); | ||
@include mat.app-background(); | ||
|
||
// Define the palettes for your theme using the Material Design palettes available in palette.scss | ||
// (imported above). For each palette, you can optionally specify a default, lighter, and darker | ||
// hue. Available color palettes: https://material.io/design/color/ | ||
// prebuild themes: | ||
// - light: deeppurple-amber, indigo-pink | ||
// - dark: pink-bluegrey, purple-green | ||
// (see https://github.com/angular/components/tree/7.3.7/src/lib/core/theming/prebuilt) | ||
$primary: mat.m2-define-palette(mat.$m2-indigo-palette); | ||
$accent: mat.m2-define-palette(mat.$m2-pink-palette, A200, A100, A400); | ||
|
||
// The warn palette is optional (defaults to red). | ||
$warn: mat.m2-define-palette(mat.$m2-red-palette); | ||
|
||
// Create the theme object (a Sass map containing all of the palettes). | ||
$light-theme: mat.m2-define-light-theme(( | ||
color: ( | ||
primary: $primary, | ||
accent: $accent, | ||
warn: $warn) | ||
)); | ||
|
||
$dark-theme: mat.m2-define-dark-theme(( | ||
color: ( | ||
primary: $primary, | ||
accent: $accent, | ||
warn: $warn) | ||
)); | ||
|
||
// Include theme styles for core and each component used in your app. | ||
// Alternatively, you can import and @include the theme mixins for each component | ||
// that you are using. | ||
@include mat.all-component-themes($light-theme); | ||
|
||
@media (prefers-color-scheme: dark) { | ||
@include mat.all-component-colors($dark-theme); | ||
html { | ||
color-scheme: light dark; | ||
@include mat.theme(( | ||
color: mat.$azure-palette | ||
)); | ||
} |
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