Skip to content
This repository was archived by the owner on Mar 21, 2025. It is now read-only.

Commit aac67b4

Browse files
committed
fix(demo): only include the theme styles for the components that we use
- this cuts out about 40 KB of minified CSS
1 parent 9668692 commit aac67b4

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/styles.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@
99
// Include theme styles for core and each component used in your app.
1010
// Alternatively, you can import and @include the theme mixins for each component
1111
// that you are using.
12-
@include angular-material-theme($demo-theme);
12+
@include mat-core-theme($demo-theme);
13+
@include mat-icon-theme($demo-theme);
14+
@include mat-menu-theme($demo-theme);
15+
@include mat-button-theme($demo-theme);
16+
@include mat-toolbar-theme($demo-theme);
17+
@include mat-tooltip-theme($demo-theme);
1318

1419
// Pass the theme into the @devintent/dev components.
1520
@include dev-theme($demo-theme);

0 commit comments

Comments
 (0)