Content
Highlight
The important part of a headline in terracotta, black and terracotta as on free-lenz.net.
- Experimental
- 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.
Generated by the pipeline
<Highlight>pipeline</Highlight>Usage
When to use
Use a highlight to split a headline into black and terracotta, so the word that carries the point stands out, as on free-lenz.net. Once per page, on its most important headline.
When not to use
- In running text: use plain text; emphasis there comes from the sentence.
- On links: links are underlined, never only coloured.
- For a status: use Pill or StatusDot.
How it works
An inline span in the accent colour inside Display or Heading. In surface modes it follows the mode: the lighter terracotta on ink, white on terracotta. It changes only the colour, not the meaning, so screen readers read the headline as it is.
Content guidelines
Highlight one to three words, the ones that would remain if the headline were cut to its core: “Generated by the pipeline”, “Complexity, simplified.”.
Do and don’t
Do
- Highlight the word that carries the point, at most once per page.
- Use it in Display and Heading only.
Don’t
- Don't highlight a whole headline or more than a few words.
- Don't use it in running text or for links; links are underlined, not coloured.
Anatomy
The parts of the component and what each one does, as in the playground above.
- labelInline span in accent.default; on ink the lighter terracotta, on terracotta white.
Examples
Type-checked, and the same code goes into the AI manifest. Import: import { Highlight } from "@/ds";
In a heading
Generated by the pipeline
In a display headline
Complexity, simplified.
Props
Checked against the component's TypeScript type on every build.
| Name | Type | Default | Description |
|---|---|---|---|
| children (required) | ReactNode | – | The word or words that carry the point. |
Tokens used
Derived from the utility classes in the component's source. Copy a class with one click.
| Token | Tier | Value | Utility |
|---|---|---|---|
| accent.default | semantic | #C6492E |
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
- Colour only, no change in meaning: the headline reads the same without it.
- accent.default reaches 4.5:1 on page and card; inside surface modes the mode's accent applies.