role alert
Alert draft v0.1.0
A brief, important message that draws attention without interrupting the task.
An alert tells people something important about the page or what they just did: a saved change, a failed payment, a maintenance window, a quota about to run out. It sits in the content, tinted by its intent with an icon and a title, and is announced by assistive technology when it appears. It never moves focus and never blocks the page: a message that needs a decision is a dialog, a short transient confirmation is a toast.
Playground
Scheduled maintenance
Token inspector
Part container
Not rendered in this configuration.
-
background
infofrom default{global.bg.subtle.functional.info.default}Details
- Resolves through
functional.info.50 raw- Value
-
#EDF1F9dark:#09162F - CSS
--alert-container-background-info- Token
alert.container.background.info- Decisions
-
background
successfrom default{global.bg.subtle.functional.success.default}Details
- Resolves through
functional.success.50 raw- Value
-
#DBFAE6dark:#011C16 - CSS
--alert-container-background-success- Token
alert.container.background.success- Decisions
-
background
warningfrom default{global.bg.subtle.functional.warning.default}Details
- Resolves through
functional.warning.50 raw- Value
-
#FFF1C7dark:#1F1504 - CSS
--alert-container-background-warning- Token
alert.container.background.warning- Decisions
-
background
errorfrom default{global.bg.subtle.functional.error.default}Details
- Resolves through
functional.error.50 raw- Value
-
#FEECEAdark:#2B0B08 - CSS
--alert-container-background-error- Token
alert.container.background.error- Decisions
-
border-color
infofrom default{global.border.accent.functional.info.default}Details
- Resolves through
functional.info.700 raw- Value
-
#1A4CADdark:#709DF1 - CSS
--alert-container-border-color-info- Token
alert.container.border-color.info- Decisions
-
border-color
successfrom default{global.border.accent.functional.success.default}Details
- Resolves through
functional.success.700 raw- Value
-
#075D33dark:#16AE64 - CSS
--alert-container-border-color-success- Token
alert.container.border-color.success- Decisions
-
border-color
warningfrom default{global.border.accent.functional.warning.default}Details
- Resolves through
functional.warning.400 raw- Value
-
#DFA700 - CSS
--alert-container-border-color-warning- Token
alert.container.border-color.warning- Decisions
-
border-color
errorfrom default{global.border.accent.functional.error.default}Details
- Resolves through
functional.error.600 raw- Value
-
#C01619 - CSS
--alert-container-border-color-error- Token
alert.container.border-color.error- Decisions
-
border-width from default
{stroke-width.sm}Details
- Value
-
0.6px - CSS
--alert-container-border-width- Token
alert.container.border-width- Decisions
-
border-radius from default
{corner-radius.sm}Details
- Value
-
8px - CSS
--alert-container-border-radius- Token
alert.container.border-radius- Decisions
-
padding from default
{space.16}Details
- Value
-
16px - CSS
--alert-container-padding- Token
alert.container.padding- Decisions
-
gap from default
{space.12}Details
- Value
-
12px - CSS
--alert-container-gap- Token
alert.container.gap- Decisions
Part icon
Not rendered in this configuration.
-
color
infofrom default{global.icon.on-subtle.functional.info.default}Details
- Resolves through
global.text.on-subtle.functional.info.default semanticfunctional.info.700 raw- Value
-
#1A4CADdark:#BBCFF3 - CSS
--alert-icon-color-info- Token
alert.icon.color.info- Decisions
-
- An alert has four intents, info (default), success, warning and error, each reading the Figma library's functional family: subtle fill global.bg.subtle.functional.<family>.default, border global.border.accent.functional.<family>.default, icon global.icon.on-subtle.functional.<family>.default, title global.text.on-subtle.functional.<family>.default; the message stays in the primary text color.
- Each intent has a fixed icon of the icon font: info, check_circle, warning, error, drawn at 24 px before the text; it cannot be changed or removed.
-
color
successfrom default{global.icon.on-subtle.functional.success.default}Details
- Resolves through
global.text.on-subtle.functional.success.default semanticfunctional.success.700 raw- Value
-
#075D33dark:#30F498 - CSS
--alert-icon-color-success- Token
alert.icon.color.success- Decisions
-
- An alert has four intents, info (default), success, warning and error, each reading the Figma library's functional family: subtle fill global.bg.subtle.functional.<family>.default, border global.border.accent.functional.<family>.default, icon global.icon.on-subtle.functional.<family>.default, title global.text.on-subtle.functional.<family>.default; the message stays in the primary text color.
- Each intent has a fixed icon of the icon font: info, check_circle, warning, error, drawn at 24 px before the text; it cannot be changed or removed.
-
color
warningfrom default{global.icon.on-subtle.functional.warning.default}Details
- Resolves through
functional.warning.800 raw- Value
-
#3E2D0Cdark:#DFA700 - CSS
--alert-icon-color-warning- Token
alert.icon.color.warning- Decisions
-
- An alert has four intents, info (default), success, warning and error, each reading the Figma library's functional family: subtle fill global.bg.subtle.functional.<family>.default, border global.border.accent.functional.<family>.default, icon global.icon.on-subtle.functional.<family>.default, title global.text.on-subtle.functional.<family>.default; the message stays in the primary text color.
- Each intent has a fixed icon of the icon font: info, check_circle, warning, error, drawn at 24 px before the text; it cannot be changed or removed.
-
color
errorfrom default{global.icon.on-subtle.functional.error.default}Details
- Resolves through
global.text.on-subtle.functional.error.default semanticfunctional.error.600 raw- Value
-
#C01619dark:#FAA79D - CSS
--alert-icon-color-error- Token
alert.icon.color.error- Decisions
-
- An alert has four intents, info (default), success, warning and error, each reading the Figma library's functional family: subtle fill global.bg.subtle.functional.<family>.default, border global.border.accent.functional.<family>.default, icon global.icon.on-subtle.functional.<family>.default, title global.text.on-subtle.functional.<family>.default; the message stays in the primary text color.
- Each intent has a fixed icon of the icon font: info, check_circle, warning, error, drawn at 24 px before the text; it cannot be changed or removed.
-
font-family from default
{font.icon.family}Details
- Value
-
"Material Symbols Outlined" - CSS
--alert-icon-font-family- Token
alert.icon.font-family- Decisions
-
font-weight from default
{font.icon.weight.light}Details
- Value
-
300 - CSS
--alert-icon-font-weight- Token
alert.icon.font-weight- Decisions
-
fill from default
{font.icon.fill.off}Details
- Value
-
0 - CSS
--alert-icon-fill- Token
alert.icon.fill- Decisions
-
grade from default
{font.icon.grade.normal}Details
- Value
-
0 - CSS
--alert-icon-grade- Token
alert.icon.grade- Decisions
-
optical-size from default
{font.icon.optical-size.20}Details
- Value
-
20 - CSS
--alert-icon-optical-size- Token
alert.icon.optical-size- Decisions
-
size from default
{size.4}Details
- Value
-
24px - CSS
--alert-icon-size- Token
alert.icon.size- Decisions
Part content
Not rendered in this configuration.
-
gap from default
{space.4}Details
- Value
-
4px - CSS
--alert-content-gap- Token
alert.content.gap- Decisions
Part title
Not rendered in this configuration.
-
color
infofrom default{global.text.on-subtle.functional.info.default}Details
- Resolves through
functional.info.700 raw- Value
-
#1A4CADdark:#BBCFF3 - CSS
--alert-title-color-info- Token
alert.title.color.info- Decisions
-
color
successfrom default{global.text.on-subtle.functional.success.default}Details
- Resolves through
functional.success.700 raw- Value
-
#075D33dark:#30F498 - CSS
--alert-title-color-success- Token
alert.title.color.success- Decisions
-
color
warningfrom default{global.text.on-subtle.functional.warning.default}Details
- Resolves through
functional.warning.700 raw- Value
-
#644B16dark:#FFD654 - CSS
--alert-title-color-warning- Token
alert.title.color.warning- Decisions
-
color
errorfrom default{global.text.on-subtle.functional.error.default}Details
- Resolves through
functional.error.600 raw- Value
-
#C01619dark:#FAA79D - CSS
--alert-title-color-error- Token
alert.title.color.error- Decisions
-
typography from default
Details
- Value
-
Inter [object Object]/1.2 500 [object Object] - CSS
--alert-title-typography-font-family- Token
alert.title.typography- Decisions
Part message
Not rendered in this configuration.
-
color from default
{global.text.on-base.neutral.primary}Details
- Resolves through
light-switch.base.950 rawneutral.light.ash.950 raw- Value
-
#0E0D0Ddark:#D2CECF - CSS
--alert-message-color- Token
alert.message.color- Decisions
-
typography from default
Details
- Value
-
Inter [object Object]/1.5 400 [object Object] - CSS
--alert-message-typography-font-family- Token
alert.message.typography- Decisions
<div class="ds-alert" role="alert" data-intent="info">
<span
class="ds-alert__icon"
data-part="icon"
aria-hidden="true"
>info</span>
<div class="ds-alert__content" data-part="content">
<p
class="ds-alert__title"
data-part="title"
>Scheduled maintenance</p>
<p
class="ds-alert__message"
data-part="message"
>The service will be unavailable on Sunday from 02:00 to 04:00 UTC.</p>
</div>
</div>