Sign in with Global ID
The one way to offer Global ID sign-in: a portable 56px pill with the Global ID logo and the label "Global ID", the same in every product, language, and theme.
Global ID owns and releases this kit; products load its files unmodified (D-BCP-15, D-CAI-19). This page documents the values of its next release (C-6) and the rules for placing it.
When to use
- The sign-in and create-account screens of every product: the kit sits directly under the screen's filled main button, 12px below it, with no "or" divider (canonical §1.8, §11 template 2, D-BCP-43).
- Every product's site header, as the circle, which is 48px there (D-CSN-54): it sits beside the text button "Sign in", at every width, with no stroke, and it starts sign-in at once (D-CSN-53, D-CSN-55, Site header). It does not show on the sign-in, create-account, and recovery pages, or once the person is signed in (the account button takes its place).
When not to use
- Global ID's own sign-in screens: they are where the kit leads (authentication).
- Another identity provider ("Continue with Google"): not on the sign-in page, which is the same page on every product (D-BCP-41).
- The product's own sign-in with an email and password: the filled "Sign in" button after the divider.
- A rebuilt or restyled copy of the kit in a product's own tokens, radius, or font: never; the kit is the only Global ID entry point (D-CAI-19).
Anatomy
- Pill (
<button class="oa-gid-kit" type="button">): at least 56px tall, full width, 12px block and 24px inline padding, a 1px border, fully rounded. - Logo: the Global ID mark, 28px, decorative; its gray strokes take the logo color and its arcs stay orange.
- Label: "Global ID" in
system-ui, 16px, weight 600, line height 1.5; Latin and left to right in every language (<span lang="en" translate="no">). - Accessible name: the localized aria-label "Sign in with Global ID", which contains the visible label.
The circle keeps the pill and the logo and drops the visible label; its aria-label stays. The logo is drawn from one <symbol id="oa-gid-kit-logo"> included once per page, the first element of the snippet's section (inputs.html): <svg class="oa-gid-kit__defs" aria-hidden="true" focusable="false"><symbol id="oa-gid-kit-logo" viewBox="196 192 688 688">…</symbol></svg>, drawn from assets/app-marks/global-id.svg (gray paths set to currentColor). It keeps its own 196 192 688 688 crop so the fingerprint fills the kit's 28px box; the kit is the documented exception to the marks' shared 180 180 720 720 frame.
Variants
| Variant | Use for | Key tokens |
|---|---|---|
| Light (default) | light pages and cards | fixed values: #ffffff pill, #221a15 label, #85736a border |
Dark (--dark) |
dark grounds: the dark theme, the inverse band | fixed values: #221a15 pill, #fff8f5 label, #d8c2b8 border, #ffffff logo ink |
Circle (--circle) |
a site header, light or dark | 48 × 48px with a 24px logo in a site header, where it matches the header's other controls (D-CSN-54); 56 × 56px with a 28px logo anywhere else; logo only, the aria-label kept |
The reference class is full width, as the kit's preferred --full is. The header size is the only smaller one, and the kit's own CSS sets it (.oa-site-header .oa-gid-kit--circle): never resize the circle yourself (D-CAI-19, D-CSN-54).
Sizes
| Size | Height | Padding | Type style | Icon size |
|---|---|---|---|---|
| Full | at least 56px | 12px block, 24px inline; 12px between logo and label | system-ui 16px, 600, line height 1.5 (fixed, no type token) |
logo 28px |
| Circle | 56 × 56px | 12px | — | logo 28px |
| Circle in a site header | 48 × 48px, no stroke (transparent 1px border) | 11px | — | logo 24px |
Tokens
The kit reads no tokens. Its fixed portable colors and system-ui are deliberate, so the button looks the same in any product and under any accent: it is the one exception to "tokens only", and gid-kit.css is the only file with raw colors, all inside .oa-gid-kit (canonical §1.8). Each value equals a family color, named here for orientation only; never swap the token in.
| Part | Property | Fixed value | Same value as |
|---|---|---|---|
| Pill | fill, light / dark | #ffffff / #221a15 |
--color-surface-container-lowest / --color-on-surface, light theme |
| Pill | border, light / dark | #85736a / #d8c2b8 |
--color-outline / --color-outline-variant, light theme |
| Label | color, light / dark | #221a15 / #fff8f5 |
--color-on-surface / --color-surface, light theme |
| Logo | gray ink, light / dark | #4c4c4d / #ffffff |
--color-mark-ink / white |
| Logo | arcs | #f47920 |
--color-mark-accent |
| Hover | fill, light / dark | #fcf1eb / #382e29 |
--color-surface-container-low (light theme) / --color-inverse-surface |
| Focus | ring, light / dark | 3px solid #8f4200 / #ffb68a, 2px outside |
--color-primary-ink light / --color-inverse-primary |
| Label | font | system-ui, sans-serif 16px 600, line height 1.5 |
— |
States
| State | Light pill | Dark pill | Notes |
|---|---|---|---|
| Enabled | #ffffff, #85736a border |
#221a15, #d8c2b8 border |
— |
| Hover | #fcf1eb |
#382e29 |
a fixed tone, not a state layer, on pointer devices only (@media (hover: hover)), so a tap on a phone leaves no tone behind (D-CAI-19) |
| Focus | ring 3px #8f4200, 2px outside |
ring 3px #ffb68a, 2px outside |
the family ring's geometry in the kit's fixed inks (C-6); forced colors draw it in Highlight |
| Pressed | no separate look | no separate look | the kit has no motion |
| Disabled | colors unchanged, default cursor | the same | while sign-in starts; presses are ignored |
There is no error state on the button: a failure to start is announced in the form's error banner, and the button is enabled again for a retry.
Behavior
- Press: the button calls the product's own server-side sign-in start, protected against cross-site requests, which answers with a full-page redirect to Global ID. The button holds no URL, credential, or token; the data-global-id-sign-in attribute marks it for the product's script (D-CAI-19).
- While starting: the button is disabled; if starting fails, it is enabled again, the failure appears in the form's error banner (
role="alert") and the person can try again. - In a form card: full width, the first thing after the heading and the intro, then the "or" divider, then the product's fields and its filled "Sign in" (canonical §11 template 2).
- In a header: below 640px (sm), the compact window, a header shows either the kit's circle or the product's own call to action, never both (canonical §1.8, D-LAY-02, JB-1.01). Never place the circle where it makes the header wrap at 360px (D-CAI-19).
- Other providers: below the kit, styled by the provider's own rules, and only in products that serve people outside the University (D-BCP-15).
- Motion: none.
Accessibility
- A
<button type="button">. Its name is the localized aria-label, which contains the visible "Global ID", so speech users can say what they see (canonical §1.8). - The logo is decorative:
<svg aria-hidden="true">inline, or<img alt="">in the kit. - The visible label is
<span lang="en" translate="no">; in plain text such as the Arabic aria-label, "Global ID" sits between U+2066 and U+2069 so it stays left to right (D-BCP-03, D-BCP-15). - Contrast: the label is 17.12:1 on the light pill (15.43:1 on hover) and 16.30:1 on the dark pill; the light border is 4.51:1 on white (D-CAI-19). The
#8f4200ring is 6.79:1 on the light page and 7.13:1 against the pill; the#ffb68aring is 7.74:1 on the inverse band (canonical §2.8) and 10.04:1 against the dark pill. - Use the dark pill on dark grounds: the light pill's
#8f4200ring falls to 2.6:1 on the dark page. - Targets: 56px for both shapes.
- Reduced motion: nothing moves.
RTL and languages
- The kit is
direction: ltrin every language: the logo stays before the label, and the label stays "Global ID" in Latin. Only the accessible name changes. - The full-width pill centers its content, so it sits the same way in Arabic and French forms.
- No "or" divider stands beside the kit on a sign-in card (D-BCP-43).
Content
- Visible label: exactly "Global ID"; never translated, never "Sign in with Global ID" as visible text, never another word added.
- Accessible name: "Sign in with Global ID" / "تسجيل الدخول باستخدام Global ID" / "Se connecter avec Global ID" (canonical §1.8).
- Divider: "or" / "أو" / "ou".
- Around it on a sign-in card: the heading "Sign in", the product's fields, the standalone link "Forgot your password?", its filled "Sign in", the kit directly under it, then "New to Global Jobs? Create account" (canonical §11 template 2, D-BCP-43).
- Retry: "Try again" / "إعادة المحاولة" (native review) / "Réessayer" (canonical §12.3).
Do and don't
| Do | Don't |
|---|---|
| Load the kit Global ID releases, unmodified. | Rebuild it in product tokens, a product radius, or a product font. |
| Put it directly under the filled "Sign in", 12px below. | Put it above the fields, behind an "or" divider, or under "or continue with". |
| Use the dark pill on dark grounds. | Put the light pill on a dark page, where its ring falls to 2.6:1. |
| Let the kit size the circle: 48px in a site header, 56px elsewhere, with its aria-label. | Resize the circle yourself or drop its name. |
| Show the circle in every site header, at every width, beside the text button "Sign in". | Add a call to action beside it, or give the header circle a stroke. |
| Localize the accessible name. | Translate the visible label. |
Code
HTML (reference CSS)
Include the logo symbol once per page (see Anatomy), then:
<button class="oa-gid-kit" 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><span class="oa-gid-kit__label" lang="en" translate="no">Global ID</span></button>
<div class="oa-panel oa-panel--inverse">
<button class="oa-gid-kit oa-gid-kit--dark" 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><span class="oa-gid-kit__label" lang="en" translate="no">Global ID</span></button>
</div>The circle, light and dark, with the focus ring and the disabled state shown:
<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 class="oa-panel oa-panel--inverse">
<button class="oa-gid-kit oa-gid-kit--circle oa-gid-kit--dark" 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>
<button class="oa-gid-kit oa-gid-kit--circle" type="button" data-global-id-sign-in aria-label="Sign in with Global ID" data-demo-focus><svg class="oa-gid-kit__logo" aria-hidden="true" focusable="false"><use href="#oa-gid-kit-logo"/></svg></button>
<div class="oa-panel oa-panel--inverse">
<button class="oa-gid-kit oa-gid-kit--circle oa-gid-kit--dark" type="button" data-global-id-sign-in aria-label="Sign in with Global ID" data-demo-focus><svg class="oa-gid-kit__logo" aria-hidden="true" focusable="false"><use href="#oa-gid-kit-logo"/></svg></button>
</div>
<button class="oa-gid-kit oa-gid-kit--circle" type="button" data-global-id-sign-in aria-label="Sign in with Global ID" disabled><svg class="oa-gid-kit__logo" aria-hidden="true" focusable="false"><use href="#oa-gid-kit-logo"/></svg></button>On a sign-in card, directly under the filled "Sign in", in a form with novalidate (on a real sign-in page the card's heading is the page's h1):
<form class="oa-card oa-card--floating" novalidate>
<h4 class="oa-text-headline-md">Sign in</h4>
<div class="oa-field">
<label class="oa-field__label" for="gid-email">Email address</label>
<div class="oa-field__control" dir="ltr">
<input class="oa-field__input" id="gid-email" name="email" type="email" autocomplete="username webauthn" autocapitalize="none" spellcheck="false" placeholder="name@gu.edu.lb">
</div>
</div>
<div class="oa-field">
<label class="oa-field__label" for="gid-password">Password</label>
<div class="oa-field__control" dir="ltr">
<input class="oa-field__input" id="gid-password" name="password" type="password" autocomplete="current-password" placeholder="Your password">
<button class="oa-icon-btn oa-field__trailing" type="button" aria-label="Show password" aria-pressed="false" aria-controls="gid-password"><span class="oa-icon" aria-hidden="true" translate="no">visibility</span></button>
</div>
</div>
<a class="oa-link oa-link--standalone" href="#sign-in-with-global-id"><span class="oa-link__label">Forgot your password?</span></a>
<button class="oa-btn oa-btn--filled oa-btn--lg oa-btn--wide" type="submit">Sign in</button>
<button class="oa-gid-kit" 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><span class="oa-gid-kit__label" lang="en" translate="no">Global ID</span></button>
<p class="oa-text-body-md">New to <bdi lang="en" translate="no">Global Jobs</bdi>? <a class="oa-link" href="#sign-in-with-global-id">Create account</a></p>
</form>Arabic and French:
<div class="oa-stack" dir="rtl" lang="ar">
<button class="oa-gid-kit" type="button" data-global-id-sign-in aria-label="تسجيل الدخول باستخدام ⁦Global ID⁩"><svg class="oa-gid-kit__logo" aria-hidden="true" focusable="false"><use href="#oa-gid-kit-logo"/></svg><span class="oa-gid-kit__label" lang="en" translate="no">Global ID</span></button>
</div>
<div class="oa-stack" lang="fr">
<button class="oa-gid-kit" type="button" data-global-id-sign-in aria-label="Se connecter avec Global ID"><svg class="oa-gid-kit__logo" aria-hidden="true" focusable="false"><use href="#oa-gid-kit-logo"/></svg><span class="oa-gid-kit__label" lang="en" translate="no">Global ID</span></button>
</div>Tailwind CSS v4
Products load the kit's own files, which Global ID releases and the product serves itself (no remote script, font, or image): sign-in-buttons.css, sign-in-logo-light.svg, and sign-in-logo-dark.svg under /brand/global-id/. Tailwind supplies only the layout around it, such as the "or" divider:
<div class="flex flex-col gap-4">
<button type="button" class="gid-sign-in gid-sign-in--full" data-global-id-sign-in aria-label="Sign in with Global ID"><img src="/brand/global-id/sign-in-logo-light.svg" alt="" width="28" height="28"><span lang="en" translate="no">Global ID</span></button>
<p class="flex items-center gap-4 text-body-md text-on-surface-variant before:h-px before:flex-1 before:bg-outline-variant after:h-px after:flex-1 after:bg-outline-variant">or</p>
<!-- the product's own fields and its filled "Sign in" -->
</div>The dark pill adds gid-sign-in--dark and takes sign-in-logo-dark.svg; the circle is gid-sign-in gid-sign-in--circle with the logo only. The kit's classes match .oa-gid-kit, --dark, and --circle value for value once the release in Migration ID-2.36 ships.
React
<GlobalIdSignIn onStart={startGlobalIdSignIn} />
<GlobalIdSignIn shape="circle" theme="dark" onStart={startGlobalIdSignIn} />| Prop | Type | Default | Description |
|---|---|---|---|
shape |
'full' | 'circle' |
'full' |
The full-width pill, or the 56px circle with the logo only. |
theme |
'light' | 'dark' |
'light' |
The light pill, or the dark pill for dark grounds. |
accessibleLabel |
string |
the page language's "Sign in with Global ID" | The localized accessible name; it must contain "Global ID". |
onStart |
() => Promise<void> |
required | Starts the product's server-side sign-in; the redirect follows. The button holds no URL or token. |
starting |
boolean |
false |
Disables the button while sign-in starts. |
The component renders the kit's markup and nothing else: no className, no style props, no child content (D-CAI-19).