Full-Width Ink Button
Rectangular near-black (#0f0e12) block, no radius, with centered light white lowercase label at 26px.
Rebuilt from teenage.engineering/newsletter in the Embossed Lab Monochrome style.
npx shadcn@latest add https://justyoink.it/r/embossed-lab-monochrome/blocks/solid-block-button.json
Looks exactly like teenage.engineering: brings its fonts and colours, namespaced so your own theme stays untouched.
npx shadcn@latest add https://justyoink.it/r/embossed-lab-monochrome/mine/solid-block-button.json
Restyled to your project: uses your shadcn colours, fonts and radius, so it matches the rest of your app. Layout, type sizes and motion stay as designed.
Usage
Props: label (string), onClick, type ("button" | "submit"), disabled. It fills its container's width; place it inside a form column to span the fields.
components/solid-block-button.tsx
import { useState } from "react"; export default function FullWidthInkButton({ label = "send message", onClick, type = "button", disabled = false, }: { label?: string; onClick?: () => void; type?: "button" | "submit"; disabled?: boolean; }) { const [count, setCount] = useState(0); return ( <div className="w-full max-w-[720px] mx-auto px-4 py-8 bg-canvas"> <button type={type} disabled={disabled} onClick={() => { setCount((c) => c + 1); onClick?.(); }} className="block w-full h-[74px] rounded-none bg-ink text-white font-sans font-light text-[26px] leading-none tracking-[-0.01em] lowercase text-center transition-[transform,opacity] duration-[250ms] ease-out hover:opacity-80 active:scale-[0.985] active:translate-y-px focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ink disabled:opacity-40 disabled:pointer-events-none motion-reduce:transition-none" > {label} </button> <p className="sr-only" aria-live="polite"> {count > 0 ? `Pressed ${count} times` : ""} </p> </div> ); }import { useState } from "react"; export default function FullWidthInkButton({ label = "send message", onClick, type = "button", disabled = false, }: { label?: string; onClick?: () => void; type?: "button" | "submit"; disabled?: boolean; }) { const [count, setCount] = useState(0); return ( <div className="w-full max-w-[720px] mx-auto px-4 py-8 bg-background"> <button type={type} disabled={disabled} onClick={() => { setCount((c) => c + 1); onClick?.(); }} className="block w-full h-[74px] rounded-none bg-foreground text-background font-mono font-light text-[26px] leading-none tracking-[-0.01em] lowercase text-center transition-[transform,opacity] duration-[250ms] ease-out hover:opacity-80 active:scale-[0.985] active:translate-y-px focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-foreground disabled:opacity-40 disabled:pointer-events-none motion-reduce:transition-none" > {label} </button> <p className="sr-only" aria-live="polite"> {count > 0 ? `Pressed ${count} times` : ""} </p> </div> ); }
Quality checks
Automated, in a real browser · today- Accessible: passedNo serious accessibility problems (axe-core): readable contrast, labelled buttons and images.
- Responsive: passedRenders at phone (390px), tablet (768px) and desktop width without sideways scrolling.
- Dark mode: passedStill readable when installed in your theme and switched to dark mode.
- Themeable: passedUses design tokens rather than hard-coded colours, so it follows your theme cleanly.
- Animates cleanly: doesn't applyDoesn't animate, so there's nothing to check.