Brand field
An embossed slanted pixel with faint construction lines fading into the surrounding surface.
Demo
Usage
import { BrandField } from '@tuttn/slant'
// A quiet closing surface, using the current theme.
<BrandField />
// Keep only the embossed pixel.
<BrandField guides={false} />
// Quiet Mark: a charcoal field with a larger mark.
<BrandField className="quiet-mark" />
.quiet-mark {
--sl-bg: #111113;
--sl-text: #f1f1f3;
--sl-brand-field-height: 28rem;
--sl-brand-field-mark-size: 80px;
}
// Only name the artwork when the image itself matters to the page.
<BrandField label="An embossed Slant pixel and its construction lines" />Props
| Prop | Type | Default | Description |
|---|---|---|---|
guides | boolean | true | Faint construction lines extending from the centre mark. |
label | string | — | Names the artwork as an image; omitted, it is hidden decoration. |
…rest | Omit<HTMLAttributes<HTMLDivElement>, 'children'> | — | className, style, attributes and the ref go on the root div. Keep page content in sibling elements. |
Accessibility
- Decorative and aria-hidden by default; label gives the artwork role="img" and an accessible name.
- No keyboard interaction or automatic motion. Keep interactive content outside the decorative field.
A quiet closing surface
BrandField draws Slant's slanted pixel with faint horizontal, vertical and diagonal construction lines. Quiet Mark pairs it with a charcoal background. Use it beneath footer links, after a section, or as a standalone brand illustration. It is a separate decorative surface; headings and links belong beside it.
Colour and sizing
The field uses --sl-bg and --sl-text from its theme. Set them on the component for a custom surface. --sl-brand-field-height defaults to 24rem, and --sl-brand-field-mark-size defaults to 72px. A regular CSS height also works. On narrow screens the outer lines crop while the central mark keeps its size.
Guides and accessibility
Set guides={false} to show the embossed mark alone. The artwork is hidden from screen readers by default and contains no focusable elements. A label exposes it as a named image when needed.
Motion
The field is still: there is no pointer tracking, automatic animation or reduced-motion alternative to configure.