Skip to content

Shapes

Shape is a subtle but powerful tool for communicating interactivity, hierarchy, and grouping. Tessera UI uses a constrained radius scale mapped to semantic shape families.


Six radius steps from sharp to fully rounded, each serving a distinct design purpose.

0px
None
—ts-radius-none
6px
Small
—ts-radius-sm
12px
Medium
—ts-radius-md
16px
Large
—ts-radius-lg
28px
Extra Large
—ts-radius-xl
Pill
Full
—ts-radius-full

Shape families are semantic roles that group components by their visual purpose. Instead of assigning radii per-component, families ensure related components share the same shape language.

Pill
Interactive
—ts-shape-interactive
Buttons, toggles, switches. Pill shape signals clickability.
Card
Container
—ts-shape-container
Cards, panels, form groups. Generous rounding for spacious feel.
Modal
Overlay
—ts-shape-overlay
Modals, drawers, dialogs. Extra-large radius for prominent surfaces.
Tag
Badge
—ts-shape-badge
Badges, tooltips, tags. Subtle rounding for compact elements.
Track
Pill
—ts-shape-pill
Toggle tracks, pill badges, progress bars. Always fully rounded.

Five elevation levels create visual hierarchy from flat to floating. Shadows use M3-style dual-shadow for soft, natural depth.

XS
—ts-shadow-xs
Small
—ts-shadow-sm
Medium
—ts-shadow-md
Large
—ts-shadow-lg
XL
—ts-shadow-xl

Inset shadows create depth for pressed or recessed elements.

Inset Small
—ts-shadow-inset-sm
Inset Medium
—ts-shadow-inset-md

An opt-in glassmorphism effect using backdrop-filter. Use sparingly for premium overlay surfaces.

Animated gradient background

Frosted Glass Panel

Combines translucent background with backdrop blur for a layered, premium feel. Works in both light and dark themes.

—ts-bg-frosted: rgba(255, 255, 255, 0.8)—ts-bg-frosted-blur: 12px

A fixed z-index scale prevents stacking conflicts across components.

Dropdown1000
Sticky1020
Fixed1030
Overlay1040
Modal1050
Popover1060
Tooltip1070