Angular Material Icons vs Material Symbols: <mat-icon> Setup & Migration Guide
If you are setting up <mat-icon> in an Angular Material app, you have two Google icon families to choose from: the older Material Icons static fonts and the newer Material Symbols variable fonts. Angular Material still defaults <mat-icon> to material-icons, which is why copying a Material Symbols icon name sometimes renders nothing or falls back to the old glyphs.
This guide covers the practical differences between the two families, how to configure fontSet and font-variation-settings in Angular, what happens to legacy icon names like arrow_back_ios, receipt_long, account_circle, and screen_lock_portrait, and when to skip icon fonts altogether in favor of SVG.
Material Icons vs. Material Symbols at a Glance
| Feature | Material Icons (Legacy) | Material Symbols (Current) |
|---|---|---|
| Font type | Static font files (one family per style) | Variable font (4 adjustable axes) |
| Styles | Filled (material-icons), Outlined, Round, Sharp, Two Tone |
Outlined (material-symbols-outlined), Rounded, Sharp |
| Filled vs. Outlined | Separate font stylesheets & fontSet classes |
Controlled by CSS 'FILL' 0 or 'FILL' 1 |
| Stroke weight & optical size | Fixed at 400 weight, 24px design | wght (100–700), opsz (20–48), GRAD (-50 to 200) |
Default <mat-icon> fontSet |
material-icons (default in Angular Material) |
Must be configured via MatIconRegistry or fontSet |
| Status | Maintenance/legacy (no new icons) | Active (all new Google icons ship here) |
If you are starting a new Angular project, use Material Symbols (or inline/sprite SVGs). If you are maintaining an older app, migrating to Material Symbols is usually a small configuration change plus a few renamed ligatures.
1. Loading the Stylesheet in index.html
Each family uses a different Google Fonts endpoint:
Legacy Material Icons:
<!-- Legacy Filled (default) -->
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" />
<!-- Legacy Outlined (separate family) -->
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons+Outlined" />
Material Symbols (variable font):
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,[email protected],100..700,0..1,-50..200"
/>
Replace Material+Symbols+Outlined with Material+Symbols+Rounded or Material+Symbols+Sharp if you prefer those styles.
Performance tip: If your app uses a fixed set of icons, you can append
&icon_names=account_circle,arrow_back_ios,receipt_long(sorted alphabetically) to the Google Fonts CSS2 URL to subset the font down to a few kilobytes instead of downloading all ~3,000+ glyphs.
2. Configuring <mat-icon> and fontSet in Angular
By default, <mat-icon> applies the CSS class material-icons. To switch your app to Material Symbols globally, call setDefaultFontSetClass on MatIconRegistry during app initialization.
In standalone Angular apps (Angular 19+ with provideAppInitializer):
// app.config.ts
import { ApplicationConfig, inject, provideAppInitializer } from '@angular/core';
import { MatIconRegistry } from '@angular/material/icon';
export const appConfig: ApplicationConfig = {
providers: [
provideAppInitializer(() => {
inject(MatIconRegistry).setDefaultFontSetClass('material-symbols-outlined');
}),
],
};
On Angular 18 or earlier, you can call matIconRegistry.setDefaultFontSetClass('material-symbols-outlined') inside an APP_INITIALIZER factory or your root AppComponent constructor.
Once the default fontSet is set, standard ligature markup uses Material Symbols automatically:
<mat-icon>account_circle</mat-icon>
<mat-icon>receipt_long</mat-icon>
<mat-icon>arrow_back_ios</mat-icon>
If you only want Material Symbols on specific icons while keeping material-icons as the global default, pass fontSet directly on the element:
<mat-icon fontSet="material-symbols-outlined">receipt_long</mat-icon>
<mat-icon fontSet="material-symbols-rounded">account_circle</mat-icon>
<mat-icon fontSet="material-symbols-sharp">arrow_back_ios</mat-icon>
3. Controlling FILL, wght, GRAD, and opsz
Material Symbols' biggest advantage over Material Icons is that you do not need to load a second font file to switch between outlined and filled states (for example, on an active navigation tab). You control all four axes with CSS font-variation-settings:
.material-symbols-outlined {
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
/* Filled active state — no extra font request needed */
.nav-item.active mat-icon {
font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}
What each axis controls:
FILL(0or1):0renders the stroked outline;1fills the interior.wght(100–700): Stroke thickness.400matches standard body icons;300works well for dense toolbars;500–700adds emphasis.GRAD(-50to200, commonly-25,0,200): Adjusts visual weight without changing the bounding box—useful for dark-mode compensation (-25) or hover emphasis (200).opsz(20–48): Optical size. Match this to your rendered icon size (20,24,40, or48) so strokes stay crisp.
You can preview all four axes live and copy ready-to-paste <mat-icon> and CSS snippets in our Material Icons & Material Symbols Finder.
4. Legacy Icon Names: What Changed in Material Symbols?
Most popular ligatures work identically in both Material Icons and Material Symbols:
account_circle,receipt_long, andarrow_back_iosall exist in both families under the exact same names. When you switchfontSettomaterial-symbols-outlined, they continue to render without template changes—just with Material Symbols' updated proportions and variable-axis support.
However, two groups of legacy icons will break or look inconsistent if you switch blindly:
1. _outline and _filled suffixes were consolidated
In Material Icons, outlined and filled variants were separate icon names. In Material Symbols, the suffix was dropped because FILL handles both states:
| Legacy Material Icons Name | Material Symbols Replacement |
|---|---|
help_outline |
help |
add_circle_outline |
add_circle |
check_circle_outline |
check_circle |
person_outline |
person |
delete_outline |
delete |
error_outline |
error |
mail_outline |
mail |
play_circle_filled |
play_circle |
2. Legacy-only icons dropped from Material Symbols
A handful of older icons—such as screen_lock_portrait—exist only in the legacy Material Icons font and have no glyph in Material Symbols. If your template uses one of these with material-symbols-outlined, <mat-icon> will render blank or show fallback text.
Search any legacy name in the Material Icons & Material Symbols Finder to see whether it exists in Material Symbols or which replacement name to use.
5. Font vs. SVG (svgIcon) in Angular Material
Even with Material Symbols, icon fonts have three well-known drawbacks in production Angular apps:
- Text flash (FOUT): Before the font finishes downloading, the browser briefly renders the raw ligature text (like
"receipt_long"or"home"). - External dependency: Requests to
fonts.googleapis.comcan be blocked by strict corporate firewalls, ad blockers, or offline environments. - Bundle bloat: Without
&icon_names=subsetting, the full variable font is hundreds of kilobytes even if your app only displays 15 icons.
Switching <mat-icon> from font ligatures to svgIcon with MatIconRegistry solves all three:
<!-- Font ligature -->
<mat-icon>account_circle</mat-icon>
<!-- SVG icon via MatIconRegistry -->
<mat-icon svgIcon="account_circle"></mat-icon>
You can register SVGs from your own domain in three ways:
- SVG sprite (
addSvgIconSet): Best for most apps—one cached HTTP request for all icons. - Per-icon resolver (
addSvgIconResolver): Best when your app has hundreds of icons but only renders a few per route. - Inline literals (
addSvgIconLiteral): Zero HTTP requests—ideal for SSR, unit tests, and component libraries.
If you already have templates full of <mat-icon> ligatures, paste them into the mat-icon Font to SVG Migration Helper. It scans your templates, rewrites ligatures and {{ interpolations }} to svgIcon / [svgIcon], bundles only the Material Symbols SVGs you actually use, and generates the app.config.ts MatIconRegistry code. If you also have custom brand SVGs to register, run them through the SVG Optimizer first to strip unnecessary metadata.
Quick Decision Checklist
- New Angular app, small icon set, want runtime
FILL/weight animations: Use Material Symbols (material-symbols-outlined) withsetDefaultFontSetClassand&icon_names=subsetting. - New or existing app prioritizing zero text flash, offline reliability, and minimal payload: Migrate
<mat-icon>tosvgIconwith the mat-icon SVG Migration Helper. - Existing app using
material-iconswith legacy-only names (screen_lock_portrait,*_outline): Audit your icon names in the Material Icon Finder before switchingfontSet.
