For Designer

Components/Feedback

Alert

Alerts give short, timely feedback inside a page, from a saved change to a failed payment

Variants
45
Statuses
5
Styles
3

Playground

Pick a size, status and style, then dismiss it to see how it leaves

New sign-in from JakartaIf this was you, there’s nothing to do. If not, secure your account.

Alert · Size=Large · Status=Info · Style=Light

Statuses

Five statuses, each with its own color and icon. The color carries the meaning, so the title still has to say what happened

ErrorSomething failed and needs action
WarningSomething may go wrong soon
SuccessA task finished as expected
Changes savedYour profile is up to date and visible to your team.
InfoNeutral news worth knowing
New sign-in from JakartaIf this was you, there’s nothing to do. If not, secure your account.
FeatureSomething new to try
Smart filters are hereSave any search as a filter and reuse it from the sidebar.

Tip

Close an alert in any tile, it comes back after a moment so you can try again.

Styles

Filled is the loudest, for problems that block the task. Light suits most messages. Stroke sits quietly on white pages and cards

Filled
Changes saved
New sign-in from Jakarta
Light
Changes saved
New sign-in from Jakarta
Stroke
Changes saved
New sign-in from Jakarta

Sizes

Small and Medium are one line, for forms and toolbars. Large adds a description and up to two actions

Small32 px
Medium36 px
LargeHug

When to use

Use when

  1. Feedback belongs to one part of the page, like a form or a card
  2. The message should stay until people read or dismiss it
  3. People may need to act on it, like retrying a payment

Avoid when

  1. The message is about the whole product or account, use a Banner
  2. The feedback is short-lived and needs no action, use a toast
  3. People must decide before going on, use a Modal

Do and don’t

Do

Say what happened in the title and what to do next in the action, like “Payment failed” and “Try again”

Don’t

Don’t use a vague title like “Error”, people can’t tell what went wrong or how to fix it

Tokens and specs

PropertyTokenValue
Width—360 px
Height—32 / 36 px, hug at Large
Padding and gap8 px, 12 px at Large
Radius8 px, 12 px at Large
Error#FB3748
Error, light#FFEBEC
Warning#FA7319
Warning, light#FFF3EB
Success#1FC16B
Success, light#E3F7EC
Info#335CFF
Info, light#EEF0FF
Feature#7B7B7B
Feature, light#F5F5F5
Stroke, fill and outline#FFFFFF / #EBEBEB
Stroke, title and description#171717 / #5C5C5C
Title—Inter Regular 12/16 and 14/20, Medium at Large
Description and actions—Inter Regular / Medium 14/20
Icon—16 px at Small, 20 px otherwise
Close icon—48% opacity, 100% on hover
Esc