Skip to content

Commit

Permalink
docs: update latest content of style.scss in Angular Material guide (#…
Browse files Browse the repository at this point in the history
…1167)

Co-authored-by: Brandon Roberts <robertsbt@gmail.com>
  • Loading branch information
esthersoftwaredev and brandonroberts authored Jun 17, 2024
1 parent a590d5e commit bf28bf1
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions apps/docs-app/docs/integrations/angular-material/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,22 +83,31 @@ export default defineConfig(({ mode }) => {

```scss
@use '@angular/material' as mat;
@include mat.core();

$analog-primary: mat.define-palette(mat.$indigo-palette);
$analog-accent: mat.define-palette(mat.$pink-palette, A200, A100, A400);
$analog-warn: mat.define-palette(mat.$red-palette);
$analog-theme: mat.define-light-theme(
$theme: mat.define-theme(
(
color: (
primary: $analog-primary,
accent: $analog-accent,
warn: $analog-warn,
theme-type: light,
primary: mat.$azure-palette,
tertiary: mat.$blue-palette,
),
)
);

@include mat.all-component-themes($analog-theme);
body {
@include mat.all-component-themes($theme);
font-family: Roboto, 'Helvetica Neue', sans-serif;
margin: 0;
padding: 30px;
height: 100%;
}

html {
height: 100%;
}

@include mat.core();
@include mat.color-variants-backwards-compatibility($theme);
```

## Optional Step: Configuring Animations
Expand Down

0 comments on commit bf28bf1

Please sign in to comment.