You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -123,22 +123,21 @@ Inline notifications may be persistent or dismissible depending on priority.
123
123
124
124
### Choosing a visual style
125
125
126
-
Inline alerts support three visual styles. Choose based on the urgency and importance of the message — not personal preference. Do not mix styles within the same context.
126
+
Inline alerts support two visual styles. Choose based on the urgency and importance of the message — not personal preference. Do not mix styles within the same context.
> When unsure, start with **default**. Escalate only when the message demands immediate attention or blocks progress.
133
+
> When unsure, start with **default**. Use Accent only when the message needs a distinct visual call-out.
135
134
136
-
#### Default (subtle)
135
+
#### Default (tinted)
137
136
138
-
Neutral background with status color on the title and icon. Description text uses the standard muted color. Use for routine information, background updates, and non-disruptive feedback.
137
+
Low-opacity status background with neutral title text. Use for critical messages that demand immediate attention or block progress.
139
138
140
139
<divclassName="p-4 border rounded-lg mt-4">
141
-
<AlertDefaultExamples />
140
+
<AlertExamples />
142
141
</div>
143
142
144
143
#### Accent (outline)
@@ -149,14 +148,6 @@ Status color on the border and icon, with default text colors. Use for contextua
149
148
<AlertOutlineExamples />
150
149
</div>
151
150
152
-
#### Bold (tinted)
153
-
154
-
Full status-colored background with white text in dark mode. Use for critical messages that demand immediate attention or block progress.
155
-
156
-
<divclassName="p-4 border rounded-lg mt-4">
157
-
<AlertExamples />
158
-
</div>
159
-
160
151
### Complex alert patterns (edge cases)
161
152
162
153
The patterns above cover the majority of notification needs. The following compositions are reserved for complex workflows where a standard alert is not sufficient. Do not use these as defaults — reach for them only when the workflow genuinely requires inline items or embedded actions.
@@ -241,15 +232,15 @@ Each notification has a status that communicates tone and urgency through color
241
232
242
233
Notification statuses align with the [Badge](/shadcn-components/badge) status system for consistent semantic meaning across the design system.
243
234
244
-
| Status | Usage | Token | Color |Inline notes|
245
-
|---|---|---|---|---|
246
-
|`info`| General updates, FYIs |`--info`|`oklch(0.60 0.125 210)`|Best for passive or contextual information|
247
-
|`success`| Confirmation of completed tasks |`--success`|`oklch(0.57 0.105 152)`|Inline only when tied to direct user action|
248
-
|`warning`| Potential issues or unintended consequences |`--warning`|`oklch(0.80 0.1401 80.82)`|Appropriate for both persistent and action-related messages|
249
-
|`error`| Failures, blockers, critical issues |`--destructive`|`oklch(0.62 0.150 18)`|Inline only when tied to validation or error resolution|
235
+
| Status | Usage | Token | Color |Sonner | Alert|
236
+
|---|---|---|---|---|---|
237
+
|`info`| General updates, FYIs |`--info`|`oklch(0.60 0.125 210)`|`toast.info()`| Use `status="default"`|
238
+
|`success`| Confirmation of completed tasks |`--success`|`oklch(0.57 0.105 152)`|`toast.success()`| Not available — Sonner only|
239
+
|`warning`| Potential issues or unintended consequences |`--warning`|`oklch(0.80 0.1401 80.82)`|`toast.warning()`|`status="warning"`|
@@ -9,12 +9,12 @@ Displays a callout for user attention.
9
9
For guidance on when to use Alert vs. Sonner, visual style selection, and content guidelines, see the [In-product notification](/patterns/notifications/in-product) pattern.
10
10
</Callout>
11
11
12
-
### Default (subtle)
12
+
### Default (tinted)
13
13
14
-
Neutral background with status color on the title and icon. Description text uses the standard muted color. Use for routine information, background updates, and non-disruptive feedback.
14
+
Low-opacity status background with neutral title text. Use for critical messages that demand immediate attention.
15
15
16
16
<divclassName="p-4 border rounded-lg mt-4">
17
-
<AlertDefaultExamples />
17
+
<AlertExamples />
18
18
</div>
19
19
20
20
### Accent (outline)
@@ -25,14 +25,6 @@ Status-colored border and icon with default text. Dismissible. Use for contextua
25
25
<AlertOutlineExamples />
26
26
</div>
27
27
28
-
### Bold (tinted)
29
-
30
-
Full status-colored background. Use for critical messages that demand immediate attention.
The following patterns are for workflows that need inline items or embedded actions inside an alert. Use sparingly — standard alerts cover most cases.
95
-
96
-
### Collapsible content
74
+
For guidance on when and how to use these patterns, see [In-product notification](/patterns/notifications/in-product#complex-alert-patterns-edge-cases).
97
75
98
-
When an alert references a list of items, show them as inline chips. If they overflow a single row, clip to one row and show a "Show all" link. Any `status` can be used with this pattern.
When an alert can trigger a direct action, place a single button inside the description area. Limit to one action per alert. Any `status` can be used with this pattern.
0 commit comments