# Pattern

Unused placeholder type for the pixel pattern. Deprecated: scheduled for removal; do not add new ones.

## Screenshots

| Variant | Preview |
|---------|---------|
| Default | ![Default](../screenshots/components/pattern-default.png) |
| Navy | ![Navy](../screenshots/components/pattern-navy.png) |

Note: the screenshot is blank because the pattern borrows its colours from neighbouring blocks, which the showcase does not provide.

## What it looks like

This type has no shape of its own and draws nothing unless its internal label is "Archive pattern top" or "Archive pattern bottom", in which case it behaves as Pattern top or Pattern bottom.

## Typography

No text. The block is decorative and hidden from screen readers.

## Colours

The band takes the `backgroundColour` of the neighbouring block it runs into; the field takes the colour of the block on the other side. If a neighbour has no colour, the band uses the footer colour and the field is transparent (or uses this entry's own `backgroundColour`). `textColour` has no effect.

**Valid values for `backgroundColour`:** Navy, Dark Slate, Slate, Sea Glass, Cornflower, Ether, Mist, White, Graphite, Ink, Sky.

## Used fields

| Field | Type | Effect when set | Effect when empty/removed |
|-------|------|-----------------|---------------------------|
| `visual` | Media | Required for the block to draw; its image is not shown | Nothing is drawn |
| `backgroundColour` | Symbol | Fallback field colour when the neighbouring block has none | Transparent |
| `textColour` | Symbol | No visible effect | No visible effect |
| `anchor` | Symbol | In-page link target | No anchor |
| `cmsLabel` | Symbol | Internal label; "Archive pattern top" or "Archive pattern bottom" also selects the shape | No visible effect |
| `componentType` | Symbol | Selects the shape | N/A |
| `id` | Symbol | Entry id for live preview | No visible effect |

## Behaviour

- **Neighbours:** colours come from the block before and after, so moving the block changes how it looks.
- **Height:** none; it draws nothing.
- **Cell size:** squares are 64px.

## Impact of content changes

| Change | Result |
|--------|--------|
| Remove `visual` | Nothing is drawn |
| Change a neighbour's `backgroundColour` | The band or field recolours to match |
| Move to the end of the page | Band takes the footer colour |
