Harbour rebrand
Identity, site and launch kit for the harbour trust.
A section with art behind it and light text on top.
Identity, site and launch kit for the harbour trust.
Soft
Strong
None
Painted as a CSS background
Square corners
Launch is 24 Oct. Here is where it stands.
Identity and site are in review; the launch kit ships next week.
Owner: Maya Chen.
| Prop | Type | Required | Default |
|---|---|---|---|
image | { src: string; alt?: string | undefined; } | Yes | — |
scrim | "strong" | "none" | "soft" | "start" | "custom" | undefined | No | soft |
rounded | boolean | undefined | No | false |
inset | boolean | undefined | No | true |
imageMode | "img" | "background" | undefined | No | img |
soft darkens lightly top to bottom, strong more, start is darker on the text side, none leaves the art alone. Set the colour with --rebar-backdrop-scrim-color; rounded gives an inset panel (--rebar-backdrop-section-radius). Use art at least as wide as the section.
The image is decorative by default (alt="", aria-hidden); pass image.alt only if it carries information. Check text contrast against the darkest scrim you can afford, not the average pixel.
data-rebar-component="backdrop-section", data-rebar-scrim and data-rebar-rounded on the root; data-rebar-part values image, scrim and content.
Not codemod-covered. Ant Design has no equivalent; this is a bespoke section.
inset={false} drops the section's own side margin (when rounded) and padding, so an app can lay it out full-bleed and pad it itself. Default true keeps the current spacing.
<BackdropSection image={{ src }} inset={false}>...</BackdropSection>imageMode="background" draws the art and the scrim as CSS background layers of the section itself (no <img>, no scrim element), so a rounded edge anti-aliases like a plain background; the art is decorative. Tokens: --rebar-backdrop-image-bg (the colour behind the art, default the inverse surface) and --rebar-backdrop-image-repeat (default no-repeat). Use scrim="custom" with --rebar-backdrop-scrim-background for the app gradient. Also: tertiary link Buttons honour --rebar-button-tertiary-color, classic primary Buttons --rebar-classic-button-bg, and Input has --rebar-input-invalid-border-color / -shadow / -focus-shadow.
Custom properties, set on the component or any ancestor. The default is what applies when one is unset. 3 of 9 were added in 1.1.0 and are marked.
| Property | Default | |
|---|---|---|
--rebar-backdrop-image | unset | 1.1 |
--rebar-backdrop-image-bg | var(--rebar-color-bg-inverse, #1e1e1e) | 1.1 |
--rebar-backdrop-image-repeat | no-repeat | 1.1 |
--rebar-backdrop-scrim-background | transparent | |
--rebar-backdrop-scrim-color | #000000 | |
--rebar-backdrop-section-content-padding | 0 | |
--rebar-backdrop-section-margin-inline | var(--rebar-space-md, 16px) | |
--rebar-backdrop-section-padding | var(--rebar-space-3xl, 64px) var(--rebar-space-lg, 24px) | |
--rebar-backdrop-section-radius | calc(var(--rebar-radius, 4px) * 8) |