Toast
A short message that appears over the page, is announced, and leaves on its own or when it is dismissed.
import { Button } from '@slotted/react/button';import { toast, ToastRegion } from '@slotted/react/toast';export default function ToastBasic() { return ( <> {/* Once, near the root of the application. */} <ToastRegion /> <Button onClick={() => toast.show({ title: 'Draft saved', description: 'Everything since 2:02 PM is saved.' }) } > Save draft </Button> </> );}Installation
The packages are a 0.x beta on npm, and their public API changes between beta releases without deprecation. One line installs the binding and the default theme.
pnpm add @slotted/react @slotted/theme @slotted/themesimport { Toast, ToastActions, ToastClose, ToastContent, ToastDefaultsProvider, ToastDescription, ToastRegion, ToastTitle, toast } from '@slotted/react';Render one region near the root of the application and show messages from anywhere: toast.show in React, SlToastService.show in Angular. The examples below use a queue each, so that a message appears once on this page.
Tones
tone says what the message is about and draws the mark that goes with it: info, success, warning and danger. accent, the default, draws the information mark, and secondary is a note with no mark.
import { Button } from '@slotted/react/button';import { Inline } from '@slotted/react/inline';import { createToaster, ToastRegion } from '@slotted/react/toast';/* A queue for this example. The shared `toast` serves the whole application. */const toaster = createToaster();export default function ToastTones() { return ( <> <ToastRegion toaster={toaster} /> <Inline gap={2}> <Button variant="outline" onClick={() => toaster.show({ title: 'Nightly sync starts at 02:00', tone: 'info' })} > Info </Button> <Button variant="outline" onClick={() => toaster.show({ title: 'Invoice INV-2041 sent', tone: 'success' })} > Success </Button> <Button variant="outline" onClick={() => toaster.show({ title: 'Stock of BEV-104 is below 20 units', tone: 'warning' }) } > Warning </Button> <Button variant="outline" onClick={() => toaster.show({ title: 'Payment for SO-10482 was declined', tone: 'danger' }) } > Danger </Button> <Button variant="outline" onClick={() => toaster.show({ title: 'Columns restored to their defaults', tone: 'secondary' }) } > Note </Button> </Inline> </> );}Variants
raised, the default, keeps the neutral surface and puts the tone in the mark, which suits a message over any content. soft tints the surface, and solid fills it.
import { Button } from '@slotted/react/button';import { Inline } from '@slotted/react/inline';import { createToaster, ToastRegion } from '@slotted/react/toast';/* A queue for this example. The shared `toast` serves the whole application. */const toaster = createToaster();export default function ToastVariants() { return ( <> <ToastRegion toaster={toaster} /> <Inline gap={2}> <Button variant="outline" onClick={() => toaster.show({ title: 'Invoice INV-2041 sent', tone: 'success', variant: 'raised' }) } > Raised </Button> <Button variant="outline" onClick={() => toaster.show({ title: 'Invoice INV-2041 sent', tone: 'success', variant: 'soft' }) } > Soft </Button> <Button variant="outline" onClick={() => toaster.show({ title: 'Invoice INV-2041 sent', tone: 'success', variant: 'solid' }) } > Solid </Button> </Inline> </> );}Duration
A message stays for five seconds, counted from the moment it appears. duration sets another time in milliseconds, and 0 keeps the message until it is dismissed. progress draws the time that is left. The timer stops while the pointer is over the region, while focus is inside it and while the tab is hidden.
import { Button } from '@slotted/react/button';import { Inline } from '@slotted/react/inline';import { createToaster, ToastRegion } from '@slotted/react/toast';/* A queue for this example. The shared `toast` serves the whole application. */const toaster = createToaster();export default function ToastDuration() { return ( <> <ToastRegion toaster={toaster} /> <Inline gap={2}> <Button variant="outline" onClick={() => toaster.show({ title: 'Export ready', description: 'orders-november.csv', duration: 8000, progress: true, }) } > Eight seconds </Button> <Button variant="outline" onClick={() => toaster.show({ title: 'Your session has expired', description: 'Sign in again to go on.', tone: 'danger', duration: 0, }) } > Until dismissed </Button> </Inline> </> );}Actions
actions puts controls under the text, in React as a node and in Angular as a template that receives the message. A message with actions does not expire unless it states a duration, so there is time to reach Undo.
import { useState } from 'react';import { Button } from '@slotted/react/button';import { Stack } from '@slotted/react/stack';import { createToaster, ToastRegion } from '@slotted/react/toast';import { Text } from '@slotted/react/typography';/* A queue for this example. The shared `toast` serves the whole application. */const toaster = createToaster();export default function ToastActionsExample() { const [archived, setArchived] = useState(false); function handleArchive() { setArchived(true); const id = toaster.show({ title: 'Order SO-10482 archived', actions: ( <Button size="sm" variant="outline" onClick={() => { setArchived(false); toaster.dismiss(id); }} > Undo </Button> ), }); } return ( <Stack align="start" gap={3}> <ToastRegion toaster={toaster} /> <Button disabled={archived} onClick={handleArchive}> Archive order </Button> <Text size="sm" tone="muted"> {archived ? 'SO-10482 is archived.' : 'SO-10482 is open.'} </Text> </Stack> );}Following a promise
promise shows one message for the whole operation. It starts as loading, with a loader and no timer, and becomes the success or the failure in place. The result of the promise is returned, so a caller can still handle it.
import { Button } from '@slotted/react/button';import { Inline } from '@slotted/react/inline';import { createToaster, ToastRegion } from '@slotted/react/toast';function publish(succeeds: boolean) { return new Promise<number>((resolve, reject) => { setTimeout(() => (succeeds ? resolve(148) : reject(new Error('Offline'))), 2000); });}const MESSAGES = { loading: { title: 'Publishing prices' }, success: (count: number) => ({ title: `${count} prices published`, tone: 'success' as const }), error: { title: 'Prices were not published', tone: 'danger' as const },};/* A queue for this example. The shared `toast` serves the whole application. */const toaster = createToaster();export default function ToastPromise() { return ( <> <ToastRegion toaster={toaster} /> <Inline gap={2}> <Button onClick={() => void toaster.promise(publish(true), MESSAGES)}> Publish prices </Button> <Button variant="outline" onClick={() => toaster.promise(publish(false), MESSAGES).catch(() => undefined)} > Publish with an error </Button> </Inline> </> );}Updating a message
Showing an id that is already in the queue updates that message in place and starts its timer again. Press Upload the price list, then Finish.
import { Button } from '@slotted/react/button';import { Inline } from '@slotted/react/inline';import { createToaster, ToastRegion } from '@slotted/react/toast';/* A queue for this example. The shared `toast` serves the whole application. */const toaster = createToaster();export default function ToastUpdate() { return ( <> <ToastRegion toaster={toaster} /> <Inline gap={2}> <Button onClick={() => toaster.show({ id: 'price-list', title: 'Uploading price list', duration: 0 }) } > Upload the price list </Button> <Button variant="outline" onClick={() => toaster.show({ id: 'price-list', title: 'Price list uploaded', tone: 'success', duration: 5000, }) } > Finish </Button> </Inline> </> );}Announcement priority
Every message is announced when it appears. polite, the default, waits for the screen reader to finish its sentence, and assertive interrupts it. The priority does not follow the tone, so state assertive only for what cannot wait.
import { Button } from '@slotted/react/button';import { Inline } from '@slotted/react/inline';import { createToaster, ToastRegion } from '@slotted/react/toast';/* A queue for this example. The shared `toast` serves the whole application. */const toaster = createToaster();export default function ToastPriority() { return ( <> <ToastRegion toaster={toaster} /> <Inline gap={2}> <Button variant="outline" onClick={() => toaster.show({ title: 'Draft saved' })}> Polite </Button> <Button variant="outline" onClick={() => toaster.show({ title: 'Connection lost', description: 'Changes are kept on this device.', tone: 'danger', priority: 'assertive', }) } > Assertive </Button> </Inline> </> );}Queue
limit sets how many messages are on screen at once, three by default. The rest wait without a timer, and take a place as a message leaves. clear empties the queue.
import { Button } from '@slotted/react/button';import { Inline } from '@slotted/react/inline';import { createToaster, ToastRegion } from '@slotted/react/toast';const LABELS = ['SO-10482', 'SO-10483', 'SO-10484', 'SO-10485', 'SO-10486'];/* A queue for this example. The shared `toast` serves the whole application. */const toaster = createToaster();export default function ToastQueue() { return ( <> <ToastRegion toaster={toaster} limit={2} /> <Inline gap={2}> <Button onClick={() => LABELS.forEach((label) => toaster.show({ title: `${label} printed` }))} > Print five labels </Button> <Button variant="outline" onClick={() => toaster.clear()}> Clear </Button> </Inline> </> );}Stacking
stacking="stack" draws the messages as a pile and opens it while the pointer is over it or focus is inside it. It suits a region that can hold several messages on a small screen.
import { Button } from '@slotted/react/button';import { Inline } from '@slotted/react/inline';import { createToaster, ToastRegion } from '@slotted/react/toast';const SHIPMENTS = ['SH-2201', 'SH-2202', 'SH-2203', 'SH-2204'];/* A queue for this example. The shared `toast` serves the whole application. */const toaster = createToaster();export default function ToastStacking() { return ( <> <ToastRegion toaster={toaster} limit={4} stacking="stack" /> <Inline gap={2}> <Button onClick={() => SHIPMENTS.forEach((shipment) => toaster.show({ title: `${shipment} received`, tone: 'success', duration: 0 }), ) } > Receive four shipments </Button> <Button variant="outline" onClick={() => toaster.clear()}> Clear </Button> </Inline> </> );}Placement
placement names an edge in the direction of the text: bottom-end, the default, is the bottom right in English and the bottom left in Arabic.
import { Button } from '@slotted/react/button';import { Inline } from '@slotted/react/inline';import { createToaster, ToastRegion } from '@slotted/react/toast';/* A queue for this example. The shared `toast` serves the whole application. */const toaster = createToaster();export default function ToastPlacement() { return ( <> <ToastRegion toaster={toaster} placement="top" /> <Inline gap={2}> <Button onClick={() => toaster.show({ title: 'Draft saved' })}>Show at the top</Button> </Inline> </> );}Why a message left
The close button, Escape, a swipe and the timer each request the change with a reason of their own. onToastsChange in React and toastsChange in Angular receive it, and cancel() refuses the change. Show a message and let it go in different ways.
import { useState } from 'react';import { Button } from '@slotted/react/button';import { Stack } from '@slotted/react/stack';import { createToaster, ToastRegion } from '@slotted/react/toast';import { Text } from '@slotted/react/typography';/* A queue for this example. The shared `toast` serves the whole application. */const toaster = createToaster();export default function ToastDismissal() { const [reason, setReason] = useState('none yet'); return ( <Stack align="start" gap={3}> <ToastRegion onToastsChange={(_toasts, request) => { if (request.reason !== 'programmatic') setReason(request.reason); }} toaster={toaster} /> <Button onClick={() => toaster.show({ title: 'Draft saved', progress: true })}> Save draft </Button> <Text role="status" size="sm" tone="muted"> Last departure: {reason} </Text> </Stack> );}A queue you own
A region that receives toasts draws that array and only asks for changes, for messages that live in the state of a page. attach="inline" positions the region in the nearest positioned ancestor instead of the viewport. defaultToasts gives a queue its first messages without owning it.
- Import 118 finished
import { useState } from 'react';import { Stack } from '@slotted/react/stack';import { Button } from '@slotted/react/button';import { ToastRegion, type ToastContentValue, type ToastMessage } from '@slotted/react/toast';import { Text } from '@slotted/react/typography';const FIRST: ToastMessage<ToastContentValue> = { id: 'import-118', duration: 0, priority: 'polite', announcement: 'Import 118 finished', loading: false, action: false, data: { title: 'Import 118 finished', tone: 'success' }, status: 'visible', revision: 0,};export default function ToastControlled() { const [toasts, setToasts] = useState<readonly ToastMessage<ToastContentValue>[]>([FIRST]); return ( <Stack align="start" gap={3}> <div style={{ blockSize: '9rem', inlineSize: '100%', position: 'relative' }}> <ToastRegion attach="inline" onToastsChange={(next) => setToasts(next)} toasts={toasts} /> </div> <Button disabled={toasts.length > 0} variant="outline" onClick={() => setToasts([FIRST])}> Show again </Button> <Text size="sm" tone="muted"> Messages in the queue: {toasts.length} </Text> </Stack> );}Keyboard
A message never takes focus when it appears. hotkey sets the key that moves focus to the newest message, F6 by default. Tab reaches its controls, and Escape dismisses it.
import { Button } from '@slotted/react/button';import { Inline } from '@slotted/react/inline';import { createToaster, ToastRegion } from '@slotted/react/toast';/* A queue for this example. The shared `toast` serves the whole application. */const toaster = createToaster();export default function ToastKeyboard() { return ( <> <ToastRegion toaster={toaster} hotkey="Alt+N" /> <Inline gap={2}> <Button onClick={() => toaster.show({ title: 'Draft saved', description: 'Press Alt+N to reach this message.', duration: 0, }) } > Show a message </Button> </Inline> </> );}Long content
A title wraps, and a string without spaces breaks inside the box. hideIcon leaves the mark out, and the text then starts at the edge of the box.
import { Button } from '@slotted/react/button';import { Inline } from '@slotted/react/inline';import { createToaster, ToastRegion } from '@slotted/react/toast';/* A queue for this example. The shared `toast` serves the whole application. */const toaster = createToaster();export default function ToastLongContent() { return ( <> <ToastRegion toaster={toaster} /> <Inline gap={2}> <Button onClick={() => toaster.show({ title: 'Deployment of the storefront rejected by the registry', description: 'sha256:9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08', tone: 'danger', duration: 0, }) } > Show a long message </Button> <Button variant="outline" onClick={() => toaster.show({ title: 'Columns restored to their defaults', hideIcon: true }) } > Without a mark </Button> </Inline> </> );}Defaults for an application
ToastDefaultsProvider in React and provideToastDefaults in Angular set the axes once for every region and message under them. Here every message is soft, appears at the top and stays until it is dismissed.
import { Button } from '@slotted/react/button';import { createToaster, ToastDefaultsProvider, ToastRegion } from '@slotted/react/toast';/* A queue for this example. The shared `toast` serves the whole application. */const toaster = createToaster();export default function ToastDefaultsExample() { return ( <ToastDefaultsProvider duration={0} placement="top-end" variant="soft"> <ToastRegion toaster={toaster} /> <Button onClick={() => toaster.show({ title: 'Order SO-10482 packed', tone: 'success' })}> Pack order </Button> </ToastDefaultsProvider> );}Accessibility
| Key | Effect | Focus |
|---|---|---|
| F6 | moves focus into the region, when at least one message is on screen | the newest message's own element |
| Tab | moves through the controls of the messages, in the order they arrived, and then out of the region | the next focusable element |
| Shift+Tab | moves back through the same controls | the previous focusable element |
| Escape | closes the message focus is inside, with the reason `escape` | the next message, or the element focus came from when there is none |
| Enter | activates the control focus is on | unchanged, unless the control removed the message it was in |
| Space | activates the control focus is on | unchanged, unless the control removed the message it was in |
- The region is a landmark with the name Notifications in English. The words of a message are announced by a live region that exists before any message does, so the buttons of a message are not read inside its sentence.
- A message is announced as its title and its description. A message whose content is not a string announces the string in announcement, and nothing without one.
- A message that arrives never moves focus. The hotkey, F6 by default, moves focus to the newest message, and Escape dismisses the message focus is in.
- When the message that holds focus leaves, focus moves to the next message, and after the last one to the element it came from.
- The timers stop while the pointer is over the region, while focus is inside it and while the tab is hidden, and go on with the time that was left.
- A duration of 0 in the defaults turns every time limit off, which WCAG 2.2 SC 2.2.1 asks an application to offer. The setting that does so is yours.
- A message with actions, and one that is loading, never expires unless it states a duration.
- Every tone with a severity has a mark of its own shape, so the tone is not told by color alone. secondary has none.
- The region lets pointer events through, and each message takes its own.
API
Toast
Props
placement'top-start' | 'top' | 'top-end' | 'bottom-start' | 'bottom' | 'bottom-end'Defaultbottom-end- On ToastRegionThe edge the region sits at. The names are logical, so a right-to-left document mirrors them.
attach'portal' | 'viewport' | 'inline'Defaultportal- On ToastRegionWhere the region is rendered. portal places it at the end of the document with the theme it came from, viewport fixes it where it is written, and inline positions it in the nearest positioned ancestor.
stacking'list' | 'stack'Defaultlist- On ToastRegionHow the messages are arranged. list is a column at their own height; stack is a pile that opens while the pointer is over it or focus is inside it.
limitnumberDefault3- On ToastRegionHow many messages are on screen at once. The rest wait, and a waiting message has no timer.
durationnumberDefault5000- On ToastRegion, toast.showThe milliseconds a message stays on screen, counted from the moment it appears. 0 never expires.
swipebooleanDefaulttrue- On ToastRegionWhether a message can be dragged toward the edge of the placement to dismiss it. A drag that starts on a control is not a swipe.
pauseOnHoverbooleanDefaulttrue- On ToastRegionWhether the timers stop while the pointer is over the region. Focus inside the region always stops them.
pauseWhenHiddenbooleanDefaulttrue- On ToastRegionWhether the timers stop while the tab is hidden.
hotkeystringDefaultF6- On ToastRegionThe key that moves focus into the region, such as F6, Alt+T or Shift+F8.
messagesPartial<ToastMessages>- On ToastRegionThe words of the region over the ones of the language in force: label names the region and close names each close button.
tone'accent' | 'secondary' | 'info' | 'success' | 'warning' | 'danger'Defaultaccent- On toast.showThe color and the mark of the message. secondary draws no mark.
variant'raised' | 'soft' | 'solid'Defaultraised- On toast.showHow the tone is painted. raised keeps the neutral surface and puts the tone in the mark, soft tints the surface, and solid fills it.
priority'polite' | 'assertive'Defaultpolite- On toast.showHow the message is announced. assertive interrupts the screen reader. It does not follow the tone.
dismissiblebooleanDefaulttrue- On toast.showWhether the message has a close button.
progressbooleanDefaultfalse- On toast.showWhether the message draws how much of its duration is left.
toastsreadonly ToastMessage[]- On ToastRegionThe queue you own. A region that receives it is controlled for its whole life and only asks for changes.
defaultToastsreadonly ToastMessage[]- On ToastRegionThe messages the queue starts with, read once.
titleReactNode- On toast.showThe name of the message. With the description, it is what is announced.
descriptionReactNode- On toast.showThe text under the title.
announcementstring- On toast.showWhat is announced instead of the title and the description. State it for a message whose content is not a string.
loadingbooleanDefaultfalse- On toast.showWhether the message waits for work to end. It draws a loader in place of the mark and never expires.
iconReactNode- On toast.showThe content that replaces the mark of the tone.
hideIconbooleanDefaultfalse- On toast.showWhether the mark is left out.
actionsReactNode- On toast.showThe controls under the text. A message with actions never expires unless it states a duration.
idstring- On toast.showThe identifier of the message. Showing an id that is already in the queue updates that message in place.
containerElement | null- On ToastRegionThe element a portalled region is placed in.
Events
| Name | Payload | When |
|---|---|---|
onToastsChange | (toasts, request) | Before the queue changes. The request carries the previous queue, the reason (programmatic, dismiss, escape, keyboard, pointer, timeout or clear), the originating event and cancel(). |
onStatusChange | (status, message) | When a message appears (visible), leaves the queue (closing) and leaves the document (removed). It is passed to the call that shows the message. |
Composition
children(message) => ReactNode- On ToastRegionRenders each message. The timer, the exit, the swipe, the keyboard and the announcement stay.
render(props) => ReactNode- On ToastContent, ToastTitle, ToastDescription, ToastActions, ToastCloseRenders the part as another element with the attributes it receives.
toastToaster- On anywhereThe shared queue: show, update, dismiss, clear, pauseAll, resumeAll and promise. It is a plain object, so it works outside components.
createToaster() => Toaster- On an applicationCreates another queue, for an application with two regions. Pass it to a region as toaster, or to a subtree with ToasterProvider.
ToastDefaultsProvider{ placement, attach, stacking, tone, variant, limit, duration, hotkey, … }- On a subtreeSets the axes once for every region and message under it. A value on a region or a message still wins.
useToastQueue() => { visible, queued, paused }- On inside a regionReads how many messages are on screen, how many wait and whether the timers are stopped.
Parts
| Part | Element | Required | Purpose |
|---|---|---|---|
root | section | Yes | The region. It is a landmark with a name, and it carries the placement, the attachment and the stacking. It is never a live region. |
list | ol | Yes | The messages in order, newest first. |
item | li | No | One message. It carries the tone, the variant and its states, and the hotkey moves focus to it. |
icon | span | No | The mark of the tone, hidden from assistive technology. While the message is loading it holds a loader. |
content | div | No | The title and the description. A long string wraps inside it. |
title | div, or the element render returns | No | The name of the message. It is not a heading, because a message is not a section of the page. |
description | p, or the element render returns | No | The text of the message. A string without spaces breaks instead of overflowing. |
actions | div | No | The controls that act on the message, under its text. They stack when the region is narrower than 20rem. |
close | button | No | The button that dismisses the message. It is present while the message is dismissible, and its target holds the minimum pointer size at every density. |
progress | div | No | How much of the duration is left. It stops with the timer, and under reduced motion it is a static rule. |
Theming
Each token is a CSS custom property: set it in a theme, or on any element to retune every toast inside it.
Toast tokens
| Token | Default |
|---|---|
--slotted-toast-actions-gap | var(--slotted-action-gap, 8px) |
--slotted-toast-backdrop-filter | none |
--slotted-toast-border-color | var(--slotted-border-subtle, #e2e8f0) |
--slotted-toast-border-width | var(--slotted-border-width-thin, 1px) |
--slotted-toast-close-radius | var(--slotted-control-radius, 4px) |
--slotted-toast-close-size | max( var(--slotted-target-min, 24px), min(calc(var(--_glyph-size) + 2 * var(--slotted-space-2, 0.25rem)), var(--_inner-size)) ) |
--slotted-toast-column-gap | var(--slotted-space-4, 0.5rem) |
--slotted-toast-font-family | var(--slotted-control-font-family, sans-serif) |
--slotted-toast-gap | var(--slotted-space-5, 0.75rem) |
--slotted-toast-measure | 24rem |
--slotted-toast-offset | var(--slotted-space-6, 1rem) |
--slotted-toast-padding-block | var(--slotted-space-5, 0.75rem) |
--slotted-toast-padding-inline | var(--slotted-space-6, 1rem) |
--slotted-toast-progress-size | var(--slotted-space-1, 0.125rem) |
--slotted-toast-radius | var(--slotted-radius-lg, 8px) |
--slotted-toast-row-gap | var(--slotted-space-5, 0.75rem) |
--slotted-toast-shadow | var(--slotted-shadow-md) |
--slotted-toast-stack-fade | 0.15 |
--slotted-toast-stack-step | var(--slotted-space-3, 0.375rem) |
--slotted-toast-state-layer-active | 16% |
--slotted-toast-state-layer-hover | 10% |
--slotted-toast-surface | var(--slotted-surface-raised, #ffffff) |
--slotted-toast-text | var(--slotted-text, #0f172a) |
--slotted-toast-text-gap | var(--slotted-space-2, 0.25rem) |
--slotted-toast-text-muted | var(--slotted-text-muted, #5b6b7f) |
--slotted-toast-title-font-family | var( --slotted-font-family-heading, var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif) ) |
--slotted-toast-title-font-weight | var(--slotted-font-weight-semibold, 600) |
Theme tokens it reads
| Token | Default |
|---|---|
--slotted-action-gap | comfortable 8px · compact 6px · dense 4px |
--slotted-border-subtle | Set per scheme by the theme |
--slotted-border-width-thin | 1px |
--slotted-control-font-family | var(--slotted-font-family-sans) |
--slotted-control-font-size-md | comfortable 13px · compact 12px · dense 12px |
--slotted-control-icon-size-md | comfortable 16px · compact 14px · dense 13px |
--slotted-control-inner-size-md | comfortable 24px · compact 20px · dense 18px |
--slotted-control-radius | var(--slotted-radius-sm) |
--slotted-control-transition-duration | var(--slotted-duration-short) |
--slotted-control-transition-easing | var(--slotted-easing-standard) |
--slotted-duration-long | 320ms |
--slotted-duration-medium | 200ms |
--slotted-duration-short | 120ms |
--slotted-easing-enter | cubic-bezier(0.05, 0.7, 0.1, 1) |
--slotted-easing-exit | cubic-bezier(0.3, 0, 0.8, 0.15) |
--slotted-easing-standard | cubic-bezier(0.2, 0, 0, 1) |
--slotted-focus-ring-color | Set per scheme by the theme |
--slotted-focus-ring-offset | var(--slotted-border-width-thick) |
--slotted-focus-ring-width | var(--slotted-border-width-thick) |
--slotted-font-family-heading | var(--slotted-font-family-sans) |
--slotted-font-family-sans | 'Geist Variable', ui-sans-serif, system-ui, sans-serif |
--slotted-font-weight-semibold | 600 |
--slotted-line-height-md | 1.5 |
--slotted-radius-lg | 8px |
--slotted-shadow-md | Set per scheme by the theme |
--slotted-space-1 | 0.125rem |
--slotted-space-2 | 0.25rem |
--slotted-space-3 | 0.375rem |
--slotted-space-4 | 0.5rem |
--slotted-space-5 | 0.75rem |
--slotted-space-6 | 1rem |
--slotted-space-7 | 1.25rem |
--slotted-surface-raised | Set per scheme by the theme |
--slotted-target-comfortable | 44px |
--slotted-target-min | 24px |
--slotted-text | Set per scheme by the theme |
--slotted-text-muted | Set per scheme by the theme |
--slotted-tone-accent-border | Set per scheme by the theme |
--slotted-tone-accent-on-solid | Set per scheme by the theme |
--slotted-tone-accent-solid | Set per scheme by the theme |
--slotted-tone-accent-surface | Set per scheme by the theme |
--slotted-tone-accent-text | Set per scheme by the theme |
--slotted-tone-danger-border | Set per scheme by the theme |
--slotted-tone-danger-on-solid | Set per scheme by the theme |
--slotted-tone-danger-solid | Set per scheme by the theme |
--slotted-tone-danger-surface | Set per scheme by the theme |
--slotted-tone-danger-text | Set per scheme by the theme |
--slotted-tone-info-border | Set per scheme by the theme |
--slotted-tone-info-on-solid | Set per scheme by the theme |
--slotted-tone-info-solid | Set per scheme by the theme |
--slotted-tone-info-surface | Set per scheme by the theme |
--slotted-tone-info-text | Set per scheme by the theme |
--slotted-tone-secondary-border | Set per scheme by the theme |
--slotted-tone-secondary-on-solid | Set per scheme by the theme |
--slotted-tone-secondary-solid | Set per scheme by the theme |
--slotted-tone-secondary-surface | Set per scheme by the theme |
--slotted-tone-secondary-text | Set per scheme by the theme |
--slotted-tone-success-border | Set per scheme by the theme |
--slotted-tone-success-on-solid | Set per scheme by the theme |
--slotted-tone-success-solid | Set per scheme by the theme |
--slotted-tone-success-surface | Set per scheme by the theme |
--slotted-tone-success-text | Set per scheme by the theme |
--slotted-tone-warning-border | Set per scheme by the theme |
--slotted-tone-warning-on-solid | Set per scheme by the theme |
--slotted-tone-warning-solid | Set per scheme by the theme |
--slotted-tone-warning-surface | Set per scheme by the theme |
--slotted-tone-warning-text | Set per scheme by the theme |
--slotted-z-index-toast | 1200 |