Shield Warning Icon

shield-warning · Security · 6 styles

Shield Warning is one of the glyphs Solar Icons ships inside its Security set. It is one of 46 glyphs in that category and one of 1,246 icons in the library overall, each drawn on the same 24x24 grid so Shield Warning lines up optically with everything around it. The icon is addressed in templates by the string "shield-warning", and every style variant resolves from that single name.

Read literally, the shape signals protection and trust. That places Shield Warning in the Security family, which covers locks, keys, shields and access control and turns up in login screens, permission matrices, 2FA flows and privacy settings. Teams building products where trust has to be visible reach for this set first. Use Shield Warning where the label alone would be ambiguous — an icon-only button, a dense table row, a mobile tab bar — and keep an accessible name on the control, because the SVG itself is decorative.

Shield Warning in 6 styles

Shield Warning has been redrawn for 6 style variants: Bold, Bold Duotone, Linear, Outline, Broken and Line Duotone. Bold gives you solid filled shapes that hold their weight at 16px and read clearly against coloured backgrounds. Bold Duotone gives you a filled body with a second, lower-opacity layer that adds depth without a second colour token. Linear gives you even 1.5px strokes, the neutral default for dense interfaces and toolbars. A common pairing is Bold for the selected state and Line Duotone for the rest, so the active item reads without a colour change.

BoldShieldWarningBold
Bold DuotoneShieldWarningBoldDuotone
LinearShieldWarningLinear
OutlineShieldWarningOutline
BrokenShieldWarningBroken
Line DuotoneShieldWarningLineDuotone

How to use the shield-warning icon in Angular

Every export is an isolated constant, so the bundler drops whatever you never mention. Import ShieldWarningBold from the "@rchernando/solar-icons/security" entry point, hand it to provideSolarIcons in your application config or in a route-level providers array, and render it with the solar-icon component. All 6 exports for shield-warning live in that same entry point, so switching style is a one-line change.

typescript
import { ShieldWarningBold, ShieldWarningBoldDuotone, ShieldWarningLinear, ShieldWarningOutline, ShieldWarningBroken, ShieldWarningLineDuotone } from '@rchernando/solar-icons/security';
typescript
import { ApplicationConfig } from '@angular/core';
import { provideSolarIcons } from '@rchernando/solar-icons';
import { ShieldWarningBold } from '@rchernando/solar-icons/security';

export const appConfig: ApplicationConfig = {
  providers: [provideSolarIcons(ShieldWarningBold)]
};
html
<solar-icon name="shield-warning" iconStyle="bold" size="24px" />
<solar-icon name="shield-warning" iconStyle="bold-duotone" size="24px" />
<solar-icon name="shield-warning" iconStyle="linear" size="24px" />
<solar-icon name="shield-warning" iconStyle="outline" size="24px" />
<solar-icon name="shield-warning" iconStyle="broken" size="24px" />
<solar-icon name="shield-warning" iconStyle="line-duotone" size="24px" />

More Security icons

Icons drawn alongside it in Security include Shield Up, Shield Plus, Shield Minus, Shield Keyhole Minimalistic, Shield Cross, Shield, Scanner and Password Minimalistic Input. They share stroke weight and corner radius with Shield Warning, so mixing them in one toolbar stays consistent.

Browse all Security icons →

Icons related to Shield Warning

If Shield Warning is not quite the shape you want, Shield, Shield Check, Shield Cross, Shield Keyhole and Shield Keyhole Minimalistic share part of its name and often work as substitutes.

Elsewhere in the library

Across the rest of the set, Special Effects, Infinity, Black Hole2, Sidebar Code, Hand Money and Arrow Left Down cover neighbouring ideas; the name "shield-warning" is 14 characters long and splits into 2 tokens, which is how the explorer's search matches it.

Shield Warning icon FAQ

How do I use the shield-warning icon in Angular?
Import ShieldWarningBold from "@rchernando/solar-icons/security", register it with provideSolarIcons(ShieldWarningBold) and render <solar-icon name="shield-warning" iconStyle="bold" />. No HTTP request is made — the SVG is inlined at build time.
Which styles does Shield Warning support?
6 of them: Bold, Bold Duotone, Linear, Outline, Broken and Line Duotone. Each is a separate export, so you only ship the ones you import.
Can I change the size and colour of shield-warning?
Yes. The size input accepts any CSS length and the SVG uses currentColor, so Shield Warning inherits the text colour of its container — a Tailwind class such as text-violet-400 is enough.

One of 1,246 icons in the Solar Icons explorer. See also the installation guide and the styling reference.