Components
Components from this site, published as a shadcn registry. Install them with the shadcn CLI and make them yours.
Every component is free and open source under the MIT license. The code lands in your project, so change anything you like.
Installation
You need a project set up for shadcn (run shadcn init first). Then add any component by its URL.
npx shadcn@latest add https://jiaweing.com/r/print-button.jsonUse the namespace
Add the registry to your components.json once, then install by name.
{
"registries": {
"@jiaweing": "https://jiaweing.com/r/{name}.json"
}
}npx shadcn@latest add @jiaweing/print-buttonPrint Button
A screen-printed button with an ink outline, a hard offset shadow and a spot ink fill. Lifts on hover and presses flat on click.
Print Card
A screen-printed card on cream paper with an ink outline and a hard shadow, plus a tilted sticker tag.
Print Toast
Screen-printed toasts on top of sonner, with a spot ink badge and an optional action.
Motion
Tilt Card
A card that leans toward the pointer, with an optional holographic sheen that follows it.
Count Up
A number that counts up the first time it scrolls into view, with locale formatting and reduced motion support.
Stats Bento
A bento grid of numbers that spring up from zero when it scrolls into view. Tiles can span columns, rows or both.
Interface
Image Lightbox
A thumbnail that opens the full image with zoom buttons, wheel zoom and drag to pan.
Theme Toggle
One button that cycles system, light and dark, fading the page between themes where the browser supports view transitions.
Achievement Tracker
A counter that opens a list of hidden achievements with hints, a progress bar and a reward slot. Comes with a localStorage hook.