// Alert

Alert

Chamfered status callout — a 1px hairline edge plus a 2px status bar, both carrying the status colour.

.talos-alert is the inline status callout. It’s a 3-column grid (icon · title+body · close) wrapped in a chamfered cut: the host paints the edge colour, a ::before insets 1px with the fill, and a ::after lays a 2px status bar down the inner-left. The status modifier rebinds one channel (--_status-hsl) and the icon, title, edge, and bar all recolour from it — form encodes function.

Default (neutral)

PREVIEW
Notice
No status modifier — edge and bar fall back to the foreground channel.
<div class="talos-alert">
  <span class="talos-alert__icon">◆</span>
  <div class="talos-alert__title">Notice</div>
  <div class="talos-alert__body">No status modifier — edge and bar fall back to the foreground channel.</div>
  <button class="talos-alert__close" aria-label="Dismiss">×</button>
</div>

The __close button is optional; drop it and the grid collapses the close column. __title and __body can each stand alone.

Status — info, success, warning, danger

PREVIEW
Deployment queued
Build #482 is waiting on the test gate.
Synced
All replicas consistent.
Quota near limit
Storage at 91% of the allotted region cap.
Gate failed
3 of 12 integration checks did not pass.
<div class="talos-alert talos-alert--info">…</div>
<div class="talos-alert talos-alert--success">…</div>
<div class="talos-alert talos-alert--warning">…</div>
<div class="talos-alert talos-alert--danger">…</div>

Each modifier rebinds --_status-hsl to --talos-info-hsl / --talos-success-hsl / --talos-warning-hsl / --talos-danger-hsl. The hairline edge, the 2px left bar, the icon, and the title all read that one channel.

Bare

PREVIEW
Gate failed
A plain left-border variant — no chamfer machinery.
<div class="talos-alert talos-alert--bare talos-alert--danger">
  <span class="talos-alert__icon">✕</span>
  <div class="talos-alert__title">Gate failed</div>
  <div class="talos-alert__body">A plain left-border variant — no chamfer machinery.</div>
</div>

--bare drops the clip-path and the two pseudo-element layers, leaving a flat surface with a 2px left status border. Cheaper to render and good for dense stacks.

Classes

ClassEffect
.talos-alertchamfered grid container; neutral status by default
.talos-alert__iconleading glyph, coloured by the status channel
.talos-alert__titledisplay-font, uppercase HUD heading in the status colour
.talos-alert__bodybody-font message, secondary text
.talos-alert__closeoptional dismiss button (top-right column)
.talos-alert--inforebinds status to --talos-info-hsl
.talos-alert--successrebinds status to --talos-success-hsl
.talos-alert--warningrebinds status to --talos-warning-hsl
.talos-alert--dangerrebinds status to --talos-danger-hsl
.talos-alert--baredrops the chamfer + hairline; plain left status border only

Same status vocabulary as .talos-badge and .talos-toast.