Sections
All-AccessNewCanvasSoil-carbon footer as the cut face of a soil pit; the hand is water and roots grow round the copy toward it
Use Pit Face as the footer of a farm, food, land or climate business: the footer is a soil pit cut down to a metre, links in the topsoil, the newsletter in the clay, legal on the parent material, and roots grow toward the hand.
pnpm dlx shadcn@latest add @motionkit-pro/pit-facenpx shadcn@latest add @motionkit-pro/pit-faceyarn dlx shadcn@latest add @motionkit-pro/pit-facebunx --bun shadcn@latest add @motionkit-pro/pit-faceRequires an All-Access or Signature license and the @motionkit-pro registry with your token. See Installation.
The files land in components/sections/.
import { PitFace } from "@/components/sections/pit-face"
export default function Footer() {
return (
<PitFace
onSubscribe={async (email) => {
await fetch("/api/subscribe", { method: "POST", body: email })
}}
content={{
groups: [
{ title: "Product", links: [{ label: "How it works", href: "/how" }] },
{ title: "Company", links: [{ label: "Contact", href: "/contact" }] },
],
closing: (
<>
Grown from <em>the ground up.</em>
</>
),
contact: { label: "Office", lines: ["1 Farm Road", "Ballarat VIC 3350"] },
legal: "© 2026 Your company",
legalLinks: [{ label: "Privacy", href: "/privacy" }],
}}
/>
)
}Every text sits in one typed content prop; each key you pass replaces the default copy (a soil
carbon lab in Victoria).
| Key | Type | Notes |
|---|---|---|
groups | { title, links: { label, href }[] }[] | Set in the topsoil; three read best. |
closing | ReactNode | The large line at the right of the topsoil; null hides it. |
lede | ReactNode | Under the closing line. |
newsletter | { title, label?, placeholder?, button?, reassurance?, invalidMessage?, successMessage?, errorMessage? } | The core sample label and the red end cap (submit). |
contact | { label?, lines, phone?, note? } | null | The address block in the clay. |
legal | ReactNode | Legal line in the parent material. |
legalLinks | { label, href }[] | Links after the legal line. |
legalLabel | string | Accessible name of the legal links. |
surface | string | Back-to-top link at the tape's 0 (topHref). |
capMark | string | Moulded round the end cap (decorative). |
horizons sets the soil data printed on each tag ({ code, from, to, munsell, carbon } per band
a, e, b, c; e: null removes the pale band). onSubscribe receives a valid address; a
rejection shows errorMessage. seed changes stubble, grit, pebbles and roots.
red-earth (default): dark topsoil, a pale eluvial band, red clay. Preview it with
?demo=default.black-earth: a deep black topsoil and no pale band. Preview it with ?demo=black-earth.dry: a paler, drier face; the hand opens cracks instead of growing roots. Preview it with
?demo=dry.Prop
Type
Every colour is a prop and takes any CSS colour: hex, RGB, HSL or OKLCH. Each variant has its own
soil palette; the colours you pass replace only those keys. topsoil, eluvial, subsoil and
parent are the four horizons, straw the stubble, root the roots, mottle and ironstone the
marks in the clay (ironstone also tints every shadow), tape the pit tape, paper the tags and
the sample label, cream and ink the light and dark type, cap the submit cap.
<PitFace
colors={{
topsoil: "#3b2a1e",
eluvial: "#d2c3a6",
subsoil: "#8d3f22",
parent: "#bcd0de",
straw: "#ecd57a",
root: "#f1e8cf",
mottle: "#b48d55",
ironstone: "#2b1710",
tape: "#3a5a7c",
paper: "#f7f1e1",
cream: "#f7f0de",
ink: "#2a1d14",
cap: "#c23b22",
}}
/>use-prefers-reduced-motion, fx-runtime, section-runtime.cream and ink with the lightness
of each horizon. Canvases, roots and the tape are hidden from assistive technology.stack: the groups go two by two, the newsletter and the address stack, the tape narrows. On touch
screens roots grow slowly on their own along a wandering path; vertical scroll is never blocked.
One still soil face with its roots already grown; hovering or focusing a link shows its depth on the tape without motion, and a dry face shows no cracks opening.
pnpm size).Main spring of each temperament. Set it with the temperament prop or MotionKitProvider; the default is lively.
Not measured yet · budget 16.0 kB gzip
Component and MotionKit helpers; excludes react, react-dom.
—
One still soil face with its roots already grown; hovering or focusing a link shows its depth on the tape without motion, and a dry face shows no cracks opening.
No keyboard interaction of its own.
Last 2 versions of Chrome, Edge, Firefox and Safari (iOS 16.4+)