Badge
Compact read-only status or category pill set by the system.
A restrained, token-based gradient fill for one rare heading (a docs hero, an empty-state title). Real text, never an image; no motion.
A restrained, token-based gradient fill for one rare heading (a docs hero, an empty-state title). Real text, never an image. No motion.
The default ink tone on one heading. Both ends of the gradient keep 4.5:1 against the surface. Variants shows brand and inverse.
One heading per view, on a hero or empty state. ink runs text.fg to the brand colour; brand runs the brand colour to primary.fg. Use inverse on surface.inverse. Under forced colours, or where background-clip: text is missing, it is solid text.fg. It does not animate.
import { GradientText } from "agentic-ds-kit";From contracts/gradienttext.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.
| Name | Type | Required | Default | Notes |
|---|---|---|---|---|
| children | node | Yes | — | — |
| as | h1 | h2 | h3 | span | No | h2 | — |
| tone | ink | brand | No | ink | ink: text.fg → text.brand; brand: text.brand → primary.fg. Paper's overlay (brand → violet) waits for the violet role decision. |
| inverse | boolean | No | false | On surface.inverse: bg.canvas → info line. |