Skip to content
OAIT Design System

Design system / Components

Stage

Global Games' projector stage: a fixed 1920 × 1080 artboard, scaled to the screen and letterboxed, showing one scene at a time to a room. Product component (Global Games).

When to use

  • The public stage of a Games event on a projector or a wall screen: the leaderboard, booth results, finalists, a question, the winner, the closing (the large-display stage pattern, canonical §11 template 11).
  • Wall screens of other products that show live figures to a room, such as Events and Security dashboards on a wall (canonical §11 template 11).
  • A preview of the stage inside a page (the organizer's console, the Games landing): .oa-stage--preview draws it in a 16:9 frame.

When not to use

Situation Use instead
The leaderboard on a visitor's phone The game tiles leaderboard in the app.
The host's or operator's controls (pause, next, reveal) The private host desk in the admin console: the public screen has no controls (D-CSN-46).
A marketing picture of the stage A device preview captioned "Illustrative product preview", in the stage palette (D-BCP-40).
Any screen read at arm's length The app's own pages: stage sizes are for a room.

Anatomy

  1. Window (.oa-stage): fixed to the window, surface behind the letterbox, a size container (container-type: size) the artboard measures.
  2. Artboard (.oa-stage__artboard): 1920 × 1080px at artboard pixels (--size-stage-width, --size-stage-height), centered and scaled as a whole; 72px safe area (--space-stage-safe); 40px between the header and the scene; two soft glows behind the content (primary at 20% from the top start, tertiary at 13% from the bottom end).
  3. Header row (__header, 88px): the stage lock-up (.oa-lockup--stage: the 76px mark drawn inline, the name in text-lockup-name-stage, the sub-line "Global University"); the event's name (__event, display-sm); the event phase as a pill (__status, headline-md on surface-container-high); the live label at the inline end (__live: a 24px dot in success, __live-dot, and the words "Public stage").
  4. Scene (__scene): one at a time; its title (__title, display-md, the page's h1) and its line (__lead, headline-md, on-surface-variant), then the scene's content: the leaderboard of rank rows at stage size, booth results, finalists, a question with four lettered answers, the winner.
  5. The mark's inks: the lock-up's mark is an inline SVG that fills its strokes with --color-mark-ink and its accent with --color-mark-accent (the Games amber stays inside the master), so it turns white with the stage's dark theme whatever the system setting. Never a <picture> that follows prefers-color-scheme (canonical §1.3).

Variants

Variant Use for Key tokens
Stage page (default) The projector: .oa-stage is the window data-theme="dark" on <html>; --size-stage-width, --size-stage-height, --space-stage-safe
Preview (.oa-stage--preview) A 16:9 picture of the stage inside another page 1px --color-outline-variant edge, --radius-box; it takes the host page's theme
Scenes Waiting, leaderboard, booth results, finalists, question, pause, winner, closing, no data yet display-md titles, display-lg one-line statements, numeral-lg figures

Sizes

One size, at artboard pixels; the whole artboard scales to the window, so every size below is multiplied by the same factor.

Part Height Padding Type style Icon size
Artboard 1080px (1920px wide) 72px safe area — —
Header row 88px 32px between parts event display-sm (36/44); phase and live headline-md (28/36) mark 76px (--size-mark-stage); live dot 24px
Phase pill content 8px 24px headline-md —
Scene title — 24px to the next block display-md (45/52) —
Leaderboard card content 48px above and below; rows 48px inline rule headline-md at 500 —
Rank row 72px or more 48px inline; 32px between columns; a 48px rank column rank and score numeral-lg (40/48); name display-sm; unit headline-md at 500 avatar 56px (--size-avatar-md)
Window Scale What the room sees
1920 × 1080 projector 1 the artboard as drawn
1280 × 720 0.667 the same scene, smaller
1440 × 900 laptop 0.75 letterboxed above and below
390 × 844 phone 0.203 a preview only; the room reads the big screen

Nothing on the artboard is under 28px (--size-stage-text-min) at artboard pixels.

Tokens

Part Property Token
Artboard size, safe area --size-stage-width, --size-stage-height, --space-stage-safe
Artboard scale min(100cqw / var(--size-stage-width), 100cqh / var(--size-stage-height)) where the browser divides lengths; else --oa-stage-scale, written by script
Stage colors the dark theme's --color-surface, --color-on-surface, --color-on-surface-variant, --color-surface-container-high (data-theme="dark" on <html>)
Glows art --color-primary and --color-tertiary radial gradients at 20% and 13% (canonical §2.11)
Live dot fill, motion --color-success, --animate-live
Lock-up mark, name --size-mark-stage, text-lockup-name-stage; the inline mark's fills --color-mark-ink and --color-mark-accent
Cards and rows inside corners every radius alias doubled: calc(var(--radius-card) * 2) (48px); pills stay --radius-full (D-SEM-22)
Cards and rows inside padding calc(var(--space-card-medium) * 2)
Type styles display-lg, display-md, display-sm, headline-md, numeral-lg with tabular figures
Reveals motion 700ms or less on --ease-spring or --ease-emphasized (canonical §7.8)

States

State What changes
Live The dot pulses (animate-live) beside "Public stage"; it stops when the stage is not live.
Updating The live label reads "Updating…" while new figures load, then "Public stage" again.
Scene change One scene replaces the other; a reveal of 700ms or less.
Celebration (winner) One-shot motion under 5 seconds, no more than three flashes a second; particles hide under reduced motion (D-SEM-22).
Training event "Training event · isolated rehearsal" in the header, so a rehearsal is never taken for the real event.
Hover, focus, pressed, disabled None: nothing on the public screen is interactive.
No data yet The scene's frame with one line: "Scores will appear after confirmed visits".

Behavior

  • Scaling. The artboard always keeps its 1920 × 1080 layout and scales as a whole to the smaller of the two ratios of its .oa-stage box (the window, or the preview frame), centered (left: 50% with a -50% translate, the one tolerated physical pair). Browsers that cannot divide lengths skip the @supports rule; there a script writes Math.min(stage.clientWidth / 1920, stage.clientHeight / 1080) into --oa-stage-scale on .oa-stage, on load and whenever its size changes (a ResizeObserver).
  • Never the fluid styles. hero-lg, hero-md, and lead grow with the window, not the artboard, so they would be scaled twice (canonical §3.5).
  • Theme. Themes switch on <html> only, so the stage is a page of its own with data-theme="dark"; a preview takes its host page's theme, and a mirror that must look exactly like the projector shows the stage page in an <iframe>.
  • Driven from elsewhere. The host desk changes the scene; the stage follows. The stage itself takes no input.
  • Pagination. Long rankings page by themselves with "Leaderboard page {page} of {total}" at 28px.
  • Reduced motion. No reveals, celebration motion, or particles; the dot stands still beside its words; every scene still changes (canonical §7.7).

Accessibility

  • Page. A stage page has the skip link, one <main>, and one h1 (the scene title); the header row is a <header>. Scenes are sections labeled by their titles.
  • Name. The lock-up's mark is decorative beside the product name; the name is live text.
  • Contrast. 7:1 or more for every text, because projectors wash colors out: in the dark theme on-surface is 9.50:1 or more and on-surface-variant 7.21:1 or more up to surface-container-highest. No text sits on the orange fill: on-primary on primary is 6.19:1, under the stage's 7:1 (canonical §11 template 11).
  • Text size. 28px or more at artboard pixels; at the scale of a 1920px projector that is a room's reading size.
  • Not by color alone. Ranks are numbers; quiz answers are lettered (A, B, C, D), never only a color or a shape; every state has its words.
  • Keyboard. Nothing to reach on the public screen; the host desk is a normal page.
  • Reduced motion. See Behavior.

RTL and languages

  • The artboard mirrors on Arabic stages: the lock-up at the inline start, the live label at the inline end, the rank column at the start of each row.
  • Product and event names stay as entered: "Global Games" in <bdi lang="en" translate="no">, an English event name in <bdi lang="en">; visitors' names each in a <bdi>, so they start beside their avatars in Arabic rows.
  • Digits stay Western and left to right; Arabic uses its own line-heights in the display styles (1.45), so check that the scene still fits the 936px of content height (canonical §3.7).
  • A bilingual event shows one language per stage page, not both at once.

Content

Part English Arabic
Lock-up sub-line Global University الجامعة العالمية
Phase: getting ready Getting ready التحضير
Phase: qualification Qualification live التأهل جارٍ
Phase: frozen Qualification frozen تم تجميد التأهل
Phase: finalists Finalists confirmed تم تأكيد المتأهلين
Phase: final Final round الجولة النهائية
Phase: complete Final results النتائج النهائية
Live label Public stage الشاشة العامة
Updating Updating… جارٍ التحديث…
Leaderboard title The leaderboard لوحة الترتيب
Leaderboard rule First visits earn points. Your progress is based on every available point. الزيارات الأولى تمنح نقاطًا. يعتمد التقدّم على جميع النقاط المتاحة.
Pagination Leaderboard page {page} of {total} صفحة الترتيب {page} من {total}
Footer Explore together. Play fair. اكتشفوا معًا. العبوا بنزاهة.
Training Training event · isolated rehearsal حدث تدريبي · تجربة معزولة
  • The other scenes' copy is in the large-display stage pattern.
  • Units in words beside every number ("4 points"); no exclamation marks, except the winner's heading, the one place a Games celebration may end with one (canonical §12.1).

Do and don't

Do Don't
Scale the whole artboard to the window. Reflow the stage at breakpoints, or scale parts of it.
Set data-theme="dark" on the stage page's <html>. Draw the stage's dark colors with a local palette (Games' --d-* set).
Keep every text at 28px or more and 7:1 or more. Put captions at 12px on a projector, or text on the orange fill.
Double the radius aliases on the artboard. Use the app's 24px card corners at stage size.
Keep the controls on the host desk. Put a button, a link, or a QR prompt for staff on the public screen.

Code

HTML (reference CSS)

The leaderboard scene in a preview frame (on a stage page the root is .oa-stage alone, and the scene is the page's <main> with an h1):

<div class="oa-stage oa-stage--preview">
  <div class="oa-stage__artboard">
    <div class="oa-stage__header">
      <span class="oa-lockup oa-lockup--stage"><svg class="oa-lockup__mark" viewBox="180 180 720 720" width="76" height="76" aria-hidden="true" focusable="false"><path fill="var(--color-mark-ink)" d="M450.75,767.07c-7.71,16.33-18.07,30.25-31.78,42.85l200.33.02c9.71,1.28,15.8,9.66,15.09,18.59-.78,9.78-8.5,16.15-18.72,16.14l-281.78-.25c-34.05-.03-66.87-14.73-90.16-38.85-18.6-19.26-30.53-43.01-35.73-69.05-4.08-20.41-2.72-40.48,2.95-60.42l47.21-166.07c5.55-19.53,14.88-36.95,26.37-53.46,10.13-14.55,23.12-25.49,38.69-33.9,14.65-7.91,29.85-13.34,46.49-16.35l101.12-18.32-9.15-52.04c-1.59-9.06-2.03-17.5-1.71-26.79,3.04-37.5,30.97-65.72,67.12-73.35,10.73-2.27,20.66,3.49,22.58,13.63,2.02,10.67-5.09,19.98-15.76,21.49-9.31,1.31-16.97,6.24-24.22,11.99-10.83,10.28-15.83,24.97-13.23,40.11l10.04,58.57,102.78-17.76c28.03-4.84,55.99-3.09,82.03,8.51,13.65,6.08,26.08,14.18,35.33,25.85l21.82,27.51,73.69,107.41,34.96,56.1c38.66,65.5,9.15,142.93-57.02,175.72-49.63,24.59-108.97,15.51-147.76-24.29l-8.35-9.66c-42.71,22.98-89.4,35.94-137.61,39.22-19.07.75-37.07.32-55.63-3.15ZM424.26,722.75c31.01,11.2,62.56,14.53,94.92,10.54,78.15-9.66,131.73-40.74,183.95-98.11,6.21-6.82,17.47-5.88,23.49-.65,6.82,5.62,7.65,14.74,3.58,23-16.72,19.97-35.5,37.69-56.66,53.83,17.94,22.55,45.58,34.6,74.52,32.37,30.66-2.37,58.34-19.35,75.55-44.51,17.81-26.68,19.56-60.51,4.19-88.78-12.37-22.75-26.1-44.04-40.82-65.44l-57.76-83.95c-8.67-12.61-17.02-24.52-26.92-35.95-10.8-12.47-24.25-20.8-40.04-25.24-15.74-4.43-31.06-3.99-47.27-1.11l-229.66,40.82c-13.16,2.34-25.26,5.12-37.22,10.52-15.41,6.96-28.66,17.13-37.85,31.37-6.67,10.33-12.15,20.86-15.65,32.84l-29.43,100.95-20.68,73.62c-9.04,32.18.73,64.8,22.03,89.81,18.04,21.18,45.05,32.35,72.84,30.88,32.34-4.57,60.91-22.76,76.64-51.59-23.44-8.5-45.4-19.64-65.52-34.26-7.63-5.54-8.3-16.7-3.46-23.75,4.91-7.14,15.63-10.3,23.55-5.09,16.96,11.17,34,20.79,53.67,27.9Z"/><path fill="var(--color-mark-accent)" d="M695.55,545.21c0,40.5-32.83,73.33-73.33,73.33s-73.33-32.83-73.33-73.33,32.83-73.33,73.33-73.33,73.33,32.83,73.33,73.33ZM660.23,545.31c0-21.08-17.09-38.16-38.16-38.16s-38.16,17.09-38.16,38.16,17.09,38.16,38.16,38.16,38.16-17.09,38.16-38.16Z"/><path fill="#fcb64d" d="M402.09,636.96c-5.45,7.33-15.87,8.2-23.02,3.48-7.13-4.7-10.52-16.03-4.98-23.54l26.04-35.29-33.18-25.07c-7.81-5.9-9.39-16.25-4.23-24.1s16.38-10.57,24.25-4.69l34.42,25.7,27.24-35.97c6.17-8.14,19.42-7.13,25.72-.18,7.09,7.82,5.05,17.55-.76,25.15l-24.47,31.99,33.8,25.64c4.75,3.6,5.46,10.6,4.81,16.1-.7,5.93-4.74,10.3-9.2,12.55-5.21,2.63-12.34,2.83-17.07-.73l-33.79-25.42-25.57,34.38Z"/></svg><span class="oa-lockup__name"><bdi lang="en" translate="no">Global Games</bdi></span><span class="oa-lockup__subline">Global University</span></span>
      <p class="oa-stage__event">Open Doors</p>
      <span class="oa-stage__status">Qualification live</span>
      <span class="oa-stage__live"><span class="oa-stage__live-dot" aria-hidden="true"></span>Public stage</span>
    </div>
    <section class="oa-stage__scene" aria-labelledby="pr-stage-title">
      <h3 class="oa-stage__title" id="pr-stage-title">The leaderboard</h3>
      <p class="oa-stage__lead">First visits earn points. Your progress is based on every available point.</p>
      <div class="oa-leaderboard">
        <ol class="oa-leaderboard__list">
          <li class="oa-rank-row">
            <span class="oa-rank-row__rank">1</span>
            <span class="oa-avatar oa-avatar--md" 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-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 oa-avatar--md" 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-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 oa-avatar--md" 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-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 oa-avatar--md" 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-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>
          <li class="oa-rank-row">
            <span class="oa-rank-row__rank">5</span>
            <span class="oa-avatar oa-avatar--md" aria-hidden="true"><img class="oa-avatar__img" src="../assets/characters/ch-comet.svg" alt=""></span>
            <span class="oa-rank-row__body">
              <span class="oa-rank-row__name"><bdi>Nour</bdi></span>
              <span class="oa-progress oa-rank-row__bar" aria-hidden="true" style="--oa-progress-value: 25%"><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">1</span> <span class="oa-rank-row__unit">point</span></span>
          </li>
          <li class="oa-rank-row">
            <span class="oa-rank-row__rank">6</span>
            <span class="oa-avatar oa-avatar--md" aria-hidden="true"><img class="oa-avatar__img" src="../assets/characters/ch-sprout.svg" alt=""></span>
            <span class="oa-rank-row__body">
              <span class="oa-rank-row__name"><bdi>Rami</bdi></span>
              <span class="oa-progress oa-rank-row__bar" aria-hidden="true" style="--oa-progress-value: 0%"><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">0</span> <span class="oa-rank-row__unit">points</span></span>
          </li>
        </ol>
      </div>
    </section>
  </div>
</div>

The lock-up's mark is inline, so a stage page and a preview need no image file: its inks come from the theme of the page around it. Script contract: change scenes on the host's command; write --oa-stage-scale where @supports (scale: calc(1px / 1px)) fails; stop the live dot when the stage is not live.

Tailwind CSS v4

<html lang="en" dir="ltr" data-theme="dark">
<body class="bg-surface text-on-surface">
  <div class="fixed inset-0 overflow-hidden [container-type:size]">
    <div class="absolute start-1/2 top-1/2 isolate flex h-[var(--size-stage-height)] w-[var(--size-stage-width)] -translate-x-1/2 -translate-y-1/2 scale-(--oa-stage-scale) flex-col gap-10 overflow-hidden bg-surface p-stage-safe rtl:translate-x-1/2">
      <header class="flex min-h-22 flex-none items-center gap-8">
        <!-- the stage lock-up -->
        <p class="text-display-sm"><bdi lang="en">Open Doors</bdi></p>
        <span class="inline-flex items-center rounded-full border border-transparent bg-surface-container-high px-6 py-2 text-headline-md">Qualification live</span>
        <span class="ms-auto inline-flex items-center gap-4 text-headline-md"><span class="size-6 rounded-full bg-success animate-live" aria-hidden="true"></span>Public stage</span>
      </header>
      <main id="main" tabindex="-1" class="flex min-h-0 flex-auto flex-col gap-6">
        <h1 class="text-display-md">The leaderboard</h1>
        <p class="text-headline-md text-on-surface-variant">First visits earn points. Your progress is based on every available point.</p>
      </main>
    </div>
  </div>
</body>
</html>

--oa-stage-scale comes from the component's stylesheet (port the @supports rule onto the window box, the size container) or from the script. The recipe centers with start-1/2 and a translate that flips in right-to-left pages; the reference CSS uses the one tolerated physical pair (left: 50% with a -50% translate) instead, with the same result. Inside the artboard, cards take rounded-[calc(var(--radius-card)*2)].

React

Prop Type Default Description
event { name: string; phase: Phase; training: boolean } — The header's event name, phase pill, and training notice.
live boolean true The live dot pulses; "Updating…" while updating.
updating boolean false Shows "Updating…" in the live label.
scene "waiting" | "leaderboard" | "booths" | "finalists" | "question" | "pause" | "winner" | "closing" — The one scene on screen.
children ReactNode — The scene's content (the stage-size leaderboard, the question).
preview boolean false Draws the 16:9 preview frame inside a page.
<Stage event={event} live={!stale} updating={refreshing} scene="leaderboard">
  <StageTitle>{t('studentLeaderboard')}</StageTitle>
  <StageLead>{t('leaderboardRule')}</StageLead>
  <Leaderboard size="stage" rows={ranking.page} maximum={event.maxPoints} />
</Stage>