Sections
All-AccessNewCanvasAbout page of a shop-software company: a kolam drawn round the copy on the threshold stone; choosing a fact redraws the line around it
Use it as the about page of a company rooted in a place: a kolam drawn in rice flour on the threshold stone frames the headline and the facts, and choosing a fact redraws the outline around it.
pnpm dlx shadcn@latest add @motionkit-pro/pullinpx shadcn@latest add @motionkit-pro/pulliyarn dlx shadcn@latest add @motionkit-pro/pullibunx --bun shadcn@latest add @motionkit-pro/pulliRequires an All-Access or Signature license and the @motionkit-pro registry with your token. See Installation.
The files land in components/sections/.
import { Pulli } from "@/components/sections/pulli"
export default function Page() {
return (
<Pulli
content={{
kicker: "About us · City",
title: "We start again every morning.",
lede: "Who you are and who you serve, in two sentences.",
facts: [
{
id: "year",
figure: "2016",
label: "the year we started",
detail: <p>How it began.</p>,
signature: "A founder",
},
{
id: "team",
figure: "41",
label: "people",
detail: <p>Who we are.</p>,
signature: "Someone on the team",
},
],
doorName: "Brand",
doorNumber: "14",
nav: [
{ label: "Product", href: "/product" },
{ label: "About us", href: "/about", current: true },
],
}}
/>
)
}defaultFact picks the fact open first and onFactChange reports the choice. Fonts come from
--pl-display, --pl-sans and --pl-mono.
sikku (default): one unbroken looping line round the copy. Preview it with ?demo=default.pulli: flour heaps joined by straight strokes, lighter. Preview it with ?demo=pulli.kaavi: a pale stone with the whole line in red ochre (its default stone and kaavi are lighter
and deeper). Preview it with ?demo=kaavi.Every text, button names included, lives in one typed content prop; keys you leave out keep the demo copy shown above.
<Pulli content={{ title: "Your title" }} />| Key | Type | Notes |
|---|---|---|
facts | { id, figure, label, detail, signature }[] | One tab each; the kolam frames the chosen one. |
kicker, title, lede | ReactNode | Use <em> in the title for the italic emphasis. |
factsLabel | string | Accessible name of the facts. |
doorName, doorNumber, doorNote | ReactNode | The brass house plate. |
nav, navLabel | { label, href, current? }[], string | Sign-painted on the door. |
Prop
Type
Every colour is a prop and takes any CSS colour: hex, RGB, HSL or OKLCH.
<Pulli
colors={{
stone: "#3c2c27",
flour: "#ebf3fa",
kaavi: "#008c7d",
turmeric: "#67d3ff",
door: "#79455e",
brass: "#5db0d8",
cream: "#e6f0f8",
ink: "#2c1a14",
}}
/>use-prefers-reduced-motion, fx-runtime, section-runtime.stack: columns stack, text first. Vertical scroll is never blocked.
The kolam lies finished on the stone around every block; choosing a fact moves the red outline to it at once, without the drawing hand.
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 kolam lies finished on the stone around every block; choosing a fact moves the red outline to it at once, without the drawing hand.
No keyboard interaction of its own.
Last 2 versions of Chrome, Edge, Firefox and Safari (iOS 16.4+)