Reputation: 6306
I've created a new Angular app to test the M3 theme, no other styles are setup.
But this is how it looks from literally copy/pasting the code from Angular's example
My full CSS:
@use "@angular/material" as mat;
@use "m3-theme";
@include mat.core();
$test-theme: mat.define-theme(
(
color: (
theme-type: light,
primary: mat.$azure-palette,
tertiary: mat.$blue-palette,
),
density: (
scale: 0,
),
)
);
:root {
@include mat.all-component-themes($test-theme);
}
Did I miss a step?
Upvotes: 2
Views: 633
Reputation: 1
Try this:
@use "@angular/material" as mat;
@use "m3-theme";
@include mat.core();
$test-theme: mat.define-theme(
(
color: (
theme-type: light,
primary: mat.$azure-palette,
tertiary: mat.$blue-palette,
),
density: (
scale: 0,
),
)
);
//
@include mat.color-variants-backwards-compatibility($test-theme);
//
:root {
@include mat.all-component-themes($test-theme);
}
Upvotes: 0