Skip to content
OAIT Design System

Design system / Foundations

Shape

Corners tell people what a thing is. A pill is something you press or a chip, 12px is a field you type into, 16px and larger are containers, and a circle is a person or a dot. One radius scale, named by its pixel value, and six component aliases cover every interface in the family (D-SEM-01, D-SEM-02).

Tokens: Radius. Related: Elevation and borders, Motion, Imagery, Layout.

At a glance

  • Write the alias for the component (rounded-card, var(--radius-card)), never the step that happens to share its value, so a client answer changes one token (D-SEM-02, D-ARC-14).
  • Pills for everything you press and for every chip; 12px for fields; 16px for small containers; 24, 28, and 32px for cards, sheets, and panels; circles for people and dots (D-SEM-02).
  • The radius grows with the size of the thing: field 12, box 16, card 24, sheet 28, hero 32.
  • One radius per component at every breakpoint, and like items in a group share one radius (D-SEM-05).
  • Nested corners: inner = outer − gap. A side that touches the screen edge is square. Corners that differ are written with logical properties (D-SEM-05).
  • ID-card art uses container units (5.5cqw); the projector stage doubles every alias (D-SEM-06, D-SEM-22).
  • Expressive shapes are decoration and markers only, never the shape of a control (D-SEM-07).

The radius scale

Steps are named by their pixel value, so rounded-12px can never be misread as a t-shirt name (Tailwind's, shadcn's, and Material 3's small, medium, and large mean three different things in the family today) or as a spacing step (D-SEM-01).

Token CSS Tailwind Value M3 Expressive name Use
none --radius-none rounded-none 0px none A side that touches the screen edge; printed ID-card faces
4px --radius-4px rounded-4px 4px extra-small Plain tooltips, skeleton text lines, a drawn checkbox box, keyboard keys
8px --radius-8px rounded-8px 8px small Mono code tags, compact disclosure rows, the hover shape of checkbox and radio rows, the focus shape of text links
12px --radius-12px rounded-12px 12px medium Snackbars and toasts, organization avatars and tiles under 44px, content nested 12px inside a card
16px --radius-16px rounded-16px 16px large Content nested 8px inside a card (same value as box)
20px --radius-20px rounded-20px 20px large-increased Only content nested 8px inside a 28px sheet or frame: a QR tile in a sheet, a device screen
24px --radius-24px rounded-24px 24px family step, not in M3 Tiles of 64–96px, content nested 8px inside a 32px panel (same value as card)
28px --radius-28px rounded-28px 28px extra-large The phone frame of a device mock-up (same value as sheet)
32px --radius-32px rounded-32px 32px extra-large-increased Same value as hero
full --radius-full rounded-full 9999px full Pills and circles
  • No other radius exists in interface code. Every other value in use today retires: Games' 9, 10, 14, 15, 17, 18, 22, and 27px; Tamakkan's 5, 9, 10.4, 12.8, and 14.4px; and Jobs' 6px (D-SEM-01).
  • full is 9999px, and Tailwind's rounded-full reads the same token, so plain CSS and Tailwind draw the same pill (D-SEM-01).
  • Every name works with the logical corner utilities: rounded-t-sheet, rounded-s-sheet, rounded-ss-box, rounded-e-card (see Direction and Arabic).

Component aliases

Write the alias first. The scale is for nesting and for the few parts that have no alias (D-SEM-02).

Alias CSS Tailwind Value Used by
chip --radius-chip rounded-chip 9999px Every chip: filter, choice, input, suggestion, status
field --radius-field rounded-field 12px Text fields, selects, textareas, comboboxes, date, phone, one-time-code, and file inputs, with the label above the field
box --radius-box rounded-box 16px Menus, popovers, rich tooltips, listboxes, banners and notices, error summaries, table regions, bulk bars, choice cards, consent boxes, icon tiles, and organization avatars of 44–56px
card --radius-card rounded-card 24px Every card: outlined, filled, elevated, tonal, link, feature, stat, empty-state, and dashed placeholder cards; large photo frames in content
sheet --radius-sheet rounded-sheet 28px Dialogs; bottom sheets (top corners); side sheets (the two free corners); floating form cards (sign-in, register, contact)
hero --radius-hero rounded-hero 32px Hero and page-header panels, inset tinted and inverse bands, the pass panel, large visual cards. The largest interface radius
  • Chips always write rounded-chip, never rounded-full; fields always write rounded-field, never rounded-12px. Both aliases carry a pending client answer, and only the alias follows it (D-ARC-14).
  • Floating form cards keep sheet (28px), not card (D-ARC-15).

Component to radius

Radius Tailwind Components (D-SEM-02, D-ARC-14, D-ARC-31)
full rounded-full Buttons of every variant and size (40, 48, 56px) and icon buttons; toggle buttons and segmented groups; navigation bar indicators, rail items, drawer items, and menu-sheet links; the skip link and the "Sign in with Global ID" button; standalone links (their focus ring is a pill); the dot pill; switch track and thumb, radio, slider track and thumb; linear progress tracks and indicators, stepper segments; count badges, status dots, sheet handles (32×4px); avatars of people; step, status, empty-state, and problem-state discs
full, top corners only rounded-t-full The tab indicator. It is 3px tall, so it draws 3px top corners
chip rounded-chip Every chip: filter, choice, input, suggestion, assist, status
8px rounded-8px Mono code tags ("AI-100", "GU-25-000123"), compact disclosure rows, the hover shape of checkbox and radio rows, the focus shape of text links in running text
4px rounded-4px Plain tooltips, skeleton text lines, a drawn checkbox box (the Radix fallback), keyboard keys
field rounded-field Text fields, selects, textareas, comboboxes, date, phone, one-time-code, and file inputs
12px rounded-12px Snackbars and toasts; organization avatars, logos, and tiles under 44px (8px at 24px)
box rounded-box Menus, popovers, listboxes, autocompletes, rich tooltips, date pickers; banners, inline notices, error summaries, consent boxes, table regions, bulk bars; choice cards; icon tiles and organization avatars of 44–56px; a segmented group stacked as a column below 640px (Tailwind sm:)
card rounded-card Every card; large photo frames in content. Tiles and thumbnails of 64–96px use the step rounded-24px
sheet rounded-sheet Dialogs and floating form cards; bottom sheets as rounded-t-sheet; side sheets as rounded-s-sheet (attached at the inline end) or rounded-e-sheet (attached at the inline start)
hero rounded-hero Hero and page-header panels, inset tinted and inverse bands, the pass panel, large visual cards
Art constants no token ID-card and passport art: 5.5cqw on screen; printed ID-card faces 0. Device mock-up: frame rounded-28px, screen rounded-20px
Focus ring no radius of its own The outline follows the element's corner radius; text links get rounded-8px so their ring is rounded too (D-SEM-11)

Links: Button, Icon button, Chip, Text field, Card, Dialog, Bottom sheet, Side sheet, Menu, Snackbar, Tooltip, Panel.

Pills

  • Everything you press is a pill: every button variant and size, icon buttons (48px circles), toggles, segmented groups, navigation indicators, and the skip link. Every chip is a pill through rounded-chip. The umbrella and most products already draw buttons and chips this way, and the client approved pill chips on Global ID's landing (D-SEM-02, D-SEM-04).
  • A chip and an outlined button share a shape, and a medium chip is as tall as a medium button (48px). Tell them apart by the chip's hairline (border-outline-variant against the button's border-outline), its on-surface-variant label against the button's primary-ink one, and its grouping, never by a different corner (D-SEM-04, D-ARC-13).
  • A segmented group is one pill: the group carries rounded-full and overflow: hidden;, and the segments inside are square, so the first and last take the group's round ends. The focus ring is drawn inside the group with outline-offset: var(--size-focus-inset) (D-CAI-16, D-SEM-11). When the segments do not fit below 640px (Tailwind sm:), the group stacks as a column with rounded-box (D-CAI-16).
  • Circles are pills with equal sides: icon buttons, avatars of people, status dots, and discs. People are always circles, never a squircle or a mask (D-SEM-07, D-BCP-36).

Rules

Write the alias

  • Use rounded-card for a card even though rounded-24px draws the same corner. The alias says what the corner is for, and a later answer (a client call, a stage multiplier) changes the alias in one place (D-SEM-02, D-ARC-14).
  • Reach for a scale step only for nesting (rounded-20px, rounded-16px) and for the parts the table above names without an alias (snackbars rounded-12px, tooltips rounded-4px, code tags rounded-8px).

The radius follows the component

  • Role decides the radius, not screen width: a component keeps one radius at every breakpoint (D-SEM-05). The one shape change is a layout change: a segmented group whose segments do not fit below 640px (Tailwind sm:) stacks as a column and takes rounded-box (D-CAI-16).
  • Migration: Global ID's Home tiles go from rounded-card md:rounded-sheet to rounded-card; Tamakkan's assessment card keeps 24px at every width (it no longer drops to 16px at 768px and below); Games' guest and account cards keep 24px at every width.

Like items share one radius

  • Never mix corners inside a group: every card in a grid is rounded-card, every button in a row is a pill whatever its variant, every chip in a chip group is rounded-chip, every row of a list has the same shape (D-SEM-02, D-SEM-05).
  • The radius belongs to the component family, so a 12px card beside a 24px card, or a 12px button beside a pill, is always a defect. Migration: Games' 20px orange primary next to its pill buttons, and Tamakkan's 12px product buttons, both become pills.

Nested corners

  • Inner radius = outer radius − the gap between the two edges, rounded down to a scale step, never below 4px. A child flush with its parent's edge (media, a header band) has no radius of its own: the parent clips it with overflow: hidden; (D-SEM-05).
Outer Gap Inner Example
card, 24px 8px rounded-16px an image or a box 8px inside a card
card, 24px 12px rounded-12px content nested 12px inside a card
sheet, 28px 8px rounded-20px the QR tile inside a sheet
device frame, 28px 5px bezel rounded-20px (23px rounds down) the screen inside a phone mock-up (D-ARC-31)
hero, 32px 8px rounded-24px cards 8px inside a panel
  • Use the rule for nested surfaces inset 12px or less from the outer edge, the gaps of the examples above, where the two curves read as one shape: images and media, boxes, tiles, the QR tile, a device screen, cards 8px inside a panel.
  • Components keep their own radius wherever they sit. Buttons, icon buttons, and chips stay pills (the snackbar's action 4px from its edge, an icon button 4px inside a field), and a field, a banner, or a choice card in its container's ordinary padding (20px or more inside a card, a dialog, or a panel) keeps its alias from the component table.
  • Canonical gives the rule without a limit and shows gaps of 5–12px only. The 12px limit and the exception for components are this page's reading, chosen so that the rule never contradicts the component table: applied to a 24px card's 20px padding, it would give a field 4px corners (D-SEM-05).

Tiles and thumbnails

A tile's radius is about a third of its size (D-SEM-05, D-ARC-23).

Tile size Radius Tailwind Examples
24px 8px rounded-8px the smallest organization avatar
32–40px 12px rounded-12px --size-tile-sm (40px) icon tiles; organization avatars and company logos under 44px
44–56px box, 16px rounded-box --size-tile-md (48px) app, logo, and platform tiles; --size-tile-lg (56px) feature-card tiles; organization avatars of 44–56px
64–96px 24px rounded-24px large tiles and thumbnails
larger card rounded-card photo frames in content (portraits 4:5)
  • Discs are circles, not tiles: the 56px step disc, status discs, the 64px empty-state disc (--size-tile-xl), and the 80px problem-state disc (--size-tile-2xl) are all rounded-full.

Screen edges are square

  • A side that touches the screen edge has no radius: the bottom of a bottom sheet (rounded-t-sheet), the attached side of a side sheet (rounded-s-sheet or rounded-e-sheet), full-bleed bands, and the page strip (D-SEM-05).
  • Inset bands that sit inside the page gutter are not at the edge and keep rounded-hero.
  • A dialog never touches the screen edge (in a narrow window it is 2rem narrower than the window), so it keeps all four sheet corners.

Direction and Arabic

  • Corners that differ are written with logical properties, so they mirror in Arabic. Never the physical left, right, or top-left corner utilities and properties, which do not turn (D-SEM-05, D-BCP-30).
Corner In Arabic CSS Tailwind
Top, inline start (top left) top right border-start-start-radius: var(--radius-box); rounded-ss-box
Top, inline end (top right) top left border-start-end-radius: var(--radius-box); rounded-se-box
Bottom, inline start (bottom left) bottom right border-end-start-radius: var(--radius-box); rounded-es-box
Bottom, inline end (bottom right) bottom left border-end-end-radius: var(--radius-box); rounded-ee-box
  • Pairs: rounded-s-box rounds both start corners and rounded-e-box both end corners; rounded-t-box and rounded-b-box round the top and bottom pairs, which do not depend on direction.
  • Example: Games' speech-bubble mark (a 50–52px tile) has one flat corner, at the bottom on the inline-start side. Write it rounded-box rounded-es-4px (CSS border-radius: var(--radius-box); border-end-start-radius: var(--radius-4px);), so the flat corner moves to the bottom right in Arabic (D-SEM-05). The tile rule gives box at that size; rounded-20px is kept for nested content only.
  • A side sheet from the inline end (the phone menu) rounds its start corners, rounded-s-sheet; a side sheet from the inline start (the admin drawer below 768px) rounds its end corners, rounded-e-sheet. Both follow the direction by themselves.
  • Top and bottom do not depend on direction, so rounded-t-sheet is right for a bottom sheet in every language.
  • Decoration is placed with logical properties (CSS inset-inline-start and inset-inline-end; Tailwind's start and end inset utilities, such as end-6), so the composition mirrors in Arabic (D-SEM-07).
  • ID-card faces never mirror, and their four corners are equal anyway (Languages and RTL).

Art and stage

ID-card and passport art

Property On screen Printed CR80 face
Aspect aspect-ratio: 1.586 / 1 (ISO/IEC 7810 ID-1, 85.60 × 53.98mm) @page gid-card { size: 85.6mm 54mm }
Corner border-radius: 5.5cqw inside the card's own query container (23.2px on a 422px card) border-radius: 0; the die-cut card makes the 3.18mm corner
Shadow shadow-art (Elevation) none
Motion as in Motion none
  • Container units keep the corner in proportion at every card width. They are component constants, not tokens, because the DTCG format and design tools reject container units (D-SEM-06, D-ARC-31).
  • Print faces square. A drawn corner larger than the die-cut leaves an unprinted sliver at each corner (about 0.31mm at 4.6cqw, 0.63mm at 5.5cqw), and a square face also tolerates the printer's misregistration. If the ID office's printer cannot print to the edge, fall back to 3.7cqw (3.18mm); confirm with a test print first (D-SEM-06, D-ARC-31).
  • The parts inside the art are sized in cqw by the card-art component: the photo tile's 3cqw corners, the University mark on a white 9cqw tile, the product mark at 19cqw, the 12cqw seal (canonical §9). See ID card and Passport card.
  • Tailwind (Global ID): the card wrapper carries Tailwind's @container class; the face is aspect-[1.586/1] rounded-[5.5cqw] shadow-art print:rounded-none print:shadow-none.

Device mock-ups

  • Phone frame rounded-28px, screen rounded-20px (the nested rule inside the 5px inverse-surface bezel). Marketing and help pages only (D-BCP-40, D-ARC-31; Imagery).

The projector stage

On the Games stage (a fixed 1920×1080 artboard drawn at twice phone scale), every alias doubles and pills stay full (D-SEM-22).

Alias On screens On the stage CSS
field 12px 24px calc(var(--radius-field) * 2)
box 16px 32px calc(var(--radius-box) * 2)
card 24px 48px calc(var(--radius-card) * 2)
sheet 28px 56px calc(var(--radius-sheet) * 2)
hero 32px 64px calc(var(--radius-hero) * 2)
full pill pill var(--radius-full)
  • Tailwind: rounded-[calc(var(--radius-card)*2)].
  • Why: the artboard's least text size is 28px (--size-stage-text-min), twice the interface minimum, so corners scale with the drawing. Confirm on the projector before Games migrates its stage radii (D-SEM-22). See Stage and Large-display stage.

Expressive shapes

The decoration kit belongs to Imagery (D-BCP-37). This section gives the rules that keep shapes from changing what a control looks like or means (D-SEM-07).

Shape Drawn as Asset
Circle rounded-full none
Squircle a square with border-radius: 25%, or the mask sh-squircle.svg
Organic blob border-radius: 42% 58% 55% 45% none
Cookie (9 scallops) CSS mask sh-cookie.svg
Clover (4 lobes) CSS mask sh-clover.svg
Flower (6 petals) CSS mask sh-flower.svg
Sunny (12 points) CSS mask sh-sunny.svg
Rule Value (D-SEM-07, D-BCP-37)
Allowed Decoration behind hero, auth, empty-state, and onboarding content, marked aria-hidden="true"; character and mascot backdrops (the shape is part of the character asset); markers, badges, and decorative icon tiles that also show a letter, a number, a word, or a named icon
Never The shape of a button, chip, field, card, or dialog; a focus ring or a hit area; a crop of a real person's photo (people are circles); the only carrier of a meaning; behind body text that has not been checked at 4.5:1 against the composite color
Size Cookie, clover, flower, and sunny at 32px or more, because the scallops blur into noise below that; badges 40–56px, 48px by default; decoration 72–340px
Fill The four pastels at --opacity-decor (0.8), or --opacity-decor-soft (0.7) from 224px
Rotation and count 0°, 12°, or 18°; two to four shapes per panel, at least one cropped by the panel's edge
Motion animate-drift and animate-drift-slow only, two shapes at most, in a hero region with a Pause control (Motion)
Placement Logical properties; the panel carries isolation: isolate and the shapes sit at z-index: var(--z-behind); hidden in print
  • The mask technique: draw the shape on a ::before filled with a pastel, -webkit-mask and mask: url("<ds>/assets/shapes/sh-cookie.svg") center / contain no-repeat, under a letter or icon in the pastel's on-color. The marker carries position: relative; isolation: isolate; and the ::before sits at z-index: var(--z-behind), so the glyph on top is never clipped. In the reference CSS, decorative shapes are .oa-shape with a shape modifier (.oa-shape--cookie and the others) in reference/css/marketing.css; markers that carry a letter use the same technique inside their own component (Game tiles).
  • Product note (Global Games): the quiz answers keep their masks with a visible letter (A cookie, B clover, C flower, D squircle), and the 48px badges and every character's backdrop keep theirs. The characters are Games' product slot (Imagery).
  • Product note (oait, Global ID): hero and auth panels use the circle, the blob, and 25% squircles turned 12° or 18°; Global ID's AuthFrame shapes move from physical left and right to logical start and end (ID-2.40).

Code

CSS

Excerpts of how the reference CSS writes these rules; each component's own CSS file is the reference.

/* The alias for the component, never the step that shares its value. */
.oa-card { border-radius: var(--radius-card); }
.oa-chip { border-radius: var(--radius-chip); }   /* never --radius-full */
.oa-dialog { border-radius: var(--radius-sheet); }

/* A bottom sheet: the top corners only; its bottom touches the screen edge. */
.oa-sheet {
  border-start-start-radius: var(--radius-sheet);
  border-start-end-radius: var(--radius-sheet);
}

/* A side sheet at the inline end (the default): the two free corners, mirrored in Arabic by themselves. */
.oa-side-sheet {
  border-start-start-radius: var(--radius-sheet);
  border-end-start-radius: var(--radius-sheet);
}
/* A side sheet at the inline start: the other two; its attached side is square. */
.oa-side-sheet--start {
  border-start-start-radius: 0;
  border-end-start-radius: 0;
  border-start-end-radius: var(--radius-sheet);
  border-end-end-radius: var(--radius-sheet);
}

Tailwind CSS v4

Part Classes
Button, icon button, skip link rounded-full
Chip rounded-chip
Text field, select rounded-field
Menu, banner, table region, choice card rounded-box
Card rounded-card
Dialog, floating form card rounded-sheet
Bottom sheet rounded-t-sheet
Side sheet at the inline end / start rounded-s-sheet / rounded-e-sheet
Hero panel, inverse band rounded-hero
Snackbar rounded-12px
Plain tooltip, skeleton line rounded-4px
Code tag rounded-8px
QR tile inside a sheet rounded-20px
Stage card rounded-[calc(var(--radius-card)*2)]
ID-card face aspect-[1.586/1] rounded-[5.5cqw] print:rounded-none

Tailwind's own radius names still compile in 1.0.0 because the build does not reset them yet. Never write them in product code (canonical §4.12, V-7, D-SEM-23):

Never write It means Write instead
rounded (bare) 4px rounded-4px, or the alias for the component
rounded-xs 2px nothing: 2px is off the scale
rounded-sm 4px (8px with shadcn.css) rounded-4px or rounded-8px
rounded-md 6px (12px with shadcn.css) rounded-8px, rounded-field, or rounded-full by role
rounded-lg 8px (16px with shadcn.css) rounded-8px, rounded-chip, or rounded-box by role
rounded-xl 12px (24px with shadcn.css) rounded-field or rounded-12px
rounded-2xl 16px rounded-box or rounded-16px
rounded-3xl 24px rounded-card, or rounded-full on a 48px pill
rounded-4xl 32px rounded-hero

Tailwind CSS v3

  • tailwind.preset.cjs, loaded with oait.css, exposes the same names through borderRadius: rounded-card, rounded-12px, rounded-t-sheet.

shadcn/ui

  • shadcn.css sets --radius to 0.75rem and maps shadcn's names onto the scale, so unedited Input, Select, Textarea, Popover, and Card land on it: shadcn's small radius is 8px, medium is field, large is box, and extra-large is card (D-ARC-19).
  • Edit these components: Button and Toggle to rounded-full; Badge to rounded-chip; Dialog and Sheet to rounded-sheet (a bottom Sheet to rounded-t-sheet); Popover, DropdownMenu, and Select content to rounded-box; Tooltip to rounded-4px (D-SEM-23, D-ARC-19).
  • Only unedited shadcn components keep shadcn's own names; your own code writes the system names above.

Do and don't

Do Don't
rounded-chip on every chip rounded-full or rounded-8px on a chip
rounded-card on a card at every width change a card's radius at a breakpoint
Every button in a row a pill, filled, tonal, outlined, and text alike a 12px or 20px button beside pill buttons
rounded-20px for a QR tile 8px inside a 28px sheet the same radius inside and outside, which makes the gap look uneven at the corners
rounded-t-sheet on a bottom sheet round the corners where a sheet meets the screen edge
rounded-s-sheet on a side sheet from the inline end physical left or right corner utilities that do not turn in Arabic
A cookie mask behind the letter "A" a cookie-shaped button, or a person's photo cropped by a flower mask
5.5cqw on card art on screen, square faces in print a fixed px corner on card art, or a drawn corner on a printed face