role presentation
Skeleton draft v0.1.0
A placeholder shape that stands in for content while it loads.
A skeleton draws the outline of content that is not there yet: a line of text, an avatar, a card. Several skeletons laid out like the content they stand for tell people what is coming and where, with less jump than a spinner followed by the real content. A skeleton is invisible to assistive technology; the region that loads says so itself.
Playground
Token inspector
Part container
Not rendered in this configuration.
-
background from default
{global.bg.state.skeleton.default}Details
- Value
-
#DFDBDC66dark:#303030b2 - CSS
--skeleton-container-background- Token
skeleton.container.background- Decisions
-
border-radius
textfrom default{corner-radius.2xs}Details
- Value
-
2px - CSS
--skeleton-container-border-radius-text- Token
skeleton.container.border-radius.text- Decisions
-
border-radius
rectanglefrom default{corner-radius.sm}Details
- Value
-
8px - CSS
--skeleton-container-border-radius-rectangle- Token
skeleton.container.border-radius.rectangle- Decisions
-
border-radius
circlefrom default{corner-radius.full}Details
- Value
-
9999px - CSS
--skeleton-container-border-radius-circle- Token
skeleton.container.border-radius.circle- Decisions
-
height
textfrom default{space.16}Details
- Value
-
16px - CSS
--skeleton-container-height-text- Token
skeleton.container.height.text- Decisions
-
height
circlefrom default{space.40}Details
- Value
-
40px - CSS
--skeleton-container-height-circle- Token
skeleton.container.height.circle- Decisions
-
height
rectanglefrom default{space.96}Details
- Value
-
96px - CSS
--skeleton-container-height-rectangle- Token
skeleton.container.height.rectangle- Decisions
-
opacity from default
{opacity.50}Details
- Value
-
0.5 - CSS
--skeleton-container-opacity- Token
skeleton.container.opacity- Decisions
-
animation.duration from default
{duration.normal}Details
- Value
-
250ms - CSS
--skeleton-container-animation-duration- Token
skeleton.container.animation.duration- Decisions
-
animation.easing from default
{easing.standard}Details
- Value
-
cubic-bezier(0.2, 0, 0, 1) - CSS
--skeleton-container-animation-easing- Token
skeleton.container.animation.easing- Decisions
<span
class="ds-skeleton"
data-shape="text"
aria-hidden="true"
style="--_width: 60%"
></span>