Skip to content

Instantly share code, notes, and snippets.

Last active July 5, 2021 21:07
  • Star 6 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Example of the USE Syntax
* @license
* Copyright Google LLC All Rights Reserved.
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at
// Here's an example of the before and after.
@import '~@angular/material/theming;
@include mat-core();
$primary: mat-palette($mat-indigo);
$accent: mat-palette($mat-pink);
$theme: mat-light-theme((
color: (
primary: $primary,
accent: $accent
@include angular-material-theme($theme);
@use '~@angular/material' as mat;
@include mat.core();
$primary: mat.define-palette(palette.$indigo-palette);
$accent: mat.define-palette(palette.$pink-palette);
$theme: mat.define-light-theme((
color: (
primary: $primary,
accent: $accent
@include mat.all-component-themes($theme);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment