← MaV / Alerts & Toasts

Alert

Four colors (Primary / Red / Green / Orange) map to the alert/* tokens. Tinted 10% background, no border; the icon & title carry the variant color while the body stays neutral for legibility. Icon is bell-ringing at 19.43px; action buttons stay btn/textonly blue regardless of variant.

Title
Lorem ipsum dolor sit amet, consectetur adipiscing.
Title
Lorem ipsum dolor sit amet, consectetur adipiscing.
Title
Lorem ipsum dolor sit amet, consectetur adipiscing.
Title
Lorem ipsum dolor sit amet, consectetur adipiscing.
Alert — Title=On, 2 buttonsbg-box 10% · icon & title in variant color · neutral body · padding 16/18 · radius 10

Title — On / Off

On: bold title + medium description stacked. Off: a single medium line, vertically centered with the icon.

Title
Lorem ipsum dolor sit amet, consectetur adipiscing.

Lorem ipsum dolor sit amet, consectetur adipiscing.

Title=On vs Title=Off

Actions — 0 / 1 / 2 buttons

Trailing text buttons, gap 16px. First is btn/textonly/default #352eff, second is btn/textonly/hover #7c9dff.

Title
Lorem ipsum dolor sit amet, consectetur adipiscing.
Title
Lorem ipsum dolor sit amet, consectetur adipiscing.
Title
Lorem ipsum dolor sit amet, consectetur adipiscing.
0 · 1 · 2 buttons

Leading — Icon / Emoji

Icon-only (default), or the bell icon plus a 20px emoji glyph before the content.

Title
Lorem ipsum dolor sit amet, consectetur adipiscing.
💡
Title
Lorem ipsum dolor sit amet, consectetur adipiscing.
Icon · Emoji

Alert State (compact)

Single-line Success / Error state for inline validation. No title, no buttons — icon + one medium line. Success carries a subtle border matching its tint.

This is a Success message

This is an Error message

Alert State — Success / Error

Toast — Dark (Default)

Floating, ephemeral notifications anchored to screen bottom. Background #191919.

Transfer complete
₦ 50,000 sent to James K.
View ×
Transaction failed
Insufficient funds in account
Retry ×
OTP sent
Check your SMS for the code
×
Session expiring
You'll be logged out in 2 minutes
Stay ×
Toast dark — bg #191919 · icon accent · action #a1ff5b

Toast — Light Variant

Profile saved
Your changes have been applied
Undo ×
Could not connect
Check your internet connection
Retry ×
Toast light — bg #fff · border #efefef · action #352eff

Inline Field Feedback

Validation messages attached to a form field — the field and its message share one state color, using the --input-field/* namespace (error → red tint, success → green) with a matching leading icon. Hints are neutral.

Email address
Invalid email address
Password
Password strength: Strong
Phone number
Include country code
Field + message share one state color · error / success / hint--input-field/error/* · --System/Success · --main-text/description

Token Reference

TokenLightUsage
--alert\/primary\/bg-box#352eff1aPrimary tint (10%)
--alert\/primary\/text-brand#352effPrimary title/body/icon
--alert\/danger\/bg-box#ff00001aRed tint (10%)
--alert\/danger\/text-danger#ff0000Red title/body/icon
--alert\/success\/bg-box#629c281aGreen tint (10%)
--alert\/success\/text-success#629c28Green title/body/icon
--alert\/waring\/bg-box#ff84001aOrange tint (10%) — Figma typo "waring"
--alert\/waring\/text-warning#ff8400Orange title/body/icon
--btn\/textonly\/default#352effAlert action button 1
--btn\/textonly\/hover#7c9dffAlert action button 2