Skip to content
Browse blocks

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

Used forHardware and roboticsArchitecture practicesPremium and luxury brandsDeveloper tools with a strong name

Install with the shadcn CLI

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

Registered the namespace? Then it’s shadcn add @hairline/monolith-footer. Set it up

Templates

Need the whole page?

63 Next.js landing pages, each designed from scratch. Try any of them live; one is $39, all of them $159, and 8 are free.

All 63 templates

Where it’s used

  • 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.

What it handles for you

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.

Instead of wiring upa rendered wordmark imagea 3D model and its viewera link grida footer video
  1. 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.

  2. Soft cast shadow

    Each letter throws a shadow away from the light, dithered so it falls off smoothly instead of in steps.

  3. A light that answers

    It drifts when left alone, follows the pointer, and swings to the column being read, by mouse or keyboard.

  4. Metal or stone

    Brushed metal on a dark plate, pale stone on a light one; `accent` (any token) tints the rim of the light.

  5. Your font

    The relief is cut from the font the footer inherits and fitted to its width.

  6. Sleeps when hidden

    Draws only while on screen and in a visible tab; one still frame under reduced motion.

Overview

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.

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.

Usage

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.

example.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

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"
"auto" | "dark"
"auto" follows the theme; "dark" keeps a dark plate on light pages too.
accent= "var(--chart-2)"
string
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.

Accessibility and motion

  • 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.

Requirements

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

Source

"use client";import * as React from "react";import { FooterCaption, FooterLockup, FooterNav, plateColors, resolveColor, type FooterColumn, type FooterLink } from "./footer-parts";import { createMonolithRenderer, readMonolithRgb, type MonolithRenderer, type Rgb } from "./monolith-gl";import { useInteractionReducedMotion } from "./ui-interaction-motion";/* * A footer with the brand's name machined into its foot as a relief: bevelled letters * standing proud of the plate, casting real shadows. One light rakes across them; it * drifts on its own, follows the pointer, and swings to the column you're reading. */export type MonolithLink = FooterLink;export type MonolithColumn = FooterColumn;export interface MonolithFooterProps {  /** Brand name: shown in the lockup and machined in relief across the foot. */  wordmark: string;  /** Optional logo beside the name. */  logo?: React.ReactNode;  /** One short line about the product. */  tagline?: string;  /** A contact link under the tagline, e.g. an email address. */  contact?: MonolithLink;  /** Link columns. */  columns?: MonolithColumn[];  /** "auto" follows the theme; "dark" keeps a dark plate on light pages too. */  tone?: "auto" | "dark";  /** The colour of the light's rim on the letters. Any CSS colour or token. Defaults to `var(--chart-2)`. */  accent?: string;  /** Copyright line. */  legal?: string;  /** Small links beside the copyright. */  legalLinks?: MonolithLink[];  className?: string;}const NO_COLUMNS: MonolithColumn[] = [];const NO_LINKS: MonolithLink[] = [];const DEFAULT_ACCENT = "var(--chart-2, var(--primary))";function DefaultMark() {  return (    <svg viewBox="0 0 26 26" className="size-[26px] shrink-0" aria-hidden="true">      <rect x="0.5" y="0.5" width="25" height="25" rx="6.5" fill="color-mix(in oklab, currentColor 7%, transparent)" stroke="color-mix(in oklab, currentColor 22%, transparent)" />      <path d="M8 18V8h10v10Z" fill="color-mix(in oklab, currentColor 16%, transparent)" />      <path d="M8 8h10l-2.6 2.6H10.6Z" fill="currentColor" opacity="0.9" />      <path d="M8 8l2.6 2.6v4.8L8 18Z" fill="var(--fp-accent)" />    </svg>  );}function drawReliefMask(ctx: CanvasRenderingContext2D, word: string, w: number, h: number, bayTop: number, bayH: number, dpr: number, family: string) {  // Opaque black ground: a transparent canvas is stored premultiplied, and WebGL would lift every  // faint pixel of the blurred height to full strength, flattening the bevel.  ctx.globalCompositeOperation = "source-over";  ctx.fillStyle = "#000";  ctx.fillRect(0, 0, w, h);  const label = word.trim() || "Monolith";  const setFont = (size: number) => {    ctx.font = `750 ${size}px ${family}`;    if ("letterSpacing" in ctx) {      (ctx as CanvasRenderingContext2D & { letterSpacing: string }).letterSpacing = `${(-0.045 * size).toFixed(2)}px`;    }  };  setFont(100);  const m = ctx.measureText(label);  const hRatio = (m.actualBoundingBoxAscent + m.actualBoundingBoxDescent) / 100 || 0.72;  const size = Math.max(24, Math.min((w * 0.9) / Math.max(0.5, m.width / 100), (bayH * 0.76) / hRatio));  setFont(size);  ctx.textAlign = "center";  ctx.textBaseline = "middle";  const cx = w * 0.5;  const cy = bayTop + bayH * 0.52;  ctx.save();  // The blur is the chamfer: about 4% of the letter size.  ctx.filter = `blur(${Math.max(3, Math.round(size * 0.04))}px)`;  ctx.fillStyle = "rgb(0, 255, 0)";  ctx.fillText(label, cx, cy);  ctx.restore();  ctx.save();  ctx.globalCompositeOperation = "lighter";  ctx.fillStyle = "rgb(255, 0, 0)";  ctx.fillText(label, cx, cy);  ctx.restore();}export function MonolithFooter({  wordmark,  logo,  tagline,  contact,  columns = NO_COLUMNS,  tone = "auto",  accent = DEFAULT_ACCENT,  legal,  legalLinks = NO_LINKS,  className = "",}: MonolithFooterProps) {  const reduced = useInteractionReducedMotion();  const plateRef = React.useRef<HTMLDivElement>(null);  const canvasRef = React.useRef<HTMLCanvasElement>(null);  const bayRef = React.useRef<HTMLDivElement>(null);  const targetLightRef = React.useRef({ x: 0.5, y: 0.65, active: false });  React.useEffect(() => {    const plate = plateRef.current;    const canvas = canvasRef.current;    const bay = bayRef.current;    if (!plate || !canvas || !bay) return;    let renderer: MonolithRenderer | null = null;    try {      renderer = createMonolithRenderer(canvas);    } catch {      renderer = null;    }    if (!renderer) return;    const gl = renderer;    let raf = 0;    let visible = false;    let hidden = document.hidden;    let disposed = false;    let revealStart = -1;    let born = performance.now();    let lx = 0.5;    let ly = 0.65;    let lActive = 0;    const readColors = (): [Rgb, Rgb, Rgb, boolean] => {      const css = getComputedStyle(plate);      const paper = readMonolithRgb(css.backgroundColor, [0.065, 0.063, 0.06]);      const fg = readMonolithRgb(css.color, [0.94, 0.93, 0.91]);      const lum = 0.2126 * paper[0] + 0.7152 * paper[1] + 0.0722 * paper[2];      const isDark = tone === "dark" || lum < 0.42;      const accentRgb = readMonolithRgb(resolveColor(plate, "var(--fp-accent)"), isDark ? [0.84, 0.58, 0.36] : [0.58, 0.38, 0.21]);      return [paper, fg, accentRgb, isDark];    };    const measure = () => {      if (disposed) return;      const box = plate.getBoundingClientRect();      const bRect = bay.getBoundingClientRect();      const w = Math.max(1, box.width);      const h = Math.max(1, box.height);      const dpr = Math.min(window.devicePixelRatio || 1, 1.75);      const W = Math.round(w * dpr);      const H = Math.round(h * dpr);      const topFrac = Math.max(0.05, Math.min(0.92, (bRect.top - box.top) / h));      gl.layout(W, H, dpr, topFrac);      const mask = document.createElement("canvas");      mask.width = W;      mask.height = H;      const mctx = mask.getContext("2d");      if (mctx) {        const family = getComputedStyle(plate).fontFamily || "system-ui, sans-serif";        drawReliefMask(mctx, wordmark, W, H, (bRect.top - box.top) * dpr, bRect.height * dpr, dpr, family);        gl.mask(mask);      }      gl.colors(...readColors());      if (reduced) gl.draw(0.8, 1, 0.58, topFrac + 0.16, 1);    };    const frame = (now: number) => {      raf = 0;      if (disposed || !visible || hidden || reduced) return;      if (revealStart < 0) revealStart = now;      const reveal = 1 - Math.pow(1 - Math.min(1, (now - revealStart) / 1100), 3);      const t = (now - born) / 1000;      const tgt = targetLightRef.current;      lActive += ((tgt.active ? 1 : 0) - lActive) * 0.08;      if (tgt.active) {        lx += (tgt.x - lx) * 0.12;        ly += (tgt.y - ly) * 0.12;      }      gl.draw(t, reveal, lx, ly, lActive);      raf = requestAnimationFrame(frame);    };    const kick = () => {      if (!raf && visible && !hidden && !reduced && !disposed) raf = requestAnimationFrame(frame);    };    const start = () => {      if (disposed) return;      born = performance.now();      measure();      plate.dataset.ready = "";      kick();    };    if (document.fonts?.status === "loaded") start();    else document.fonts.ready.then(start, start);    const ro = new ResizeObserver(() => !disposed && plate.dataset.ready !== undefined && measure());    ro.observe(plate);    const io = new IntersectionObserver(      ([entry]) => {        visible = entry.isIntersecting;        if (visible && reduced) gl.draw(0.8, 1, 0.58, 0.68, 1);        else kick();      },      { threshold: 0.12 },    );    io.observe(plate);    const onVis = () => {      hidden = document.hidden;      if (!hidden) kick();    };    document.addEventListener("visibilitychange", onVis);    const mo = new MutationObserver(() => {      gl.colors(...readColors());      if (reduced) gl.draw(0.8, 1, 0.58, 0.68, 1);    });    mo.observe(document.documentElement, { attributes: true, attributeFilter: ["class", "style", "data-theme"] });    const onMove = (e: PointerEvent) => {      if (reduced || e.pointerType === "touch") return;      const r = plate.getBoundingClientRect();      targetLightRef.current = {        x: Math.max(0, Math.min(1, (e.clientX - r.left) / Math.max(1, r.width))),        y: Math.max(0, Math.min(1, (e.clientY - r.top) / Math.max(1, r.height))),        active: true,      };    };    const onLeave = () => {      targetLightRef.current = { ...targetLightRef.current, active: false };    };    plate.addEventListener("pointermove", onMove);    plate.addEventListener("pointerleave", onLeave);    return () => {      disposed = true;      cancelAnimationFrame(raf);      raf = 0;      ro.disconnect();      io.disconnect();      mo.disconnect();      document.removeEventListener("visibilitychange", onVis);      plate.removeEventListener("pointermove", onMove);      plate.removeEventListener("pointerleave", onLeave);      gl.dispose();      delete plate.dataset.ready;    };  }, [wordmark, tone, accent, reduced]);  const aimColumn = (el: HTMLElement | null) => {    const plate = plateRef.current;    if (!plate || reduced) return;    if (!el) {      targetLightRef.current = { ...targetLightRef.current, active: false };      return;    }    const pr = plate.getBoundingClientRect();    const er = el.getBoundingClientRect();    targetLightRef.current = {      x: Math.max(0, Math.min(1, (er.left + er.width * 0.5 - pr.left) / Math.max(1, pr.width))),      y: 0.62,      active: true,    };  };  return (    <footer className={`w-full max-w-[1200px] ${className}`}>      <div aria-hidden="true" data-natural-width className="grid h-0" style={{ gridTemplateColumns: "minmax(0, 1200px)" }} />      <div className="@container w-full">        <div ref={plateRef} className="group/plate relative isolate touch-pan-y overflow-clip rounded-[28px]" style={plateColors(tone === "dark", accent)}>          <canvas            ref={canvasRef}            aria-hidden="true"            className="pointer-events-none absolute inset-0 -z-10 size-full opacity-0 transition-opacity duration-700 group-data-[ready]/plate:opacity-100"          />          <div className="grid grid-cols-1 gap-x-10 gap-y-9 px-[max(20px,5cqi)] pt-[clamp(28px,4.5cqi,56px)] @[700px]:grid-cols-[minmax(0,1fr)_auto]">            <FooterLockup logo={logo ?? <DefaultMark />} name={wordmark} tagline={tagline} contact={contact} />            <FooterNav columns={columns} onAim={aimColumn} />          </div>          {/* The relief. Until WebGL is ready, and without it, the name shows as faint type. */}          <div ref={bayRef} aria-hidden="true" className="relative mt-[clamp(16px,3.5cqi,44px)] h-[clamp(150px,23cqi,290px)] w-full select-none">            <p className="absolute inset-0 flex items-center justify-center text-[16cqi] font-bold tracking-[-0.045em] opacity-15 transition-opacity duration-700 group-data-[ready]/plate:opacity-0">              {wordmark}            </p>          </div>          <FooterCaption legal={legal} links={legalLinks} className="relative px-[max(20px,5cqi)] pb-[clamp(18px,2.4cqi,26px)] pt-2 text-[color:var(--fp-muted)]" />        </div>      </div>    </footer>  );}

Registry item: /r/monolith-footer.json