Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

153
Views
How do I make my entire Angular application follow the angular material theme

I have set me angular theme to purple and green, which is a dark theme, however my background stays white: my component:

<div class="content">
    <mat-toolbar color="primary">
            <mat-label>All Albums</mat-label>
            <span class="spacer"></span>
            <mat-form-field>
            <input type="tel" matInput placeholder="Search">
            </mat-form-field>
    </mat-toolbar>
    <div class="row wrap">
        <div *ngIf="albums.length == 0">            <h1>No albums found</h1>
        </div>
        <div fxLayout="row wrap" fxLayoutGap="32px grid">
            <div fxFlex="25%" *ngFor="let album of albums">
            <mat-card class="mat-elevation-z1" >
            <mat-card-header>
                <mat-card-title>{{ album.name }}</mat-card-title>
                <mat-card-subtitle>{{ album.description }}</mat-card-subtitle>
            </mat-card-header>
            <img mat-card-image width="250" height="300" src="{{ album.thumbnailUrl }}">

            <mat-card-actions>
                <button routerLink="/albums/{{ album.id }}" color="primary" mat-flat-button>Photos</button>

                <button [matMenuTriggerFor]="albumMenu" mat-icon-button aria-label="Example icon button with a vertical three dot icon">
                    <mat-icon color="accent">more_vert</mat-icon>
                </button>

                <mat-menu #albumMenu="matMenu">
                    <button mat-menu-item (click)="handleDelete(album.id)">
                        <mat-icon color="warn">delete</mat-icon>
                        <span>Delete</span>
                    </button>
                    <button mat-menu-item (click)="handleEdit(album.id)">
                        <mat-icon color="accent">edit</mat-icon>
                        <span>Edit</span>
                    </button>
                </mat-menu>
            </mat-card-actions>
            </mat-card>
            </div>
        </div>
    </div>
    

</div>

The website still looks like this: What my component looks like The mat-card components are dark, but the background is still white. How can I make it so everything is dark. Thanks

about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!