For AI agents: the complete documentation index is available at https://wallarm.github.io/design-system/llms.txt, the full documentation bundle is available at https://wallarm.github.io/design-system/llms-full.txt, and this page is available as Markdown at https://wallarm.github.io/design-system/foundations/radius-elevation.md.

Radius and elevation

Components: Button, Input, Select, Card, CardContent, Tag, Tooltip, Avatar

+20 more

DropdownMenu, Popover, PopoverTrigger, PopoverContent, Drawer, Dialog, SearchModal, Alert, Table, Toast, ChatInput, Checkbox, Radio, Switch, Kbd, NavRail, SegmentedControl, Skeleton, InputGroup, SplitButton

Radius utilities are named in pixels. Shadows are named by size and do not change in dark mode.

What you use

NeedUseNot
Corners on a control-sized elementrounded-8rounded-lg, rounded-md, rounded
Corners on a menu item or a small inline chiprounded-6rounded-md
Corners on a panel or floating surfacerounded-12rounded-xl
A circle or a pillrounded-fullrounded-[50%], rounded-[999px]
A bordered tile with a shadowCardA div with rounded-8 border shadow-sm
A floating panel anchored to a triggerPopover, PopoverTrigger, PopoverContentA positioned div with rounded-12 shadow-md
A side panel or a modalDrawer or DialogA div with rounded-12 shadow-xl
A loading placeholder with matching corners<Skeleton rounded={8} /><Skeleton className='rounded-8' />
Depth on your own floating elementshadow-md + border border-border-primary-light bg-bg-surface-2shadow-md alone, drop-shadow-*

Rules

  • Read rounded-* numbers as pixels. If a value is off the scale, round to the nearest step.
  • Never use Tailwind's named radii (rounded-xs … rounded-4xl) or bare rounded. They compile to rem defaults off the scale.
  • Never write an arbitrary radius or shadow such as rounded-[15px] or shadow-[0_2px_4px_rgba(0,0,0,0.1)].
  • If your element sits next to a design-system component, copy that component's radius. A custom button-sized element next to Button gets rounded-8.
  • If you nest a rounded element inside a padded rounded container, use a smaller inner radius: rounded-12 outside, 4px padding, rounded-8 inside.
  • If you round only some corners, use side or corner variants of the same step: rounded-t-12, rounded-tl-12.
  • If an element stays in the page flow, give it no shadow. Card is the one in-flow surface with a shadow (shadow-sm).
  • If an element floats, use the shadow for its layer below.
  • If you add a shadow to your own floating element, pair it with border border-border-primary-light and a surface fill such as bg-bg-surface-2. They carry the depth in dark mode.
  • Never add shadow-* to Card, Input, Button or another design-system component. They own their shadow.
  • Never add a dark-mode shadow (dark:shadow-lg) or use shadow-2xl.
  • Never use a shadow as a focus indicator. See Focus.

There is no --elevation-* token, no shadow-card/shadow-popover/shadow-modal utility, and no dark-mode shadow value.

Examples

A placeholder takes its corners from the rounded prop.

import { Card, CardContent, Skeleton } from '@wallarm-org/design-system';

export const UsageTile = ({ loading }: { loading: boolean }) => (
  <Card>
    <CardContent>
      {loading ? (
        <Skeleton width='100%' height='120px' rounded={8} />
      ) : (
        <div className='h-120 rounded-8 border border-border-primary-light' />
      )}
    </CardContent>
  </Card>
);

A custom floating element pairs its shadow with a border and fill.

<div className='rounded-12 border border-border-primary-light bg-bg-surface-2 p-12 shadow-md'>
  …
</div>

A nested item steps the radius down.

<div className='flex rounded-12 bg-bg-surface-2 p-4'>
  <div className='rounded-8 bg-bg-surface-1 px-12 py-6'>Day</div>
</div>

Reference

Radius scale

UtilityValueUsed by
rounded-none0Joined edges in InputGroup, SplitButton
rounded-22pxIndicators, status dots
rounded-44pxCheckbox box, Kbd, Switch thumb
rounded-66pxDropdownMenu items, small badges, Skeleton default
rounded-88pxButton, Input, Select, Tag, Tooltip, Card, Avatar sm/md
rounded-1010pxNavRail items
rounded-1212pxPopover, DropdownMenu, Dialog, Drawer, Alert, Table container
rounded-1616pxToast, ChatInput, chat messages
rounded-24, rounded-3224px, 32pxSkeleton only
rounded-full9999pxRadio, numeric badges, pills

Skeleton rounded accepts 'none', 'full', 2, 4, 6, 8, 10, 12, 16, 24, 32.

Elevation scale

UtilityLayerUsed by
shadow-noneResetFields inside InputGroup
shadow-2xsHairline liftBordered filter triggers
shadow-xsRaised controlButton primary/outline, Input, Select, Checkbox
shadow-smIn-flow tile, moving thumbCard, Switch thumb, SegmentedControl indicator
shadow-mdAnchored floating surfacePopover, DropdownMenu, tooltip tour steps
shadow-lgNotification, dragged itemToast, Table bulk action bar, dragged rows
shadow-xlModal layerDrawer, Dialog, SearchModal

See Spacing for padding inside rounded surfaces.