Overlays & feedback / Spinners & loaders
Thin Rotating Loader
Simple rotating element for loading states, monochrome on light surface.
Rebuilt from teenage.engineering in the Embossed Lab Monochrome style.
npx shadcn@latest add https://justyoink.it/r/embossed-lab-monochrome/blocks/loading-spinner.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/loading-spinner.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 (main text), caption (secondary text) and size (spinner diameter in px). The thin ring rotates continuously via animate-spin-load and stops for reduced-motion users.
components/loading-spinner.tsx
export default function ThinRotatingLoader({ label = "loading", caption = "preparing your next door", size = 72 }: { label?: string; caption?: string; size?: number }) { return ( <div className="flex min-h-[320px] w-full items-center justify-center bg-tile p-8 font-sans"> <div role="status" aria-live="polite" className="flex flex-col items-center gap-6 rounded-soft bg-clay-sheen p-10 shadow-emboss-relief"> <svg width={size} height={size} viewBox="0 0 48 48" fill="none" aria-hidden="true" className="animate-spin-load motion-reduce:animate-none text-ink" > <circle cx="24" cy="24" r="20" stroke="currentColor" strokeOpacity="0.15" strokeWidth="1" /> <path d="M24 4a20 20 0 0 1 20 20" stroke="currentColor" strokeWidth="1" strokeLinecap="round" /> <circle cx="24" cy="24" r="2" fill="currentColor" fillOpacity="0.35" /> </svg> <div className="flex flex-col items-center gap-1 text-center"> <span className="text-body text-ink lowercase">{label}</span> <span className="text-caption text-muted lowercase">{caption}</span> </div> </div> </div> ); }export default function ThinRotatingLoader({ label = "loading", caption = "preparing your next door", size = 72 }: { label?: string; caption?: string; size?: number }) { return ( <div className="flex min-h-[320px] w-full items-center justify-center bg-foreground p-8 font-mono"> <div role="status" aria-live="polite" className="flex flex-col items-center gap-6 rounded-lg p-10 shadow-embossed-emboss-relief"> <svg width={size} height={size} viewBox="0 0 48 48" fill="none" aria-hidden="true" className="animate-embossed-spin-load motion-reduce:animate-none text-foreground" > <circle cx="24" cy="24" r="20" stroke="currentColor" strokeOpacity="0.15" strokeWidth="1" /> <path d="M24 4a20 20 0 0 1 20 20" stroke="currentColor" strokeWidth="1" strokeLinecap="round" /> <circle cx="24" cy="24" r="2" fill="currentColor" fillOpacity="0.35" /> </svg> <div className="flex flex-col items-center gap-1 text-center"> <span className="text-embossed-body text-foreground lowercase">{label}</span> <span className="text-embossed-caption text-muted-foreground lowercase">{caption}</span> </div> </div> </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: not passedElements must meet minimum color contrast ratio thresholds (1 element)
- Themeable: passedUses design tokens rather than hard-coded colours, so it follows your theme cleanly.
- Animates cleanly: passedIts animation plays and finishes with everything visible, and it stays still for people who turn on reduced motion.