Skip to content
OAIT Design System

Design system / Components

Game tiles

Global Games' campus-play pieces: the visitor's passport score, the points and visit tiles, the leaderboard of rank rows, and the booth cards. Product component (Global Games).

When to use

  • The visitor's passport (Games' app home, the app home pattern): the passport score is the one main object, with the points and visit tiles under it.
  • The leaderboard page in the app, and the leaderboard scene on the stage, which draws the same rank rows at stage size.
  • The booths list: one booth card per booth, under the filter chips "All", "Not visited", "Visited", "Services".

When not to use

Situation Use instead
A count or KPI outside Games (a dashboard, an admin page) The stat tile alone.
A ranked list that is not a game (top majors, search results) A list of rows, or Tamakkan's result card.
A disclosure that is not a booth (FAQ, settings groups) The accordion or the FAQ.
Progress through a form or a task The stepper or the progress bar.
The public projector The stage: rank rows at stage size, no controls.

Anatomy

Passport score (.oa-points, a <section> labeled by its title):

  1. Card: a tonal primary card (primary-container, on-primary-container), 24px corners, padding 20px, 24px from 640px.
  2. Header (__header): the visitor's avatar (56px, a Games character named "Avatar: Bolt"); the heading (__heading): the title "Your campus passport" (__title, title-md) and the visitor's name with the badge number (__meta, body-md, the number in mono); the rank as a neutral status chip ("Rank #2").
  3. Score (__score): one hero number (__value, hero-lg, tabular) and its unit in words (__unit, title-sm, "points").
  4. Progress: the family progress bar labeled "3 of 4 possible points".
  5. Visits (__visits, body-md): "2 / 3 booths visited".

Points and visit tiles: two stat tiles in a .oa-stat-grid ("Your points", "Booths visited"), each label with its icon (stars, storefront) and a numeral-lg value.

Leaderboard (.oa-leaderboard, a <section>):

  1. Card: a filled card (surface-container-low), 24px corners, 20px above and below, no inline padding (it holds a list).
  2. Header (__header): the title (__title, title-lg, a filled leaderboard glyph in primary-ink) and the rule (__note, body-md).
  3. List (__list, an <ol>): rank rows divided by --color-outline-variant hairlines; the rows share the list's columns (CSS subgrid where the browser has it), so ranks, bars, and scores line up whatever the length of a name or a unit.
  4. Rank row (.oa-rank-row): 72px (--size-list-row-two-line); the rank in a 32px column (__rank, numeral-md, tabular); a 40px avatar (a character may stand in for a person, decorative beside the name); the body (__body): the name (__name, title-sm) over a 4px progress bar (__bar, the thin progress bar: the share of every available point); the score at the inline end (__score: __value in numeral-md tabular, __unit "points" in body-sm).

Booth card (.oa-booth-card on an accordion item, a <details>):

  1. Summary (__summary, a two-line row, 72px): a 56px pastel tile with a filled storefront (decorative); the text (__text): the booth's name (__name, title-sm) and its place (__meta, body-md), as the organizer typed them; a status chip: "Visited" (success, a filled check_circle) or the points a first visit earns ("+1 point", neutral); the expand_more chevron. Below 640px (sm) the chip moves under the name and place, and the tile and the chevron span both lines, so a long booth name keeps the row's width and breaks only between words.
  2. Panel (__panel): the help line; key–value rows "First visit", "Repeat visits", "Booth competition", "Recorded at"; at most one 48px button, "Vote for this booth" (tonal), shown once the booth is visited, while voting is open, for a competitive booth.

Variants

Variant Use for Key tokens
Passport score The visitor's own total --color-primary-container, --color-on-primary-container, --radius-card; hero-lg with tabular figures
Points and visit tiles Two counters under the score the stat tile: numeral-lg tabular, label body-md 500
Leaderboard (app) The student leaderboard page --color-surface-container-low, --color-outline-variant hairlines; rank and score numeral-md tabular (C-9)
Leaderboard (stage) The projector's leaderboard scene the same markup inside .oa-stage: names display-sm, figures numeral-lg, radii doubled (see stage)
Booth card, visited A booth the visitor has been to the success status chip with check_circle; the vote button while voting is open
Booth card, not visited A booth still to visit the neutral status chip with the first-visit points

Sizes

Part Height Padding Type style Icon size
Passport score card content 20px, 24px from 640px (--space-card, --space-card-medium) title title-md; score hero-lg (44px at 390px, 76px from 1280px); unit title-sm avatar 56px (--size-avatar-md)
Stat tile content the tile's own value numeral-lg; label body-md 500 the label's glyph
Leaderboard card content 20px above and below, 24px from 640px; none inline title title-lg; rule body-md leaderboard 24px
Rank row 72px or more (--size-list-row-two-line) 8px block; 16px inline, 24px at the start from 640px rank, score numeral-md; name title-sm; unit body-sm avatar 40px (--size-avatar-sm); bar 4px
Booth summary 72px or more 8px block, the accordion's inline padding name title-sm; place body-md; chip label-md (32px high) tile 56px (--size-tile-lg), glyph 28px (--size-icon-xl); chip icon 18px (--size-icon-sm)
Booth panel content the accordion's help and rows body-md —

Tokens

Part Property Token
Passport score fill, text --color-primary-container, --color-on-primary-container
Passport score corners, edge --radius-card, 1px transparent
Score value type --text-hero-lg and its companions, with tabular figures
Leaderboard fill, text --color-surface-container-low, --color-on-surface
Leaderboard title glyph color --color-primary-ink
Rows divider 1px --color-outline-variant
Rank, score type --text-numeral-md and its companions, tabular
Unit, rule text --color-on-surface-variant
Bar track, fill the thin progress bar: 4px, --color-primary-ink fill on its track (GG-2.07)
Booth tile fill, glyph --color-pastel-peach / -lavender / -mint / -sand with their on-pastel-*
Booth chip fill, text visited: --color-success-container / --color-on-success-container; not visited: the neutral chip
Booth summary state layer, focus the accordion row's: --opacity-state-hover, --opacity-state-pressed; ring inset (--size-focus-inset)

States

State What changes
Passport score The number, the bar, and the visits line change when a visit is confirmed; nothing animates but the bar's fill (--duration-medium-2, --ease-emphasized).
Rank row Not interactive: no hover, focus, or pressed state.
Booth summary hover, pressed The accordion row's 8% and 12% layers.
Booth summary focus-visible The ring drawn inset (--size-focus-inset), inside the card's clip.
Booth open [open]: the chevron turns over --duration-short-4; the panel shows.
Booth visited The chip turns to "Visited" with check_circle; "Recorded at" appears; the vote button appears while voting is open.
Disabled booth The organizer paused it: the chip reads "Paused" (neutral); no vote button.
Empty leaderboard One line in place of the rows: "Scores will appear after confirmed visits".
Loading Skeleton rows of the same height.

Behavior

  • Points. Only staff record visits, by scanning the visitor's printed Global ID badge (or its image); the first eligible visit to a booth adds its points, repeat scans add none. The visitor's screens only show the result.
  • Ranking. Rows are in rank order; the bar is the share of every available point, so it shows progress, not distance to the leader ("Your progress is based on every available point").
  • Voting. A visitor may vote for one competitive booth they have visited and change it while voting is open; the organizer opens and closes the window.
  • Updates. The passport and the leaderboard refresh when a visit is confirmed; a refresh never moves focus or scrolls.
  • Responsive. The passport score and the tiles stack on phones; the booths list is one column, and below 640px each booth summary puts its chip under the name and place; the leaderboard card fills its column.
  • Reduced motion. The bar jumps to its new value; nothing else moves.

Accessibility

  • Passport score. A <section> labeled by "Your campus passport"; the score is text with its unit ("3 points"); the bar is a role="progressbar" named by its label "3 of 4 possible points", with aria-valuemin, aria-valuemax, and aria-valuenow.
  • Avatars. A chosen character is named ("Avatar: Bolt", role="img") where it stands for the visitor; beside a name in a row it is decorative (aria-hidden="true"). A character never replaces a real photo (D-BCP-39).
  • Leaderboard. An <ol>, so the order is announced; each row reads rank, name, score, and unit; the bars are aria-hidden.
  • Booth card. A native <details> and <summary>: Enter and Space open it; the summary reads the name, the place, and the chip's words; the tile and chevron are decorative.
  • Target size. Booth summaries are 72px rows; the vote button is 48px.
  • Contrast. on-primary-container on primary-container, on-surface and on-surface-variant on surface-container-low, and the chip pairs are 4.5:1 or more in both themes (contrast report).
  • Not by color alone. Visited and not visited are words in the chip; the rank is a number, never only a position or a bar.

RTL and languages

  • Everything mirrors: the rank column at the inline start, the score at the inline end, the chevron after the chip.
  • Digits stay Western and left to right: "2 / 3", the badge number, and every signed value ("+2") sit in <bdi dir="ltr"> (GG-1.05, D-TYP-12).
  • Names stay as entered, each in a <bdi>: it keeps the name's own direction while the row keeps the page's, so a Latin name in an Arabic row still starts beside its avatar; the product name "Global Games" stays Latin (GG-1.06).
  • Arabic is not cut down: no size cuts under :lang(ar) (GG-1.04).

Content

Part English Arabic
Passport title Your campus passport جوازك في الحرم
Rank chip Rank #{rank} الترتيب #{rank}
Unit points نقطة
Progress label {score} of {maximum} possible points {score} من {maximum} نقطة ممكنة
Visits {count} / {total} booths visited {count} / {total} أجنحة تمت زيارتها
Tiles Your points · Booths visited نقاطك · أجنحة تمت زيارتها
Leaderboard title Student leaderboard ترتيب الطلاب
Leaderboard rule First visits earn points. Your progress is based on every available point. الزيارات الأولى تمنح نقاطًا. يعتمد التقدّم على جميع النقاط المتاحة.
Empty leaderboard Scores will appear after confirmed visits تظهر النقاط بعد تأكيد الزيارات
Booth chips Visited · +{points} points · Paused تمت الزيارة · +{points} نقطة · متوقف
Booth help Show your printed badge or its image to the booth team. Only staff can record your visit. أظهر شارتك المطبوعة أو صورتها لفريق الجناح. الموظفون وحدهم يسجّلون زيارتك.
Booth rows First visit · Repeat visits · Booth competition · Recorded at الزيارة الأولى · الزيارات المتكررة · منافسة الأجنحة · سُجّلت في
Booth values 0 extra points · Included · Not included 0 نقاط إضافية · مشارك · غير مشارك
Vote Vote for this booth التصويت لهذا الجناح (native review; Games: «صوّت لهذا الجناح»)
  • Plurals through ICU: "+1 point", "+2 points", "1 point" in a rank row (canonical §14.3, D-BCP-19). Arabic has six plural categories; Games writes «نقطة» after every number today, which reads as a unit beside a big figure but not in a sentence: counts in running text take the ICU forms, for example {points, plural, one {نقطة واحدة} two {نقطتان} few {# نقاط} many {# نقطة} other {# نقطة}} (native review; see Languages and RTL).
  • Times in 24-hour form ("10:42"), in the event's time zone (GG-2.21).
  • Demo data: fictional visitors and badges that start with "DEMO-" ("DEMO-002"); every demo screen stays labeled demo (the demo and training pattern).
  • US spelling ("organizer", "favorite"), sentence case (GG-2.20).

Do and don't

Do Don't
Write the unit "points" beside every score. Show a bare number, or a bar, as the score.
Use numeral-md with tabular figures for ranks and scores. Set scores at weight 850, or in proportional figures that jump as they change.
Isolate "+2" left to right in Arabic. Let "+2" render as "2+" (GG-1.05).
Name a visitor's chosen character once, where it stands for them. Read "Avatar: Fox" before every name in the leaderboard.
Show at most one button in a booth panel. Put voting, directions, and sharing buttons in every booth.

Code

HTML (reference CSS)

The passport score:

<section class="oa-points" aria-labelledby="pr-points-title">
  <div class="oa-points__header">
    <span class="oa-avatar oa-avatar--md" role="img" aria-label="Avatar: Bolt"><img class="oa-avatar__img" src="../assets/characters/ch-bolt.svg" alt=""></span>
    <div class="oa-points__heading">
      <h3 class="oa-points__title" id="pr-points-title">Your campus passport</h3>
      <p class="oa-points__meta">Omar · <bdi class="oa-mono" dir="ltr" translate="no">DEMO-002</bdi></p>
    </div>
    <span class="oa-status-chip oa-status-chip--neutral">Rank #2</span>
  </div>
  <p class="oa-points__score"><span class="oa-points__value">3</span><span class="oa-points__unit">points</span></p>
  <div class="oa-progress" style="--oa-progress-value: 75%">
    <p class="oa-progress__label" id="pr-points-progress"><span>3 of 4 possible points</span></p>
    <div class="oa-progress__track" role="progressbar" aria-labelledby="pr-points-progress" aria-valuemin="0" aria-valuemax="4" aria-valuenow="3"><span class="oa-progress__indicator"></span></div>
  </div>
  <p class="oa-points__visits"><bdi dir="ltr">2 / 3</bdi> booths visited</p>
</section>

The points and visit tiles:

<dl class="oa-stat-grid">
  <div class="oa-stat">
    <dt class="oa-stat__label">Your points<span class="oa-icon oa-stat__icon" aria-hidden="true" translate="no">stars</span></dt>
    <dd class="oa-stat__value">3</dd>
  </div>
  <div class="oa-stat">
    <dt class="oa-stat__label">Booths visited<span class="oa-icon oa-stat__icon" aria-hidden="true" translate="no">storefront</span></dt>
    <dd class="oa-stat__value"><bdi dir="ltr">2 / 3</bdi></dd>
  </div>
</dl>

The leaderboard (characters stand in for photos in Games only):

<section class="oa-leaderboard" aria-labelledby="pr-leaderboard-title">
  <div class="oa-leaderboard__header">
    <h3 class="oa-leaderboard__title" id="pr-leaderboard-title"><span class="oa-icon oa-icon--filled" aria-hidden="true" translate="no">leaderboard</span>Student leaderboard</h3>
    <p class="oa-leaderboard__note">First visits earn points. Your progress is based on every available point.</p>
  </div>
  <ol class="oa-leaderboard__list">
    <li class="oa-rank-row">
      <span class="oa-rank-row__rank">1</span>
      <span class="oa-avatar" aria-hidden="true"><img class="oa-avatar__img" src="../assets/characters/ch-fox.svg" alt=""></span>
      <span class="oa-rank-row__body">
        <span class="oa-rank-row__name"><bdi>Maya</bdi></span>
        <span class="oa-progress oa-progress--thin oa-rank-row__bar" aria-hidden="true" style="--oa-progress-value: 100%"><span class="oa-progress__track"><span class="oa-progress__indicator"></span></span></span>
      </span>
      <span class="oa-rank-row__score"><span class="oa-rank-row__value">4</span> <span class="oa-rank-row__unit">points</span></span>
    </li>
    <li class="oa-rank-row">
      <span class="oa-rank-row__rank">2</span>
      <span class="oa-avatar" aria-hidden="true"><img class="oa-avatar__img" src="../assets/characters/ch-bolt.svg" alt=""></span>
      <span class="oa-rank-row__body">
        <span class="oa-rank-row__name"><bdi>Omar</bdi></span>
        <span class="oa-progress oa-progress--thin oa-rank-row__bar" aria-hidden="true" style="--oa-progress-value: 75%"><span class="oa-progress__track"><span class="oa-progress__indicator"></span></span></span>
      </span>
      <span class="oa-rank-row__score"><span class="oa-rank-row__value">3</span> <span class="oa-rank-row__unit">points</span></span>
    </li>
    <li class="oa-rank-row">
      <span class="oa-rank-row__rank">3</span>
      <span class="oa-avatar" aria-hidden="true"><img class="oa-avatar__img" src="../assets/characters/ch-mochi.svg" alt=""></span>
      <span class="oa-rank-row__body">
        <span class="oa-rank-row__name"><bdi>Lea</bdi></span>
        <span class="oa-progress oa-progress--thin oa-rank-row__bar" aria-hidden="true" style="--oa-progress-value: 75%"><span class="oa-progress__track"><span class="oa-progress__indicator"></span></span></span>
      </span>
      <span class="oa-rank-row__score"><span class="oa-rank-row__value">3</span> <span class="oa-rank-row__unit">points</span></span>
    </li>
    <li class="oa-rank-row">
      <span class="oa-rank-row__rank">4</span>
      <span class="oa-avatar" aria-hidden="true"><img class="oa-avatar__img" src="../assets/characters/ch-kiwi.svg" alt=""></span>
      <span class="oa-rank-row__body">
        <span class="oa-rank-row__name"><bdi>Jad</bdi></span>
        <span class="oa-progress oa-progress--thin oa-rank-row__bar" aria-hidden="true" style="--oa-progress-value: 50%"><span class="oa-progress__track"><span class="oa-progress__indicator"></span></span></span>
      </span>
      <span class="oa-rank-row__score"><span class="oa-rank-row__value">2</span> <span class="oa-rank-row__unit">points</span></span>
    </li>
  </ol>
</section>

Booth cards (sample event data: the booth names are the Games landing's, the places are examples):

<div class="oa-accordion">
  <details class="oa-accordion__item oa-booth-card" open>
    <summary class="oa-accordion__summary oa-booth-card__summary">
      <span class="oa-tile oa-tile--lg oa-tile--peach" aria-hidden="true"><span class="oa-icon oa-icon--filled" translate="no">storefront</span></span>
      <span class="oa-booth-card__text"><span class="oa-booth-card__name"><bdi>AI Transformation</bdi></span><span class="oa-booth-card__meta"><bdi>Main hall</bdi></span></span>
      <span class="oa-status-chip oa-status-chip--success"><span class="oa-icon oa-status-chip__icon" aria-hidden="true" translate="no">check_circle</span>Visited</span>
      <span class="oa-icon oa-accordion__icon" aria-hidden="true" translate="no">expand_more</span>
    </summary>
    <div class="oa-accordion__panel oa-booth-card__panel">
      <p>Show your printed badge or its image to the booth team. Only staff can record your visit.</p>
      <dl class="oa-kv">
        <div class="oa-kv__row">
          <dt class="oa-kv__key">First visit</dt>
          <dd class="oa-kv__value"><bdi dir="ltr">+2</bdi> points</dd>
        </div>
        <div class="oa-kv__row">
          <dt class="oa-kv__key">Repeat visits</dt>
          <dd class="oa-kv__value">0 extra points</dd>
        </div>
        <div class="oa-kv__row">
          <dt class="oa-kv__key">Booth competition</dt>
          <dd class="oa-kv__value">Included</dd>
        </div>
        <div class="oa-kv__row">
          <dt class="oa-kv__key">Recorded at</dt>
          <dd class="oa-kv__value"><span class="oa-num">10:42</span></dd>
        </div>
      </dl>
      <button class="oa-btn oa-btn--tonal" type="button"><span class="oa-btn__label">Vote for this booth</span></button>
    </div>
  </details>
  <details class="oa-accordion__item oa-booth-card">
    <summary class="oa-accordion__summary oa-booth-card__summary">
      <span class="oa-tile oa-tile--lg oa-tile--lavender" aria-hidden="true"><span class="oa-icon oa-icon--filled" translate="no">storefront</span></span>
      <span class="oa-booth-card__text"><span class="oa-booth-card__name"><bdi>Career Guidance</bdi></span><span class="oa-booth-card__meta"><bdi>Library</bdi></span></span>
      <span class="oa-status-chip oa-status-chip--success"><span class="oa-icon oa-status-chip__icon" aria-hidden="true" translate="no">check_circle</span>Visited</span>
      <span class="oa-icon oa-accordion__icon" aria-hidden="true" translate="no">expand_more</span>
    </summary>
    <div class="oa-accordion__panel oa-booth-card__panel">
      <p>Show your printed badge or its image to the booth team. Only staff can record your visit.</p>
      <dl class="oa-kv">
        <div class="oa-kv__row">
          <dt class="oa-kv__key">First visit</dt>
          <dd class="oa-kv__value"><bdi dir="ltr">+1</bdi> point</dd>
        </div>
        <div class="oa-kv__row">
          <dt class="oa-kv__key">Repeat visits</dt>
          <dd class="oa-kv__value">0 extra points</dd>
        </div>
        <div class="oa-kv__row">
          <dt class="oa-kv__key">Booth competition</dt>
          <dd class="oa-kv__value">Not included</dd>
        </div>
      </dl>
    </div>
  </details>
  <details class="oa-accordion__item oa-booth-card">
    <summary class="oa-accordion__summary oa-booth-card__summary">
      <span class="oa-tile oa-tile--lg oa-tile--mint" aria-hidden="true"><span class="oa-icon oa-icon--filled" translate="no">storefront</span></span>
      <span class="oa-booth-card__text"><span class="oa-booth-card__name"><bdi>Student Clubs</bdi></span><span class="oa-booth-card__meta"><bdi>Student center</bdi></span></span>
      <span class="oa-status-chip oa-status-chip--neutral"><span><bdi dir="ltr">+1</bdi> point</span></span>
      <span class="oa-icon oa-accordion__icon" aria-hidden="true" translate="no">expand_more</span>
    </summary>
    <div class="oa-accordion__panel oa-booth-card__panel">
      <p>Show your printed badge or its image to the booth team. Only staff can record your visit.</p>
      <dl class="oa-kv">
        <div class="oa-kv__row">
          <dt class="oa-kv__key">First visit</dt>
          <dd class="oa-kv__value"><bdi dir="ltr">+1</bdi> point</dd>
        </div>
        <div class="oa-kv__row">
          <dt class="oa-kv__key">Repeat visits</dt>
          <dd class="oa-kv__value">0 extra points</dd>
        </div>
        <div class="oa-kv__row">
          <dt class="oa-kv__key">Booth competition</dt>
          <dd class="oa-kv__value">Included</dd>
        </div>
      </dl>
    </div>
  </details>
</div>

Asset paths are relative to reference/.

Tailwind CSS v4

<!-- passport score -->
<section class="flex flex-col gap-stack rounded-card border border-transparent bg-primary-container p-card text-on-primary-container sm:p-card-medium" aria-labelledby="passport-title">
  <h2 class="text-title-md" id="passport-title">Your campus passport</h2>
  <p class="flex flex-wrap items-baseline gap-2"><span class="text-hero-lg tabular-nums">3</span><span class="text-title-sm">points</span></p>
</section>

<!-- rank row -->
<li class="grid min-h-18 grid-cols-[var(--size-chip-sm)_auto_minmax(0,1fr)_auto] items-center gap-x-4 px-row-inset py-2 sm:ps-row-inset-medium">
  <span class="text-center text-numeral-md tabular-nums">1</span>
  <!-- 40px avatar, aria-hidden -->
  <span class="flex min-w-0 flex-col gap-2"><span class="text-title-sm"><bdi>Maya</bdi></span><!-- the thin progress bar --></span>
  <span class="flex flex-col items-end text-end"><span class="text-numeral-md tabular-nums">4</span> <span class="text-body-sm text-on-surface-variant">points</span></span>
</li>

The leaderboard card: flex flex-col gap-stack rounded-card bg-surface-container-low py-card sm:py-card-medium, rows divide-y divide-outline-variant. Booth cards are the accordion recipe with a two-line summary. Below 640px the summary swaps the accordion's flex for grid grid-cols-[auto_minmax(0,1fr)_auto] gap-y-2 sm:flex: the tile takes row-span-2, the chip col-start-2 justify-self-start, and the chevron col-start-3 row-start-1 row-span-2.

React

Prop Type Default Description
PassportScore.visitor { name: string; badge: string; avatar?: Character } — The header; avatar is named "Avatar: {name}".
PassportScore.points / maximum number — The score and every available point; draws the bar and its label.
PassportScore.visited / booths number — "{visited} / {booths} booths visited".
PassportScore.rank number — The rank chip.
Leaderboard.rows { rank: number; name: string; points: number; avatar?: Character }[] — In rank order.
Leaderboard.maximum number — Every available point, for the bars.
Leaderboard.size "app" | "stage" "app" Stage size inside the projector stage.
BoothCard.booth { name: string; place?: string; points: number; visitedAt?: string; competitive: boolean; enabled: boolean } — One booth.
BoothCard.votingOpen / onVote boolean / () => void — Show and handle "Vote for this booth".
<PassportScore visitor={me} points={me.points} maximum={event.maxPoints} visited={me.visited} booths={event.booths.length} rank={me.rank} />
<Leaderboard rows={ranking} maximum={event.maxPoints} />
{booths.map((b) => <BoothCard key={b.id} booth={b} votingOpen={event.votingOpen} onVote={() => vote(b.id)} />)}