Created
January 29, 2019 09:47
-
-
Save shhdharmen/1a2ade4bc0ca4b2fa45dff77f43b9d65 to your computer and use it in GitHub Desktop.
styles.scss file when we add angular material and choose custom theme
This file contains hidden or 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
// Custom Theming for Angular Material | |
// For more information: https://material.angular.io/guide/theming | |
@import '~@angular/material/theming'; | |
// Plus imports for other components in your app. | |
// 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-core(); | |
// 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/ | |
$theming-material-components-primary: mat-palette($mat-indigo); | |
$theming-material-components-accent: mat-palette($mat-pink, A200, A100, A400); | |
// The warn palette is optional (defaults to red). | |
$theming-material-components-warn: mat-palette($mat-red); | |
// Create the theme object (a Sass map containing all of the palettes). | |
$theming-material-components-theme: mat-light-theme($theming-material-components-primary, $theming-material-components-accent, $theming-material-components-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 angular-material-theme($theming-material-components-theme); | |
/* You can add global styles to this file, and also import other style files */ | |
html, body { height: 100%; } | |
body { margin: 0; font-family: Roboto, "Helvetica Neue", sans-serif; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment