Sections
All-AccessNewCanvasReuse-architecture studio in Tbilisi: a paint ladder through seven coats of its own entrance hall; choosing a step scrapes the wall back to that coat under a raking work lamp
Use Seven coats as the about section of a studio or a small company that tells its story in a few dated chapters: each chapter is a coat of paint on a ladder scraped down to the plaster, and choosing a step scrapes the whole wall back to that coat and sets its entry on it.
pnpm dlx shadcn@latest add @motionkit-pro/seven-coatsnpx shadcn@latest add @motionkit-pro/seven-coatsyarn dlx shadcn@latest add @motionkit-pro/seven-coatsbunx --bun shadcn@latest add @motionkit-pro/seven-coatsRequires an All-Access or Signature license and the @motionkit-pro registry with your token. See Installation.
The files land in components/sections/.
import { SevenCoats } from "@/components/sections/seven-coats"
export default function Page() {
return (
<SevenCoats
content={{
headline: (
<>
Four owners. <em>One door.</em>
</>
),
coats: [
{
id: "2021",
era: "2021",
title: "emulsion, white",
color: "#efebe2",
finish: "emulsion",
line: "Ours.",
text: "We moved in and painted the hall white.",
},
{
id: "1962",
era: "1962",
title: "oil, green",
color: "#2f5d46",
finish: "oil",
line: "The grocer's green.",
text: "A grocer kept the ground floor for forty years.",
},
],
cta: { label: "Visit the studio", href: "/visit" },
}}
onValueChange={(id) => track(id)}
/>
)
}defaultValue picks the coat shown first (the newest by default), friezeCoat the coat that
carries the stencilled frieze (the oldest by default).
Every text sits in one typed content prop; each key you pass replaces the default copy (a
reuse-architecture studio in Tbilisi and its entrance hall).
| Key | Type | Notes |
|---|---|---|
coats | { id, color, era, title, line, text, finish? }[] | Newest first, at most seven. color is any CSS colour, nudged to keep text AA. |
headline | ReactNode | The heading (h2); <em> sets the italic. |
facts | ReactNode | Engraved on the brass plate at the foot; null hides it. |
names | { plate, full }[] | Bell plates; full is read by assistive technology. |
mark | ReactNode | Small mark at the top of the wall; <b> sets the name. |
cta | { label, href } | null | The bell push. |
reassurance | ReactNode | Pencil line under the bell. |
group | string | Accessible name of the radio group. |
plaster | ReactNode | Caption of the plaster under the oldest coat. |
count | (n, total) => string | "Coat 3 of 7" beside each entry. |
crater | ReactNode | Pencil caption of the crater (crater variant). |
finish (distemper, oil, lime, emulsion) sets the brush relief the lamp rakes.
ladder (default): the stepped column on the left; the wall takes the chosen coat. Preview it
with ?demo=default.crater: the wall stays the top coat, the seven coats show as a sanded crater beside the text
and the steps are test windows. Preview it with ?demo=crater.frieze: the quiet one, only a band of the oldest coat with its stencil is uncovered. Preview it
with ?demo=frieze.Prop
Type
Every colour is a prop and takes any CSS colour: hex, RGB, HSL or OKLCH. ink is the text on
light coats, cream the text on dark coats, plaster the bare wall under the oldest coat, brass
the plates and the bell rose, porcelain the bell push, stencil the frieze paint (a darker shade
of its coat by default). The coats bring their own colours in content.coats.
<SevenCoats
colors={{
ink: "#2b2a33",
cream: "#f4f1e8",
plaster: "#dccbb4",
brass: "#c9a043",
porcelain: "#f7f5ef",
stencil: "#3d4f7a",
}}
/>use-prefers-reduced-motion, fx-glsl, fx-runtime, section-runtime.fieldset with a legend: the arrows move and select, Home and
End jump to the newest and the oldest coat.stack: the ladder lies across the top as seven 44 px strips, the copy follows. On touch screens
the lamp drifts across the wall on its own; vertical scroll is never blocked.
The wall cross-fades to the chosen coat without the scraped front or the flakes; the lamp stands still at the top left.
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.
—
The wall cross-fades to the chosen coat without the scraped front or the flakes; the lamp stands still at the top left.
No keyboard interaction of its own.
Last 2 versions of Chrome, Edge, Firefox and Safari (iOS 16.4+)