Banner
Options
Basic usage
Visual states
Component colors
Gradients
Banners support named gradient backgrounds such as --gradient-sunrise and a matching gradient for every --color-* modifier, such as --gradient-celeste-lightest. Gradients use 165deg by default and accept the directional suffixes -to-right, -to-left, -to-top, and -to-bottom. Gradients pair particularly well with the --hero variant.
Indent
Small
Large
Links
To make the banner clickable, the following structure can be used:
Styles
Strong
Plain
Simple
Hero
WCAG text contrast
The results below use the normal-text threshold of 4.5:1 for AA.
Core styles
Plain banner
--plain
Plain strong banner
--plain --strong
Plain visual states
Alert banner
--alert
Warning banner
--warning
Success banner
--success
Info banner
--info
Examples
Website banner
User-console hero
Banner with buttons
Manifest
The component manifest describes this component's API: its modifiers, structure, data attributes, CSS custom properties, accessibility notes, and example markup. It is consumed by tooling such as AI assistants and code generators.
Latest version: https://assets.soracom.io/sds/3.45.0/ds-banner/manifest.json?v=3.45.0