UI Interface

Badges, avatars and indicators

Small status and feedback components: badges and pills, delta indicators, status dots, removable tags, counters, avatars, progress bars and rings, ratings, keyboard keys, tooltips and skeleton loaders. Open the Code panel under any preview to copy the markup.

Stable shell.css

Badges and pills

sx-badge reads data-tone. Soft is the default, add --solid for emphasis, --dot for status, --sm for dense tables.

Soft Primary Success Warning Danger Info Accent Violet Orange Blue Pink Neutral
Solid Primary Success Warning Danger Info Accent Violet Orange Blue Pink Neutral
Dot Primary Success Warning Danger Info Accent Violet Orange Blue Pink Neutral
Small Primary Success Warning Danger Info Accent Violet

Dark mode brightens the soft foreground and deepens the tint automatically. Solid badges use white text, so keep the label short.

Badges with icons, shapes and context

Add leading icons, switch to a squarer radius with a utility, or use the page-local outline style. Real-world status examples below.

Icons Paid Pending Overdue Draft New Pro
Squared Beta Hot v2.4.1 API
Outline Primary Success Danger Neutral
In context

INV-2026-0418

Northwind Labs · $4,280.00

Paid

Delta indicators

sx-delta shows change with direction. is-up and is-down pick success and danger tones; a data-tone overrides them. sx-delta-text is the plain-text version.

Pills 12.4% 3.1% +$2,140 -8 tickets 0.0% -0.6 pts 5 new +4%
Text +18.2% -2.7% vs last month
In a KPI

Monthly revenue

$128,45012.4%

$114,280 in October

Churn rate

2.8%0.4 pts

Lower is better, so a drop is green

Colour follows meaning, not arrow direction: a falling churn rate is good, so it uses is-up with a down arrow. Always show the sign or an arrow, never colour alone.

Status dots

sx-dot is an 8px marker coloured by --c. Pair with a text label; use sx-live for a pulsing real-time indicator.

Status Online Away Do not disturb Offline Live Recording
Series
Sizes
Legend
OrganicPaidReferralDirect

Never rely on colour alone: add a text label or aria-label. Animations stop for users who prefer reduced motion.

Tags with remove

Editable tags for labels, recipients and filters. Click the x to dismiss; use Reset to restore the demo.

Design Frontend Approved Q4 launch maya@acme.io

The label of every remove button names the tag it deletes, so screen reader users know what will go.

Counters

Small numeric pills for unread counts and totals: standalone, in navigation, on icons and in tabs.

Standalone 31299+ 24 8 1,284
On icons
In tabs
In a list
  • Inbox6
  • Starred14
  • Sent

Cap large numbers (99+) in tight spaces and put the exact number in the aria-label.

Avatars

Initials avatars take any tone. Sizes sm to xl, presence dots, status rings, overlapping stacks and +N overflow.

Tones
Sizes
Presence Online, away, busy, offline
Status ring
Stacks
+5
+12
Group + tooltip
Maya Chen, Owner Diego Ramos, Design Lena Park, Engineering Tomas Kral, QA +5
9 members

Hover or focus a member in the group to read the tooltip. Photo avatars use the same sx-avatar class with an img element.

Progress bars, rings and stacks

sx-bar fills to --v (a percentage), sx-ring fills a conic gradient from --v (a number), and sx-stack splits a total by weight.

Thin (sm)

Default

Large (lg)

Seats used38 of 50
API quota94%
Storage · 64.2 GB of 100 GB
DocumentsMediaBackupsOther

Stepped (3 of 5)

72% 88% 45% 21

Use success, warning and danger tones only when the value has that meaning. The bar animates its width when --v changes.

Ratings

Phosphor fill stars in the warning tone. Read-only display for reviews, plus an interactive picker built from buttons.

Display
With text
4.8(1,248 reviews)
4.0
Interactive
Click to rate
Breakdown
5
72%
4
18%
3
6%
2
3%
1
1%

Keyboard keys (sx-kbd)

Render shortcuts as raised keycaps. Combine several keys with a plus sign or a thin space.

Single EscTabEnterSpace/
Combos Ctrl+K Ctrl+Shift+P Alt+N
In context
DuplicateCtrl D
RenameF2
DeleteDel

Use the semantic kbd element. Spell out modifier names, since the symbol for Command or Option may not render on every system.

Tooltips (data-tip)

Add data-tip="Text" to any element. The shell shows a themed tooltip on hover and keyboard focus, placed to the right of the element.

Buttons
Inline Admin Monthly recurring revenue Ctrl K

Tooltips should add detail, not carry essential content. Elements that are not natively focusable need tabindex="0" so keyboard users can reach the tip. The tip is currently placed to the right only, so avoid it at the right edge of the viewport.

Skeleton loaders

Placeholder shapes with a soft shimmer while content loads. Toggle the preview to compare with the loaded state.

Diego Ramos

Product designer · Austin, TX

Leads the design system and onboarding experience. Shipped 14 releases this year and mentors two junior designers on the platform team.

Recent invoices

  • Northwind Labs

    INV-0418 · Nov 9

    $4,280
  • Harbor & Pine

    INV-0417 · Nov 7

    $1,950
  • Orbit Studio

    INV-0416 · Nov 3

    $7,400

Match the skeleton to the final layout to avoid content jumping. Mark the container aria-busy while loading.

Usage tips and accessibility

Guidelines worth following across the whole template

Usage tips

  • Choose a tone for its meaning: success for good, warning for attention, danger for errors, neutral for plain metadata.
  • Prefer soft badges in tables and solid badges for one or two highlights per screen.
  • Keep badge labels to one or two words and use sx-badge--sm in dense lists.
  • Stack at most five avatars, then show +N with the full list in a tooltip or popover.
  • Show a skeleton only when content takes longer than about 300ms to arrive.

Accessibility

  • Never rely on colour alone: pair dots, deltas and rings with text, icons or an aria-label.
  • Progress bars and rings expose role="progressbar" or role="img" with a readable value.
  • Tooltips open on focus as well as hover; add tabindex="0" to non-interactive triggers.
  • Remove buttons carry an aria-label naming the tag they delete.
  • Skeleton containers use aria-busy and shimmer animations stop under prefers-reduced-motion.

Hi, I’m Nova! Need a hand?