Button

Color variants

Every color of the app's button, on the default size. Hover or focus a button to see its states.

Solid

primary
solidPrimary
accent
accentAction
accentInverse
successSolid
dangerSolid
mediaSolid
composerPrimary

Tinted

secondary
accentSubtle
conversationAccentSubtle
danger
upgrade
upgradeAccent
headerUpgrade
tinted
activity
activityStop
activitySuccess

Outline

outline
outlineActive
outlineSurface
outlineSurfaceRaised
outlineCard
outlineGhost
outlineGhostInset
outlineGhostMuted
outlineSubtle
dangerOutline
ghostOutline
field
selectTrigger
secondarySurface
elevatedSurface
composerSurface
conversationFollowup
conversationPill
imageSurface
mapSurface

Ghost

ghost
ghostActive
ghostSecondary
ghostAccent
ghostDanger
ghostSubtle
ghostAccentSubtle
ghostMuted
ghostTertiary
ghostUserMessage
toolbar
disclosure
blockAction
limited

Card, media and segmented

cardAction
shareDestination
surveyCard
selectionTile
segmentedSelected
segmentedInsetSelected
segmentedFormSelected
segmentedFormUnselected

Media

mediaSolid
mediaSubtle
mediaOverlay
mediaTranslucent
successOutline

Sizes

Each size name of the size scale, on the outline color.

default
compact
composer
composerSm
composerPill
composerAuxiliary
cardAction
actionSm
sidebarOffer
dialog
dialogAction
formAction
entityAction
pageAction
addAction
medium
large
field
inputControl
formField
menuRow
settingsSelect
settingsAction
auth
onboardingAction
giftCard
floatingAction
toolbar
headerUpsell
dialogGhost
messageChip

Icon only (uniform)

uniform icon
uniform iconCircleSm
uniform iconCircle
uniform iconCircleLg
uniform iconTouch
uniform iconLarge
uniform iconMd
uniform iconSm
uniform entityHeader
uniform compact
uniform toolbar
uniform medium
uniform dialogGhost

Radius

radius default
radius full
radius extraLarge
radius large
radius small
radius messageBubble

Disabled, loading, invalid and open

Disabled and loading buttons carry the native disabled attribute, so they are skipped by Tab and ignore clicks.

disabled
disabled outline
disabled cardAction (opacity 50)
disabledAppearance none
loading
always loading
sizingLabels (keeps width)
Clicks: 0
formField aria-invalid
data-state=open ghost
data-state=open secondary
data-state=open outline
menu trigger (opens a menu)
aria-pressed toggle (mapSurface)
aria-pressed toggle (activity)

Focus ring

Press Tab to move focus across these buttons. Enter and Space activate the focused button.

focusRing default
focusRing surface
focusRing native
focusRing inset
focusRing none

A link button drops its href while disabled or loading, leaves the tab order and swallows click, auxclick, Enter and Space.

Linkas link
Router linkto (platform link)
Disabled linkdisabled link
Loading link
loading link
Link clicks: 0
Replace linkto string, replace
Parts linkto parts, push
Hash-only linkto parts, hash only
Keep scroll linkpreventScrollReset
Client linkto another route
Reload linkreloadDocument

Button group and toolbar

Groups are role=group with an accessible name. Dividers are hidden from assistive technology.

A document title that is longer than the pill can show
View: list. Toggle: off

Left to right

Right to left

Dark appearance

The same buttons inside a dark theme scope, whatever the page appearance is.

Data-attribute button

The design system's data-attribute Button. Variants, colors and sizes are data attributes read by one CSS module. Hover, press and focus a button to see its states.

solid
soft
surface
outline
ghost
transparent

Sizes

3xs
2xs
xs
sm
md
lg
xl
2xl
3xl
4xl
uniform 3xs
uniform 2xs
uniform xs
uniform sm
uniform md
uniform lg
uniform xl
uniform 2xl
uniform 3xl
uniform 4xl

Shape, gutter and icon size

pill (default)
pill={false}
squircle
gutterSize xl
iconSize xl
opticallyAlign start
block

Disabled, selected and open

disabled
disabled, dimmed
disabled, relaxed
disabled ghost
selected toggle
data-state=open
aria-expanded
data-popup-open
Disabled clicks: 0

Loading

Nested theme scopes

A light panel inside a dark panel, and a dark panel inside that light panel. Each button follows the nearest scope.

Dark scope

solid
soft
surface
outline
ghost
transparent

Light scope inside dark

solid
soft
surface
outline
ghost
transparent

Dark scope inside light inside dark

solid
soft
surface
outline
ghost
transparent