Content
Eyebrow
Small uppercase label in terracotta above headings. Marks structure, not data.
- Ready
- No keyboard interaction
- Screen reader not tested yet
Playground
Change the props and the surface. The controls come from the documented props; the surfaces are the real modes.
01 — Context
<Eyebrow>01 — Context</Eyebrow>Usage
When to use
Use an eyebrow above a Display or Heading to name the section or category a heading belongs to. It is the small terracotta marker that gives pages their structure.
When not to use
- For metadata such as a role, a date or a status: use DescriptionList or Pill.
- On its own, without a heading below.
How it works
Small, uppercase through CSS, widely tracked, in terracotta. Two sizes: sm for sections, md for page heads. The text stays in normal case in the source, so screen readers don't spell it out.
Content guidelines
One or two words, written in normal case: “Get started”, not “GET STARTED”. One eyebrow per heading.
Do and don’t
Challenge
Four teams, one way to build
DoAn eyebrow names the topic of the heading below it. 2019–2022 · Lead designer
Four teams, one way to build
CaseDon’tMetadata such as period and role is not an eyebrow; use Pill or DescriptionList.
Do
- One eyebrow per heading.
- One to four words that name the topic, such as “Challenge” or “Contact”.
Don’t
- Don't use it for metadata such as role or time span.
- Don't use it without a heading below it.
Anatomy
The parts of the component and what each one does, as in the playground above.
- labelOnest 600, tracking eyebrow, uppercase via CSS.
Examples
Type-checked, and the same code goes into the AI manifest. Import: import { Eyebrow } from "@/ds";
sm
01 — Context
md
Featured case
Props
Checked against the component's TypeScript type on every build.
| Name | Type | Default | Description |
|---|---|---|---|
| size | "sm" | "md" | "sm" | sm = eyebrow.size.sm, md = eyebrow.size.md. |
| as | "p" | "span" | "div" | "p" | Semantic element. |
| children (required) | ReactNode | – | Short text, set in uppercase by CSS. |
Tokens used
Derived from the utility classes in the component's source. Copy a class with one click.
| Token | Tier | Value | Utility |
|---|---|---|---|
| eyebrow.color | component | #C6492E | |
| eyebrow.size.md | component | 13px | |
| eyebrow.size.sm | component | 12px | |
| eyebrow.textTransform | component | uppercase | |
| eyebrow.tracking | component | 0.18em | |
| eyebrow.weight | component | 600 |
Accessibility
What is checked automatically on every build, and what a person has tested. Nothing is marked as tested unless it was.
| Check | How | Status |
|---|---|---|
| axe-core rules | Automated on every npm run check, at desktop and mobile width | Runs on every build |
| Keyboard | Automated Playwright test (scripts/keyboard.mjs) | Not applicable |
| Screen reader | Manual | Not tested yet |
Semantics and focus
- Type the text in normal case; uppercase comes from CSS, so screen readers don't spell it out.