Status · Lucide

Warning Icon Generator

Turn the warning icon into a finished app icon or favicon: pick a background, a corner radius and a stroke weight, then download SVG, PNG or a full icon package.

A warning that needs attention but is not necessarily an error. The triangle is the ISO-standard hazard shape.

Warning icon preview

Lucide's TriangleAlert at 2px stroke. Drag the icon to reposition it, then download.

What the warning icon means

A warning that needs attention but is not necessarily an error. The triangle is the ISO-standard hazard shape.

Status icons exist to be scanned, not read, and they follow a strict shape grammar: triangles warn, circles inform, octagons stop. Deviating from that grammar slows recognition measurably. Because they will be rendered small and often in colour-coded pairs, the most robust construction is a solid-filled outer shape with the interior mark knocked out in the background colour — an outlined triangle with a thin exclamation mark inside it fails at exactly the size where a status icon matters most.

Where you will actually see it

  • form validation warnings
  • destructive action confirmations
  • incident and alerting dashboards

Drawing the warning at 16 pixels

The exclamation mark inside the triangle has very little room. Solid-fill the triangle and knock the mark out in the background colour.

Stroke weight is the control that matters most here. Lucide icons are drawn on a 24 × 24 grid with a 2px stroke, which means that when the icon is scaled down to 16px the stroke is effectively 1.33px — below one device pixel on a standard-density display. Raising the stroke to 2.5 or 3 before exporting keeps the shape solid; lowering it to 1.5 suits large app icons where a heavy stroke looks clumsy. The editor exposes this as a slider, so you can find the value that survives your smallest target size rather than guessing.

Using it in code

If you want the icon in a Vue project rather than as a downloaded asset, it is a named export of the lucide package:

import { TriangleAlert } from 'lucide-vue-next'

<TriangleAlert :size="24" :stroke-width="2" />

The download button above gives you something different: the icon composed onto a background with a corner radius, exported as a flat SVG path set. The exporter converts the icon out of its <foreignObject> wrapper first, because a foreign object taints an HTML canvas and would otherwise break PNG and ICO rasterisation.

Pair the warning with a letter

An icon and a letter in the same mark is a common lockup — the letter carries the brand, the icon carries the category. The editor lets you position both independently on the same canvas.

Build your warning icon set

Open the free editor to change the background, gradient, corner radius, icon size, rotation and stroke weight — then export SVG, PNG, ICO or a complete favicon package with manifest and HTML.

Open the warning icon editor

© 2026 AppIcons.dev. All rights reserved.