Skip to content
OAIT Design System

Design system / Components

Site header

The 72px glass bar at the top of every marketing and public page, and one style for every product (D-CSN-51): three zones in one order. The product lock-up; the main navigation from 1024px; then the language switcher, the sign-in pair (the text button "Sign in" and Sign in with Global ID as its circle; once signed in, the account button in their place; D-CSN-53, D-CSN-55), and the menu button, with a menu sheet on smaller windows.

When to use

  • The top of every marketing landing (canonical §11 template 1): oait.app, Global ID's landing, Global Jobs, Global Games, Tamakkan's landing (D-CSN-09).
  • Public pages outside an app shell: sign-in, registration, and recovery (template 2, the header spans the window), legal and help (template 8), Jobs' listing and detail pages.
  • Any page whose navigation is a handful of page or section links that should stay in reach while the page scrolls (D-LAY-15).

When not to use

  • Inside a member app or a console: use the top app bar, a grid row of the app shell that never scrolls away, with the navigation bar, rail or drawer (canonical §10.15, D-CSN-13).
  • Kiosks, the Games stage, scanners, and stations: no navigation chrome; people leave by a labeled button (canonical §10.15).
  • Navigation inside a page: tabs (link tabs for URL sections) or a breadcrumb or back link.
  • Long lists of links: the header holds about five links at most (canonical §12.1); the rest go to the footer.

Anatomy

  1. Bar (<header class="oa-site-header">): full-bleed glass on surface-container, one step darker than the page (D-CSN-54), sticky, the top and side safe-area insets.
  2. Inner row (oa-site-header__inner): the page frame (1280px with the gutters inside), at least 72px tall, so its edge lines up with the page below (D-LAY-04).
  3. Lock-up (oa-lockup, see logo lock-up): the one link home; S below 640px, M from 640px. It never shrinks or hides (canonical §1.4).
  4. Main navigation (<nav class="oa-site-header__nav" aria-label="Main"> holding oa-site-header__list): from 1024px, centered in the free space, links 4px apart.
  5. Navigation link (oa-site-header__link): a 48px pill; the current page carries aria-current.
  6. End cluster (oa-site-header__actions), 8px apart, at the inline end, always in this order:
    1. the language switcher, first, as an icon: 48 × 48 with a 24px translate at every width. Its words stay for screen readers; the footer and the menu sheet show them (D-CSN-57);
    2. the theme toggle, only in a product that ships a dark theme: a 48px standard icon button with dark_mode, named "Dark theme", aria-pressed="true" while dark. It is an icon, never a word, and it stays in the bar at every width (D-CSN-56); the footer carries the same control as a button with its words (D-CSN-57);
    3. the sign-in pair (D-CSN-53, D-CSN-55). Signed out, two controls side by side: the text button "Sign in" (oa-btn oa-btn--text), which opens the product's sign-in page, then Sign in with Global ID as its circle (oa-gid-kit oa-gid-kit--circle, named "Sign in with Global ID"), which starts sign-in with Global ID at once. In a header the circle is 48px like the controls beside it, with a 24px logo and no stroke: the white disc on the bar's darker tone is its shape. Signed in: the account button of the top app bar (oa-icon-btn holding oa-avatar oa-avatar--sm, named "Account menu, {name}", opening the account menu) in place of both. The header has no other button and no call to action;
    4. the menu button (oa-icon-btn oa-site-header__menu-btn), while the navigation is in the sheet: below 1024px, or below 1280px when the header has four or five links.
  7. Menu sheet: a modal side sheet from the inline end (dialog.oa-side-sheet.oa-side-sheet--end) with the shared header row (the title "Menu" and a close button) and .oa-nav-sheet: the navigation items (oa-nav-sheet__item), a divider (oa-nav-sheet__divider), the language row, and "Sign in" as a full-width outlined button (oa-nav-sheet__section). The Global ID circle is not repeated there: it stays in the bar at every width.

Variants

None: one style for every product (D-CSN-51). A zone or a slot may be empty; the order, sizes, colors, and behavior never change. The table lists what a product fills and what it never changes.

Zone A product chooses Fixed for every product
Start its lock-up the one link home; S below 640px, M from 640px; never hidden
Middle none to five links, to pages or to sections of the page the link pill and its current state; centered; in the bar from 1024px, in the menu sheet below
End: language its languages first in the cluster; a two-language toggle or a three-language switcher
End: the sign-in pair where "Sign in" leads (its sign-in page) signed out, the text button "Sign in", then the Global ID circle, 48px, with no stroke; signed in, the account button with the avatar in place of both; never a third button, never a call to action
End: menu button nothing shown below 1024px when there are links; the sheet's order

How the former variants read now: a product with page links (Global Jobs, Global Games, Tamakkan) and oait.app with section links fill the middle zone the same way (the section in view is aria-current="location"); Global ID's landing and sign-in pages leave the middle zone empty, so they have no menu button, and a three-language switcher stays in the bar as a 48px icon button below 768px (canonical §10.14); a two-language toggle keeps its endonym at every width (canonical §10.28).

Inside an app shell the bar is the top app bar: the same start zone (the lock-up, the link home) and the same end order (language, then account). Its middle is empty because the destinations live in the navigation bar, rail, or drawer, and it is a row of the shell that never scrolls away.

Closed (D-CSN-53, 2026-11-21): the client call D-CAI-04, an extra filled CTA in marketing headers, no longer applies. No header carries a call to action, so every page has exactly one orange fill, in its content.

Sizes

Part Height Padding Type style Icon
Bar 72px (--size-header, min-h-18), plus the top inset gutter 16px, 24px from 640px — —
Navigation link 48px (--size-touch-target) 16px inline label-lg; current font-bold —
Call to action 48px (oa-btn, md) 24px inline label-lg —
Quiet action 48px (oa-btn--text) 24px inline label-lg —
Language switcher 48px see language switcher label-md translate 20px beside a label, 24px icon-only
Menu button 48 × 48px — — menu 24px
Sheet full height, 85vw up to 384px (--container-side-sheet) 24px plus the safe areas title title-lg close 24px
Sheet item 56px (--size-list-row) 16px inline, 12px icon gap label-md at 500, 700 when current optional 24px

Tokens

Part Property Token
Bar fill --color-surface-container at 90% (bg-surface-container/90) with a 24px backdrop blur (backdrop-blur-xl): one step darker than the page, which stays --color-surface (D-CSN-54, D-CSN-55); opaque --color-surface-container without blur support or under reduced transparency
Bar layer --z-header (z-30)
Bar height --size-header
Page scroll padding --size-scroll-offset (96px) plus the top inset (--oa-safe-top; env(safe-area-inset-top) in Tailwind)
Inner row frame, gutters --container-page, --space-gutter, --space-gutter-medium
Inner row gaps --space-3 (12px between groups); links --space-1; actions --space-2
Link text --color-on-surface-variant, --text-label-lg
Link, current fill, text --color-primary-container, --color-on-surface, --font-weight-bold
Link, current bar 3px --color-primary-ink, 12px in from each end, 4px above the bottom, 3px top corners
Link, menu button shape --radius-full
Link, menu button state layer --opacity-state-hover, --opacity-state-pressed, --duration-short-3, --ease-standard
Menu button icon --color-on-surface-variant
Sheet surface --color-surface-raised, --shadow-elevation-3, --radius-sheet, --color-scrim
Sheet item text --color-on-surface-variant; current --color-primary-container fill, --color-on-surface text, icon --color-on-primary-container
Sheet divider line --color-outline-variant
Focus ring --color-focus-ring, --size-focus-ring, --size-focus-offset

States

State Navigation link Menu button and sheet items
Enabled on-surface-variant label on the glass on-surface-variant icon or label
Hover (pointer devices) the 8% layer of the label color (--opacity-state-hover); never a fill that looks like "current" the 8% layer
Focus-visible the 3px ring 2px outside the pill (base CSS) the same ring
Pressed the 12% layer (--opacity-state-pressed), shown at once the 12% layer
Current aria-current="page" (or "location"): the peach fill, on-surface in bold, and the 3px primary-ink bar; hover adds the layer over the fill sheet item: the peach fill, bold, the icon filled
Expanded — the menu button carries aria-expanded="true" while the sheet is open
Disabled never: a link that goes nowhere is removed (canonical §10.3) —
Scrolled unchanged: no shadow and no edge appear (D-CSN-09) —
Short window static (max-height: 30rem) —

The fill alone is 1.2:1 against the header, so the bar and the weight carry "current" (D-CSN-11, D-COL-05, D-ARC-20).

Behavior

Position. The header sticks to the top on the header layer and turns static on short windows (landscape phones, zoom), and the page keeps 96px of scroll padding (plus the top inset in a standalone app) so anchor targets and focused fields stay clear of it. Nothing changes on scroll (D-LAY-15, D-LAY-17, D-SEM-12).

The sign-in pair. "Sign in" opens the product's sign-in page, which is the same page on every product (D-BCP-41, D-BCP-43): the product's own credentials, the filled "Sign in", and Sign in with Global ID directly under it. The circle is the quick way: pressing it starts sign-in with Global ID at once, and the person comes back signed in, on the page they were on; if they cancel, or Global ID cannot sign them in, they land on the same sign-in page. Neither shows on the sign-in, create-account, and recovery pages themselves. A page's main action ("Create account", "Book a briefing") lives in the page, never in the header (D-CSN-53, D-CSN-55).

Signed in. The account button takes the place of "Sign in" and the circle: a signed-in person is not asked to sign in again. It stays in the bar at every width (it is 48px); its menu holds the person's name, their account links, and "Sign out", as in the top app bar. The navigation links do not change with the sign-in state, so the bar does not jump (D-CSN-51).

What each width shows (canonical §10.14, D-CSN-09):

Window Lock-up Navigation End cluster Menu button
1024px and wider (1280px and wider with four or five links) M centered links switcher, theme toggle, "Sign in", the Global ID circle hidden
640px up to there M in the sheet switcher, theme toggle, "Sign in", the Global ID circle shown
below 640px S in the sheet the theme toggle and the Global ID circle; the switcher and "Sign in" move into the sheet shown

The theme toggle is there only in a product that ships a dark theme.

Four or five links. A header with four or five links keeps its navigation in the sheet up to 1280px. The reference CSS counts the links, so a product sets nothing; on Tailwind, write xl: where the recipe says lg: (D-CSN-56). With the theme toggle and the sign-in pair, oait.app's four links need 956px in English and about 982px in Arabic, and a 1024px window holds 961px beside a classic scrollbar.

Collapse rule. Below 640px the language switcher and "Sign in" move into the sheet (mark both oa-site-header__collapse; the sheet holds their twins at every width below 1024px). The theme toggle, the Global ID circle, and the account button never collapse: they stay in the bar at every width. A header with no links has no sheet: its three-language switcher stays in the bar as a 48px icon button, and "Sign in" leaves the bar below 640px, where the circle and the footer's "Sign in" link remain (canonical §10.14, D-CSN-09, D-CSN-53, D-CSN-55).

Measure the bar, do not guess. At 360px it holds 328px; at 640px, 592px; at 1024px, 976px. With the widths measured in Chromium for 1.0.0 (Roboto Flex and Noto Kufi Arabic) and the 48px circle:

Product, language Width Needs Result
Global Jobs, English 360px S lock-up 138 + circle 48 + menu 48 + two 8px gaps = 250px ("Sign in" is in the sheet) fits
Global Jobs, English 640px M lock-up 168 + switcher 48 + "Sign in" 100 + circle 48 + menu 48 + four gaps = 448px fits
oait.app, English, with the theme toggle 360px S lock-up 80 + toggle 48 + circle 48 + menu 48 + three gaps = 252px fits
Global Jobs, English, if it ships dark 360px S lock-up 138 + toggle 48 + circle 48 + menu 48 + three gaps = 310px fits, 18px to spare
oait.app, English, with the theme toggle 1024px lock-up 197 + four links 467 + end cluster 268 + two 12px gaps = 956px against 961px beside a classic scrollbar 5px to spare in English and none in Arabic (about 26px wider): four links, so the navigation stays in the sheet up to 1280px
oait.app, English, with the theme toggle 1280px 956px of 1217px fits
oait.app, Arabic, with the theme toggle 1280px about 982px of 1217px fits; OA-1.17 is closed by the four-link rule

The menu sheet (D-CSN-12, canonical §10.14, §10.19). The menu button opens the sheet as a native modal: showModal() on the <dialog> (Radix Dialog in React). It slides in from the inline end over --duration-short-4 with --ease-emphasized while the scrim fades over --duration-short-3; it leaves over --duration-short-3 with --ease-emphasized-accelerate; under reduced motion it appears and goes at once (overlay.css). Script contract:

const button = document.querySelector('.oa-site-header__menu-btn');
const sheet = document.getElementById(button.getAttribute('aria-controls'));
const wide = window.matchMedia('(min-width: 64rem)');

function openSheet() {
  sheet.showModal();                                   // focus moves in and stays; the page is inert
  sheet.querySelector('.oa-nav-sheet__item')?.focus(); // start on the first item
  button.setAttribute('aria-expanded', 'true');
}
function closeSheet() {
  if (sheet.open) sheet.close();
}
button.addEventListener('click', openSheet);
sheet.addEventListener('close', () => {               // Escape, the close button, a choice or the scrim
  button.setAttribute('aria-expanded', 'false');
  button.focus();                                      // focus returns to the menu button
});
sheet.querySelector('.oa-dialog__close').addEventListener('click', closeSheet);
sheet.addEventListener('click', (event) => {          // a press on the scrim, outside the sheet's box
  if (event.target !== sheet) return;                  // a press inside the content, or Enter on a button
  const box = sheet.getBoundingClientRect();
  const outside = event.clientX < box.left || event.clientX > box.right
    || event.clientY < box.top || event.clientY > box.bottom;
  if (outside) closeSheet();
});
sheet.querySelectorAll('a').forEach((link) => link.addEventListener('click', closeSheet));
wide.addEventListener('change', (event) => { if (event.matches) closeSheet(); });

Place the <dialog> after the header, at the end of <body>. A modal <dialog> renders in the top layer wherever it sits, but a fallback panel inside the header would be positioned against the header, whose backdrop filter makes it the containing block of anything fixed inside it.

Current section (oait.app). On a page whose links are in-page sections, move aria-current="location" to the link of the section in view (an IntersectionObserver on the sections). Hover never looks like current.

Accessibility

  • Landmarks. <header> is the banner when it is a direct child of <body>; the skip link ("Skip to content") comes before it as the first focusable element and points to <main id="main" tabindex="-1"> (canonical §10.3, §11, C-2).
  • Navigation. One <nav aria-label="Main"> ("القائمة الرئيسية" in Arabic, native review) in view at a time: the header's from 1024px, the sheet's below. The current link carries aria-current="page", or "location" for a tracked section; omit the attribute on the others (never aria-current="false").
  • Names. The lock-up link is named by its visible text, which starts with the product name (the sub-line follows it); never an aria-label that drops or reorders the visible words. The menu button is named "Menu" / "القائمة" / "Menu" with aria-expanded and aria-controls; the sheet is a dialog named by its title through aria-labelledby; its close button is "Close" / "إغلاق" / "Fermer".
  • Keyboard. Tab moves through the lock-up, the links, and the actions in reading order. The sheet keeps focus inside while open; Escape, the close button, the scrim, and any choice close it, and focus returns to the menu button.
  • Targets. Links, the menu button, and the actions are 48px tall; sheet items 56px (D-LAY-12).
  • Focus is never hidden. scroll-padding-top of 96px plus the top inset (never also an [id] scroll margin, which doubles it) keeps focused elements below the sticky bar (WCAG 2.4.11).
  • Contrast. on the glass (surface-container at 90%), over black content in the light theme, on-surface-variant keeps 6.39:1 and the "Sign in" label in primary-ink 4.88:1 (6.67:1 and 5.10:1 over the inverse band); at the recipe's 80% the label would fall to 3.82:1, which is why the bar is 90% (D-CSN-54, D-CSN-55, canonical §2.13); the current label on-surface on primary-container is 13.22:1 (9.07:1 dark); the bar, primary-ink on the fill, 5.50:1 (6.88:1 dark; 6.10:1 under the Tamakkan accent).
  • Forced colors and reduced transparency. The glass becomes opaque (Canvas); links keep their 1px edge; the current bar is a border, so it stays.
  • Reduced motion. The sheet appears without sliding; nothing in the bar moves.

RTL and languages

  • The lock-up follows the page direction: at the inline start, the right in Arabic, with the mark first; never force dir="ltr" on it (canonical §1.4, D-BCP-09). The end cluster sits at the left in Arabic, and the sheet opens from the left with its free corners facing the page.
  • menu, close, and translate never mirror (canonical §8.3).
  • Product names stay Latin inside <bdi lang="en" translate="no">; in plain text (aria-label, titles) inside Arabic, wrap them in U+2066 … U+2069 (D-BCP-03).
  • Arabic labels keep label-lg at line height 1.75; they stay inside the 48px pill. French runs about 26% longer, and short labels up to 32% (canonical §3.7): test the bar at 360px, 640px, and 1024px in every language the product ships, and let the collapse rule move items into the sheet.

Content

  • Navigation labels: one to three words in sentence case, naming the destination ("Find jobs", "For employers", "Services", "How we work"); no icons; about five links at most (canonical §12.1).
  • The sign-in pair: "Sign in" / "تسجيل الدخول" / "Se connecter" on the text button; the circle has no visible words, and its name is "Sign in with Global ID" / "تسجيل الدخول باستخدام ⁦Global ID⁩" / "Se connecter avec Global ID" (canonical §1.8). Signed in: "Account menu, {name}".
  • Menu: "Menu" / "القائمة" / "Menu"; close: "Close" / "إغلاق" / "Fermer"; navigation name: "Main" / "القائمة الرئيسية" (native review).
  • Language switcher: the endonym only ("العربية", "English", "Français") with hidden "Switch to Arabic" / "التبديل إلى الإنجليزية" in the page's language (D-BCP-29). The options of a three-language list are buttons in cookie products (Global ID) and links in URL products (canonical §10.28).
  • The circle sits beside "Sign in" in every header and stays in the bar at every width (canonical §1.8, D-CSN-53, D-CSN-55).

Do and don't

Do Don't
Keep the three zones in their order on every product: lock-up, navigation, then language, account, action, menu. Reorder the cluster, add a search field, a second row, a banner strip, or a product-specific color or height.
Leave a slot empty when the product has nothing for it. Fill an empty slot with something else, or move a neighbor into its place.
Show "Sign in" and the Global ID circle while signed out, and the account button once signed in. Show the account button beside them, add "Create account", or put any call to action in the bar.
Keep the circle at 48px in the header, with no stroke and with its name "Sign in with Global ID". Resize it, recolor it, give it back a stroke, or swap in another provider's button.
Show the current page with aria-current, the fill, the bold label, and the bar. Use a hover fill that looks like "current", or the fill alone.
Move the switcher into the sheet on phones. Shrink, truncate, or hide the lock-up name to make room.
Measure the bar at 360, 640, and 1024px in every language the product ships. Let labels wrap to two lines or the bar scroll sideways.
Keep the glass flat: no edge, no shadow, also when scrolled. Add a bottom hairline or a shadow on scroll.
Give the sheet the family's dialog behavior: trapped focus, Escape, the scrim, focus returned. Drop down a details panel with no focus management.

Code

HTML (reference CSS)

The kitchen sink shows this markup with the documentation-only oa-site-header--demo (it keeps several headers in the page flow) and the sheet with the open attribute; a product writes neither.

<header class="oa-site-header">
  <div class="oa-site-header__inner">
    <a class="oa-lockup" href="#jobs-home">
      <svg class="oa-lockup__mark" viewBox="180 180 720 720" width="40" height="40" aria-hidden="true" focusable="false"><path fill="var(--color-mark-ink)" d="M266.82,617.3c-1.29-14.69-1.4-29.09-.09-43.1l2.26-24.28,1.94-11.05,2.13-9.89,5.27-21.18,194.67.22c-14.74,16.29-25.1,33.72-30.18,54.33l-2.99,12.13c-1.66,14.2-3.1,29.19.34,43.15l2.44,9.91c11.44,46.47,49.32,82.53,96.2,92.66l13.55,2.57c55.49,6.22,107.72-24.67,131.02-74.8,4.06-8.74,6.93-16.9,8.46-26.33l2.42-14.86v-23.99s-2.64-14.68-2.64-14.68c-8.58-47.55-51.28-89.2-99.52-98.23-41.8-7.83-81.92,2.92-113.03,31.92-.72-1.83-.64-3.24-.64-5.73v-188.34s20.22-5.58,20.22-5.58l26.77-4.7,21.55-2.48c13.02-1.5,27.37-1.45,40.4.06l19.01,2.2,28.29,4.88c71.59,16.83,133.77,58.25,176.75,118.3,19.91,27.81,35.77,58.4,44.2,91.47l4.37,17.12,2.86,13.14,3.32,28.66.96,13.32-.26,31.56-2.89,25.39c-12.65,81.67-57.97,153.88-126.14,201.76-38.02-41.24-92.59-63.95-147.35-69.54l-26.76-.77-21,1.18-13,1.26-13.68,2.59c-38,7.18-72.88,23.63-102.95,47.9l-17.96,17.12c-63.01-43.26-107.58-110.56-122.8-184.81l-3.45-16.83-2.07-23.6Z"/><rect fill="var(--color-mark-accent)" x="213.67" y="237.29" width="209.98" height="209.98"/></svg>
      <span class="oa-lockup__name"><bdi lang="en" translate="no">Global Jobs</bdi></span>
    </a>
    <nav class="oa-site-header__nav" aria-label="Main">
      <ul class="oa-site-header__list">
        <li><a class="oa-site-header__link" href="#find-jobs" aria-current="page">Find jobs</a></li>
        <li><a class="oa-site-header__link" href="#for-employers">For employers</a></li>
      </ul>
    </nav>
    <div class="oa-site-header__actions">
      <a class="oa-lang oa-lang--two oa-site-header__collapse" href="#jobs-ar" hreflang="ar">
        <span class="oa-icon oa-icon--md" aria-hidden="true" translate="no">translate</span>
        <span lang="ar">العربية</span><span class="oa-visually-hidden">Switch to Arabic</span>
      </a>
      <a class="oa-btn oa-btn--text oa-site-header__collapse" href="#sign-in">Sign in</a>
      <button class="oa-gid-kit oa-gid-kit--circle" type="button" data-global-id-sign-in aria-label="Sign in with Global ID"><svg class="oa-gid-kit__logo" aria-hidden="true" focusable="false"><use href="#oa-gid-kit-logo"/></svg></button>
      <button class="oa-icon-btn oa-site-header__menu-btn" type="button" aria-label="Menu" aria-expanded="false" aria-controls="jobs-menu">
        <span class="oa-icon" aria-hidden="true" translate="no">menu</span>
      </button>
    </div>
  </div>
</header>

Signed in, the end cluster of the same header: the account button takes the place of "Sign in" and the Global ID circle. The circle draws its logo from the kit's <symbol id="oa-gid-kit-logo">, included once per page (Sign in with Global ID).

<div class="oa-site-header__actions">
  <a class="oa-lang oa-lang--two oa-site-header__collapse" href="/ar/jobs" hreflang="ar">
    <span class="oa-icon oa-icon--md" aria-hidden="true" translate="no">translate</span>
    <span lang="ar">العربية</span><span class="oa-visually-hidden">Switch to Arabic</span>
  </a>
  <button class="oa-icon-btn" type="button" aria-label="Account menu, Layla Haddad" aria-expanded="false" aria-controls="account-menu"><span class="oa-avatar oa-avatar--sm" aria-hidden="true">LH</span></button>
  <!-- the account menu (.oa-menu, id="account-menu"): see the top app bar -->
  <button class="oa-icon-btn oa-site-header__menu-btn" type="button" aria-label="Menu" aria-expanded="false" aria-controls="jobs-menu">
    <span class="oa-icon" aria-hidden="true" translate="no">menu</span>
  </button>
</div>

The menu sheet, after the header:

<dialog class="oa-side-sheet oa-side-sheet--end" id="jobs-menu" aria-labelledby="jobs-menu-title">
  <div class="oa-dialog__header">
    <h2 class="oa-dialog__title" id="jobs-menu-title">Menu</h2>
    <button class="oa-icon-btn oa-dialog__close" type="button" aria-label="Close">
      <span class="oa-icon" aria-hidden="true" translate="no">close</span>
    </button>
  </div>
  <div class="oa-nav-sheet">
    <nav aria-label="Main">
      <ul class="oa-nav-sheet__list">
        <li><a class="oa-nav-sheet__item" href="#find-jobs" aria-current="page">Find jobs</a></li>
        <li><a class="oa-nav-sheet__item" href="#for-employers">For employers</a></li>
      </ul>
    </nav>
    <hr class="oa-nav-sheet__divider">
    <div class="oa-nav-sheet__section">
      <a class="oa-lang oa-lang--two" href="#jobs-ar" hreflang="ar">
        <span class="oa-icon oa-icon--md" aria-hidden="true" translate="no">translate</span>
        <span lang="ar">العربية</span><span class="oa-visually-hidden">Switch to Arabic</span>
      </a>
    </div>
    <div class="oa-nav-sheet__section">
      <a class="oa-btn oa-btn--outlined oa-btn--wide" href="#sign-in">Sign in</a>
    </div>
  </div>
</dialog>

The same header with no links (Global ID). Global ID keeps the language in a cookie, so its options are buttons; the list composes the menu classes. Below 768px the trigger is icon-only, so it carries its name as a tooltip, hidden until the script shows it on mouse rest or keyboard focus (the 404 template wires it):

<header class="oa-site-header">
  <div class="oa-site-header__inner">
    <a class="oa-lockup" href="#id-home">
      <svg class="oa-lockup__mark" viewBox="180 180 720 720" width="40" height="40" aria-hidden="true" focusable="false"><path fill="var(--color-mark-ink)" d="M660.98,488.14c-10.88-13.34-23.06-24.24-37.02-33.8-29.39-20.12-63.74-29.79-99.45-29.45-26.79.25-52.07,6.62-75.9,18.74-26.43,13.45-49.52,32.39-67.76,55.68-36.8,46.98-48.4,108.58-30.93,165.54,4.02,13.12-3.45,26.1-16.59,29.47-12.09,3.1-22.98-3.84-26.92-15.6-9.84-29.32-12.59-59.97-9.33-90.82,5.99-56.74,32.04-108.62,74.31-146.97,66.02-59.92,158.44-79.91,241.61-45.34,30.66,12.75,57.42,31.77,78.5,57.32l36.94,44.78c26.56,32.2,55.07,62.07,86.81,89.09,5.11,4.35,7.88,9.76,5.22,16.33l-11.39,28.1c-.86,2.13-3.47,4.01-5.16,4.43-2.31.58-6.05-.17-8.04-1.93-22.88-20.24-44.68-40.78-65.72-63.05-15.02-15.89-28.17-32.26-41.93-49.13l-27.24-33.39Z"/><path fill="var(--color-mark-accent)" d="M372.52,398.28c-47.58,35.07-81.73,80.12-98.14,137.15-4.95,17.19-7.87,33.88-10.38,51.59-.25,1.78-2.32,4-3.71,4.24-1.83.31-4.63-1.28-5.43-3.48-9.78-27.17-14.23-55.52-14.57-84.43-.12-10.48,1.73-19.77,6.09-29.27,10.33-22.48,23.64-42.73,39.62-61.78,25.83-30.78,57.22-55.7,92.32-75.19,103.17-57.28,228.4-51.37,325.4,15.88,31.07,21.54,58,47.95,78.34,79.72,6.86,10.72,2.78,24.49-6.69,31.24-9.86,7.02-23.62,5.79-31.66-3.95l-27.63-33.47c-28.21-30.07-62.62-52.89-101.83-66.41-47.1-16.23-97.78-18.7-146.33-7.09-34.88,8.34-66.74,24.11-95.41,45.24Z"/><path fill="var(--color-mark-ink)" d="M539.46,600.43c-5.3-6.68-12.65-8.61-20.15-5.12-9.91,4.61-13.23,16.88-8.03,26.84,3.62,6.94,8.04,13.17,13.54,19.04l72.17,77.09c8.36,8.93,10.99,19.7,3.72,30.59-6.94,10.4-23.65,15.47-33.89,5.54-22.16-21.48-42.78-43.9-63.39-66.95-10.46-11.69-19.69-23.13-28.82-35.83-14.76-20.51-17.98-46.02-6.33-69.52,9.98-20.12,30.87-34.78,54.77-35.91,21.19-1.01,39.05,7.69,51.9,24.3,22.66,29.28,46.81,56.89,72.23,83.97,27.35,29.13,55.8,56.33,85.88,82.36,2.95,2.55,3.42,7.4,1.08,10.24-6.77,8.22-14.04,15.74-22.26,22.28-5.21,4.14-11.42,3.16-16.25-1.08-31.86-27.97-61.64-57.69-90.02-89.39-22.94-25.62-44.62-51.35-66.12-78.45Z"/><path fill="var(--color-mark-ink)" d="M596.95,845.37c-8.98,5.79-18.11,10.73-27.89,15.1-5.8,2.59-12.26,1.88-16.93-2.89l-89.08-91.08-35.91-39.77-24.12-30.92c-20.43-29.22-29.18-63.74-25.02-99.5,4.86-41.74,27.55-80.41,61.86-104.6,10.78-7.6,25.32-3.67,32.21,6.25,7.12,10.27,4.81,23.61-5.23,31.73-10.57,8.55-19.66,18.01-27,29.58-14.15,22.3-19.32,48.67-13.21,74.48,2.71,11.44,7.66,21.58,14.09,31.33,7.99,12.12,16.19,23.4,25.86,34.24l35.29,39.55,95.82,96.37c3.02,3.03,2.85,7.8-.75,10.12Z"/><path fill="var(--color-mark-accent)" d="M839.72,431.82c0,3.2-2.36,6.34-4.36,7.21-2.57,1.11-6.63.53-8.66-1.99l-42.51-52.81c-28.04-32.35-60.72-59.82-98.51-80.05-46.94-25.13-98.43-38.04-151.62-37.91-13.45.03-23.59-9.73-24.43-22.25-.84-12.59,8.47-24.28,21.81-25.45,14-1.23,27.35-.16,41.51,1.35,49.48,5.29,96.88,20.63,140.86,43.92,45.04,23.85,84.62,56.12,116.17,95.99,6.29,7.95,9.66,16.5,9.67,26.78l.05,45.21Z"/><path fill="var(--color-mark-ink)" d="M768.77,706.47c-4.03,5.36-10.96,6.16-15.65,1.77l-42.61-39.85c-33.65-31.47-63.92-65.28-92.92-101.05l-24.75-29.49c-11.9-14.17-28.42-22.38-46.78-25.3-9.56-1.52-18.74-1.43-28.4-1.62-12.91-.26-23.17-9.79-24.1-22.16-.89-11.85,7.66-24,20.5-25.58,18.87-2.33,37.96-.31,56.31,5.13,24.66,7.3,45.49,21.6,62.77,40.4l33.01,40.12c23.21,28.21,46.44,55.5,72.78,80.84l41.32,37.72c4.52,4.12,6.69,9.35,3.66,15.2-4.28,8.25-9.28,16.11-15.12,23.88Z"/><path fill="var(--color-mark-accent)" d="M249.91,408.57c-1.29,1.54-4.87,1.95-6.26,1.3s-3.28-3.35-3.28-5.34l.03-49.57c0-6.78,3.14-12,7.63-16.78,52.59-55.95,125.86-95.68,200.53-112.11,13.85-3.05,26.25,7.1,27.63,20.35,1.28,12.19-6.61,23.09-18.58,25.82-71.62,16.35-136.57,55.12-185.46,109.78l-22.23,26.55Z"/><path fill="var(--color-mark-ink)" d="M479.87,844c-49.75-20.25-98.2-52.51-131.61-94.23-3.76-4.7-4.55-11.17-1.86-16.67,4.04-8.29,12.3-14.08,21.71-14.53,6.69-.32,12.99,2.87,17.16,7.98l40.91,50.17c18.93,21.45,37.82,41.95,58.29,61.87l.16,3.78c.04.92-3.51,2.14-4.76,1.63Z"/><path fill="var(--color-mark-ink)" d="M838.49,504.02c-.21,12.92-.96,40.24-7.77,43.78-2.39,1.24-6.65,1-8.76-1.16l-31.75-32.55c-7.09-7.27-4.67-18.4,1.14-25.88,4.88-6.28,11.54-9.76,18.84-10.22,8.02-.51,14.13,3.57,19.79,9.2,4.64,4.62,8.63,9.5,8.51,16.83Z"/><path fill="var(--color-mark-ink)" d="M645.32,818.13c-4.22,2.92-9.95,2.15-13.53-1.34l-15.19-14.79c-8.85-8.62-5.39-22.34,2.74-30.4,9.54-9.46,22.79-9.72,32.64-.74l19.74,18.01c3.27,2.98,3.24,8.76-.47,11.32l-25.93,17.92Z"/></svg>
      <span class="oa-lockup__name"><bdi lang="en" translate="no">Global ID</bdi></span>
      <span class="oa-lockup__subline">Global University</span>
    </a>
    <div class="oa-site-header__actions">
      <div class="oa-lang">
        <span class="oa-tooltip__anchor">
          <button class="oa-lang__trigger" type="button" aria-label="Language: English" aria-describedby="id-header-lang-tip" aria-expanded="false" aria-controls="id-header-lang">
            <span class="oa-icon oa-icon--md" aria-hidden="true" translate="no">translate</span><span class="oa-lang__current">English</span><span class="oa-icon" aria-hidden="true" translate="no">arrow_drop_down</span>
          </button>
          <span class="oa-tooltip" role="tooltip" id="id-header-lang-tip" data-side="bottom" data-align="end" hidden>Language: English</span>
        </span>
        <ul class="oa-lang__list oa-menu" id="id-header-lang" hidden>
          <li><button class="oa-lang__option oa-menu__item" type="button" lang="en" aria-current="true"><span class="oa-menu__label">English</span><span class="oa-icon oa-menu__check" aria-hidden="true" translate="no">check</span></button></li>
          <li><button class="oa-lang__option oa-menu__item" type="button" lang="ar"><span class="oa-menu__label">العربية</span><span class="oa-icon oa-menu__check" aria-hidden="true" translate="no">check</span></button></li>
          <li><button class="oa-lang__option oa-menu__item" type="button" lang="fr"><span class="oa-menu__label">Français</span><span class="oa-icon oa-menu__check" aria-hidden="true" translate="no">check</span></button></li>
        </ul>
      </div>
      <a class="oa-btn oa-btn--text oa-site-header__collapse" href="#sign-in">Sign in</a>
      <button class="oa-gid-kit oa-gid-kit--circle" type="button" data-global-id-sign-in aria-label="Sign in with Global ID"><svg class="oa-gid-kit__logo" aria-hidden="true" focusable="false"><use href="#oa-gid-kit-logo"/></svg></button>
    </div>
  </div>
</header>

Tailwind CSS v4

<html class="scroll-pt-[calc(var(--size-scroll-offset)+env(safe-area-inset-top))] short:scroll-pt-0">
<header class="sticky top-0 z-30 short:static bg-surface-container/90 backdrop-blur-xl pt-[env(safe-area-inset-top)] pr-[env(safe-area-inset-right)] pl-[env(safe-area-inset-left)] text-on-surface forced-colors:bg-[Canvas] [@media(prefers-reduced-transparency:reduce)]:bg-surface-container supports-[not(backdrop-filter:blur(1px))]:bg-surface-container">
  <div class="mx-auto flex min-h-18 w-full max-w-page items-center gap-3 px-gutter sm:px-gutter-medium">
    <!-- lock-up: the brand kit's recipe, shrink-0 -->
    <nav aria-label="Main" class="hidden lg:mx-auto lg:block">
      <ul class="flex items-center gap-1">
        <li><a href="/en/jobs" aria-current="page" class="relative isolate inline-flex min-h-12 items-center whitespace-nowrap rounded-full border border-transparent px-4 text-label-lg text-on-surface-variant before:absolute before:-inset-px before:-z-1 before:rounded-[inherit] before:bg-current before:opacity-0 before:transition-opacity before:duration-short-3 before:ease-standard hover:before:opacity-(--opacity-state-hover) active:before:opacity-(--opacity-state-pressed) active:before:transition-none aria-[current]:bg-primary-container aria-[current]:font-bold aria-[current]:text-on-surface aria-[current]:after:absolute aria-[current]:after:inset-x-3 aria-[current]:after:bottom-1 aria-[current]:after:border-b-3 aria-[current]:after:border-primary-ink aria-[current]:after:rounded-t-[3px]">Find jobs</a></li>
      </ul>
    </nav>
    <div class="ms-auto flex flex-none items-center gap-2 lg:ms-0">
      <!-- always in this order: language switcher: max-sm:hidden; the sign-in pair: signed out, the text button "Sign in" (the text-button recipe, max-sm:hidden), then Sign in with Global ID as the kit's circle, 48px and stroke-less in a header, unmodified (never a Tailwind rebuild of it), at every width; signed in, the account button (the icon-button recipe holding the sm avatar, aria-label="Account menu, {name}") in place of both. No CTA -->
      <!-- menu button: the icon-button recipe + lg:hidden -->
    </div>
  </div>
</header>
  • Headers without a navigation keep ms-auto on the end cluster at every width (no lg:ms-0).
  • The menu sheet uses the side sheet recipe; inside it, the items are relative isolate flex min-h-14 items-center gap-3 rounded-full border border-transparent px-4 text-label-md font-medium text-on-surface-variant with the same state-layer classes and aria-[current]:bg-primary-container aria-[current]:font-bold aria-[current]:text-on-surface; the divider is <hr class="border-outline-variant">.
  • pl-[env(…)] and pr-[env(…)] are the one sanctioned physical pair: safe-area insets are physical (canonical §4.10).

React

Prop Type Default Description
home { href: string; name: string; subline?: string; mark: ReactNode } — The lock-up: one link home, named by the product.
links { href: string; label: string }[] [] Main navigation, about five at most. No links: no menu button.
current string — href of the current link; it gets aria-current.
currentKind 'page' | 'location' 'page' 'location' for in-page sections tracked on scroll.
language ReactNode — The language switcher; first in the end cluster.
themeToggle ReactNode — The theme toggle, after the language switcher. Pass it only in a product that ships a dark theme.
signIn { href: string; label: string } — The text button "Sign in" and where it leads. Omit it on the sign-in, create-account, and recovery pages.
onGlobalIdSignIn () => void — Starts sign-in with Global ID; the component renders the kit's circle beside "Sign in" while signed out. Omit it on the same pages.
account { name: string; initials: string; menu: ReactNode } — Once signed in: the account button and its menu, in place of "Sign in" and the circle.
navLabel string 'Main' Localized name of the navigation.
menuLabel / closeLabel string 'Menu' / 'Close' Localized names of the menu button and the sheet's close button.
<SiteHeader
  home={{ href: '/en', name: 'Global Jobs', mark: <Mark id="global-jobs" /> }}
  links={[{ href: '/en/jobs', label: 'Find jobs' }, { href: '/en/for-employers', label: 'For employers' }]}
  current="/en/jobs"
  language={<LanguageSwitcher languages={['en', 'ar']} />}
  signIn={{ href: '/en/sign-in', label: 'Sign in' }}
  onGlobalIdSignIn={startGlobalIdSignIn}
/>