# Monolith footer

> A footer with your name machined into its foot as raised letters: bevelled, lit by one moving light, casting real shadows.

A big name at the bottom of a site is usually flat type, or a 3D render that never moves. Here the name stands proud of the plate as a relief, drawn live in WebGL from your own font: flat faces, a bevelled edge on every letter, and a soft shadow on the plate. One light rakes across it. It drifts on its own, follows the pointer, and swings to whichever link column you are reading, so the bevels facing it flare and the far ones fall into shade. On a dark plate the letters read as brushed metal; on a light one, as pale stone.

## Install

```bash
npx shadcn@latest add https://hairlineui.com/r/monolith-footer.json
```

Needs React 19, Tailwind CSS v4 and shadcn/ui theme variables (any style, light and dark). Icons from lucide-react.

- npm: none
- Hairline UI components it needs (the CLI installs them too): none
- Docs and live preview: https://hairlineui.com/blocks/monolith-footer
- Registry item (source): https://hairlineui.com/r/monolith-footer.json

## Usage

```tsx
import { MonolithFooter } from "@/components/monolith-footer";

<MonolithFooter
  wordmark="Kern"
  tagline="Servo motors and drives for robot arms."
  contact={{ label: "sales@kern.tech", href: "mailto:sales@kern.tech" }}
  columns={[{ title: "Products", links: [{ label: "Servo motors", href: "/motors" }] }]}
  legal="© 2026 Kern Motion GmbH"
/>
```

## At the end of your layout

Put it last in the layout. Short names read best in relief; pass `tone="dark"` for metal on a light page, and `accent` to tint the light.

```tsx
import { MonolithFooter } from "@/components/monolith-footer";

export function SiteFooter() {
  return (
    <div className="mx-auto max-w-[1240px] p-4">
      <MonolithFooter
        wordmark="Kern"
        tone="dark"
        tagline="Servo motors and drives for robot arms, tested for ten thousand hours before they ship."
        contact={{ label: "sales@kern.tech", href: "mailto:sales@kern.tech" }}
        columns={[
          { title: "Products", links: [{ label: "Servo motors", href: "/motors" }, { label: "Drives", href: "/drives" }, { label: "CAD files", href: "/cad" }] },
          { title: "Company", links: [{ label: "About", href: "/about" }, { label: "Careers", href: "/careers" }] },
          { title: "Support", links: [{ label: "Manuals", href: "/manuals" }, { label: "Warranty", href: "/warranty" }] },
        ]}
        legal="© 2026 Kern Motion GmbH"
        legalLinks={[{ label: "Privacy", href: "/privacy" }, { label: "Terms", href: "/terms" }]}
      />
    </div>
  );
}
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `wordmark` | `string` | – | Brand name: shown in the lockup and machined in relief across the foot. |
| `logo` | `ReactNode` | – | Optional logo beside the name. |
| `tagline` | `string` | – | One short line about the product. |
| `contact` | `{ label: string; href: string }` | – | A contact link under the tagline, e.g. an email address. |
| `columns` | `{ title: string; links: { label: string; href: string }[] }[]` | `[]` | Link columns; reading one swings the light under it. |
| `tone` | `"auto" \| "dark"` | `"auto"` | "auto" follows the theme; "dark" keeps a dark plate on light pages too. |
| `accent` | `string` | `"var(--chart-2)"` | The colour of the light on the letters' rims: any CSS colour or token. |
| `legal` | `string` | – | Copyright line. |
| `legalLinks` | `{ label: string; href: string }[]` | `[]` | Small links beside the copyright. |

## States

- **arrival**: When the footer comes into view the light sweeps in from the left over about 1.1s and the shadows fall into place.
- **drift**: Left alone, the light wanders slowly over the letters; the bevels and shadows turn with it.
- **pointer**: The light eases toward the pointer.
- **column**: Hovering or tabbing into a link column swings the light under that column.
- **no WebGL**: The name shows as faint type in the relief area, and the links work as normal.
- **reduced motion**: One finished frame with the light at rest; nothing moves.

## What it handles

Relief lettering is usually a baked image that ignores the theme and never moves. This one is drawn from live type in one shader, in your colours, with a light you can move.

- **Real relief**: A height field from the type gives every letter flat faces and a bevel about 4% of its size, shaded by one light.
- **Soft cast shadow**: Each letter throws a shadow away from the light, dithered so it falls off smoothly instead of in steps.
- **A light that answers**: It drifts when left alone, follows the pointer, and swings to the column being read, by mouse or keyboard.
- **Metal or stone**: Brushed metal on a dark plate, pale stone on a light one; `accent` (any token) tints the rim of the light.
- **Your font**: The relief is cut from the font the footer inherits and fitted to its width.
- **Sleeps when hidden**: Draws only while on screen and in a visible tab; one still frame under reduced motion.

## Replaces

a rendered wordmark image, a 3D model and its viewer, a link grid, a footer video

## Where it fits

- **Hardware and robotics**: A name that looks machined, for products that are.
- **Architecture practices**: Lettering cut in stone under a moving light.
- **Premium and luxury brands**: Weight at the foot of the page without a photo shoot.
- **Developer tools with a strong name**: A sign-off people stop to move the light across.

## Notes

- The links are a labelled nav of plain anchors with focus rings; the relief canvas is hidden from screen readers.
- One WebGL 1 shader: the name is a texture drawn from your font, sharp for the faces and blurred as a height field for the bevels.
- Without WebGL the name shows as faint type and everything else works.
- Pauses off screen and in hidden tabs; one still frame under prefers-reduced-motion.

License: MIT (https://hairlineui.com/license#components)
