Panel
A section-sized surface on the 32px hero radius that sets one part of a page apart: a hero, "How it works", the auth frame, one highlight, or the dark call-to-action band.
When to use
- A whole section that needs a ground of its own: the hero, "How it works", the sign-in frame (tonal) (D-CSN-08).
- One highlight per page, such as a closing call to action or an attention block (primary).
- The one dark band of a page: principles, a closing statement with one filled button and a text link (inverse) (canonical §10.27).
| Tone | Use for |
|---|---|
| Tonal (default) | Hero, "How it works", the auth frame |
| Primary | One highlight per page |
| Inverse | The one dark band per page |
When not to use
| Situation | Use instead |
|---|---|
| One subject among peers (a job, a status, a summary) | Card |
| A full-bleed tinted band across the window | .oa-band (Layout) |
| A message about the page or a form | Banner |
| A marketing hero with its split, art, and Pause control | Hero, which sits in a tonal panel |
| The dark band with a section header and principles | CTA band, which is the inverse panel |
| A second inverse band or a second primary panel on the page | A tonal panel, or no panel |
Anatomy
- Container
.oa-panel: 32px corners (--radius-hero), a transparent 1px edge, no shadow, inside the page gutter (never bleeding with negative margins). - Content: a section header, text, and actions, laid out by the page (often
.oa-stack). - Supporting text
.oa-panel__supporting(optional): the tone's secondary text color. A panel is wider than a line should be: its paragraphs and leads stop at the measure (.oa-measure,max-w-measure, 42rem), a hero's lead at 30em (Hero) (canonical §3.8, D-ARC-34). - Decoration (optional): kit shapes or glows,
aria-hidden, atz-index: var(--z-behind), placed with logical properties and clipped by the panel (canonical §9).
Variants
| Variant | Class | Use for | Key tokens |
|---|---|---|---|
| Tonal (default) | oa-panel (--tonal states it) |
Hero, how it works, auth frame | --color-surface-container-low, --color-on-surface |
| Primary | oa-panel oa-panel--primary |
One highlight per page | --color-primary-container, --color-on-primary-container |
| Inverse | oa-panel oa-panel--inverse |
The one dark band per page | --color-inverse-surface, --color-inverse-on-surface, --color-inverse-on-surface-variant, --color-inverse-primary |
| Feature padding (default) | oa-panel (--feature states it) |
Most panels | px-5 sm:px-10 lg:px-16, py-10 lg:py-16 |
| Hero padding | add oa-panel--hero |
Heroes and page-header panels | px-5 sm:px-10 lg:px-16, py-12 lg:py-20 |
The inverse band re-points the context colors on itself, never per element (canonical §2.8, D-ARC-07):
Property set on .oa-panel--inverse |
Value | Why |
|---|---|---|
--color-focus-ring |
var(--color-inverse-primary) |
primary-ink is 1.85:1 on the light inverse surface; inverse-primary is 7.74:1 (7.73:1 under the Tamakkan accent) |
--oa-link |
var(--color-inverse-primary) |
Links in the band read inverse-primary (Link) |
--color-mark-ink |
var(--color-on-card-art) |
A mark's ink follows the ground: white on a dark band in both themes (D-BCP-06) |
Inside the band, components write the inverse roles themselves: secondary text inverse-on-surface-variant, control borders inverse-on-surface-variant (never outline), eyebrows and links inverse-primary. The filled button keeps primary with on-primary (canonical §2.4, §2.6, §10.11). There is no subtree theme.
Sizes
| Size | Height | Padding | Type style | Icon size |
|---|---|---|---|---|
| Feature (default) | Its content's | inline 20px, 40px from 640px, 64px from 1024px; block 40px, 64px from 1024px | Set by the content: section headers, leads (.oa-panel__supporting keeps the content's size) |
Set by the content |
Hero (--hero) |
Its content's | inline as feature; block 48px, 80px from 1024px | As the hero (Hero) | As the hero |
One radius at every breakpoint: 32px. A panel sits inside the page gutter at every width (D-ARC-25, D-SEM-02).
Tokens
| Part | Property | Token |
|---|---|---|
| Container | corner | --radius-hero |
| Container | edge | 1px transparent (forced colors draw it) |
| Container | padding | --space-5 → --space-10 (640px) → --space-16 (1024px) inline; --space-10 → --space-16 block; hero --space-12 → --space-20 block |
| Tonal | background, text | --color-surface-container-low, --color-on-surface |
| Primary | background, text | --color-primary-container, --color-on-primary-container |
| Inverse | background, text | --color-inverse-surface, --color-inverse-on-surface |
| Inverse | context | --color-focus-ring → --color-inverse-primary; --oa-link → --color-inverse-primary; --color-mark-ink → --color-on-card-art |
| Supporting text | color, width | --color-on-surface-variant; inverse --color-inverse-on-surface-variant; at most --container-measure (42rem) |
| Decoration | layer, opacity | --z-behind; shapes at --opacity-decor (0.8) or --opacity-decor-soft (0.7 from 224px) |
States
| State | What changes |
|---|---|
| Enabled | The panel is not interactive; it has no hover, pressed, selected, or disabled state. |
| Focus-visible | Controls inside show the family ring; in the inverse band it is inverse-primary (7.74:1 light, 9.21:1 dark; Tamakkan 7.73:1 and 9.19:1). |
| Motion | Anything inside that moves by itself for more than 5 seconds needs the Pause control inside the panel (D-SEM-17). |
Behavior
- One of each. At most one inverse band and at most one primary panel per page (canonical §10.11).
- Inside the gutter. The panel takes the page container's width; it never bleeds with negative margins. A full-bleed tinted band is
.oa-band(D-ARC-25). - Decoration. Up to four kit shapes per panel, at least one cropped by the panel's edge; the panel is
isolation: isolateand clips them (overflow: hidden); glows (64px blur) only inside inverse panels; hidden in print (canonical §9). - Responsive. Padding grows at 640px and 1024px; the content inside reflows (a hero splits from 1024px).
- Print. Panels print without decoration.
Accessibility
- Element. A
sectionwitharia-labelledbyits heading when the panel is a section of the page; otherwise adiv. The heading inside follows the page outline (h2for a landing section). - Contrast. On the tonal and primary panels, text in
on-surface,on-primary-container, andon-surface-variantreaches 4.5:1 or more; in the inverse band,inverse-on-surface11.63:1 (light) and 13.83:1 (dark),inverse-on-surface-variant7.75:1 and 9.22:1,inverse-primary7.74:1 and 9.21:1, 7.73:1 and 9.19:1 under the Tamakkan accent (contrast report). - Never put
primary-inktext, anoutlineborder, or an un-re-pointed ring on the inverse surface: they fail (1.85:1 for the ring). - Decoration is
aria-hidden, never under text in a way that lowers its contrast. - Forced colors. The transparent 1px edge keeps the panel's outline.
RTL and languages
- Shapes and glows are placed with logical properties (
inset-inline-start), so they mirror; the content follows the page direction. - Arabic headings in the panel take the Arabic line heights from the tokens; leads may run longer: keep the measure (
max-w-measure, 42rem). - French: check the panel's heading at 360px with its 20px inline padding.
Content
- Tonal and primary panels hold their section's own content ("How it works": "Guests can register here. If the ID office invited you, use the one-time link in your email.") (R-80).
- The inverse band holds a short statement with a full stop ("Responsible by default."), one sentence of support ("Every project follows the same rules, whatever its size."), up to six principle items, and at most one filled button plus a text link ("Book a briefing", "How we work") (canonical §10.27).
- Arabic (oait): "المسؤولية أولًا، دائمًا." · "يتبع كل مشروع القواعد نفسها، مهما كان حجمه."
Do and don't
| Do | Don't |
|---|---|
| One inverse band per page, its ring and links re-pointed on the panel. | Two dark bands, or orange primary text and links in the band (Jobs today). |
Keep the filled button primary on the inverse band. |
Draw outlined controls with outline on the band; use inverse-on-surface-variant edges or text links. |
| Keep panels inside the page gutter. | Bleed a panel to the window edge with negative margins. |
| Write the inverse roles inside the band. | Wrap the band in data-theme="dark": themes switch on <html> only. |
Clip aria-hidden shapes inside the panel. |
Let decoration cover text or move without a Pause control. |
Code
HTML (reference CSS)
Tonal (default, feature padding):
<section class="oa-panel" aria-labelledby="ct-panel-how">
<div class="oa-stack">
<h3 class="oa-text-headline-md" id="ct-panel-how">How it works</h3>
<p class="oa-panel__supporting oa-measure oa-text-body-lg">Guests can register here. If the ID office invited you, use the one-time link in your email.</p>
</div>
</section>Tonal with hero padding:
<div class="oa-panel oa-panel--hero">
<div class="oa-stack">
<h3 class="oa-text-headline-lg">Good work. Closer to home.</h3>
<p class="oa-panel__supporting oa-measure oa-text-lead">Discover jobs and internships across the Middle East and North Africa. Find a role that fits, apply with confidence, and keep your next steps in one place.</p>
</div>
</div>Primary:
<div class="oa-panel oa-panel--primary">
<div class="oa-stack">
<h3 class="oa-text-headline-md">Your next great hire could be closer than you think.</h3>
<div class="oa-cluster">
<a class="oa-btn oa-btn--filled" href="#ct-employer">Create employer account</a>
</div>
</div>
</div>Inverse band:
<section class="oa-panel oa-panel--inverse" aria-labelledby="ct-panel-responsible">
<div class="oa-stack">
<h3 class="oa-text-headline-md" id="ct-panel-responsible">Responsible by default.</h3>
<p class="oa-panel__supporting oa-measure oa-text-body-lg">Every project follows the same rules, whatever its size.</p>
<div class="oa-cluster">
<a class="oa-btn oa-btn--filled" href="#ct-briefing-band">Book a briefing</a>
<a class="oa-link oa-link--standalone" href="#ct-how-we-work" data-demo-focus><span class="oa-link__label">How we work</span><span class="oa-icon oa-icon--md oa-icon--mirror oa-link__icon" aria-hidden="true" translate="no">arrow_forward</span></a>
</div>
</div>
</section>Arabic:
<section class="oa-panel oa-panel--inverse" aria-labelledby="ct-panel-responsible-ar">
<div class="oa-stack">
<h3 class="oa-text-headline-md" id="ct-panel-responsible-ar">المسؤولية أولًا، دائمًا.</h3>
<p class="oa-panel__supporting oa-measure oa-text-body-lg">يتبع كل مشروع القواعد نفسها، مهما كان حجمه.</p>
</div>
</section>Tailwind CSS v4
<!-- Tonal, feature padding (default). Hero padding: py-12 lg:py-20. Primary: bg-primary-container text-on-primary-container. -->
<section aria-labelledby="how" class="relative isolate overflow-hidden rounded-hero border border-transparent bg-surface-container-low px-5 py-10 text-on-surface sm:px-10 lg:px-16 lg:py-16">…</section>
<!-- Inverse band: the context colors re-pointed on the panel; secondary text and links written explicitly. -->
<section aria-labelledby="responsible" class="relative isolate overflow-hidden rounded-hero border border-transparent bg-inverse-surface px-5 py-10 text-inverse-on-surface [--color-focus-ring:var(--color-inverse-primary)] [--color-mark-ink:var(--color-on-card-art)] sm:px-10 lg:px-16 lg:py-16">
<h2 id="responsible" class="text-hero-md">Responsible by default.</h2>
<p class="max-w-measure text-lead text-inverse-on-surface-variant">Every project follows the same rules, whatever its size.</p>
<a href="/how-we-work" class="text-inverse-primary underline underline-offset-4">How we work</a>
</section>React
| Prop | Type | Default | Description |
|---|---|---|---|
tone |
"tonal" | "primary" | "inverse" |
"tonal" |
One primary and one inverse per page. |
padding |
"feature" | "hero" |
"feature" |
Block padding 40 → 64px, or 48 → 80px. |
as |
"section" | "div" |
"section" |
A section takes aria-labelledby. |
labelledBy |
string |
— | The id of the panel's heading. |
decoration |
ReactNode |
— | aria-hidden shapes, rendered behind the content. |
children |
ReactNode |
— | The section's content. |
<Panel tone="inverse" labelledBy="responsible">
<SectionHeader id="responsible" eyebrow={t('eyebrow')} title={t('title')} lead={t('lead')} />
<Button variant="filled" href="/contact">{t('book')}</Button>
</Panel>