Description
scraps is a UI library in which every element looks like cut and torn paper. It is published on npm as scraps-ui and has zero dependencies. Each mount produces a fresh tear from seeded randomness, so the same seed gives the same paper on any machine. The site lets you type a seed to reproduce a page exactly. The components use real HTML inputs underneath, so form fields are ordinary inputs. The library includes scissor-cut buttons with colour options, text fields with paper stock choices, choice controls, range and progress elements, and overlays built on real dialog elements, where escape and focus behaviour come with the element. It also has feedback elements such as toasts and loading states. A dark stock option uses black construction paper, whose torn edge shows a white core, so the fringe outlines the shape. Setup is two files, a stylesheet and a script, and the markup is plain HTML with data-scrap attributes that set the look of each element. The source is on GitHub under og2701. It suits developers who want a playful, handmade style for a web interface and are happy with a library that has a distinct visual identity.…
Highlights
- Torn-paper look with a seeded, repeatable tear
- Zero dependencies, installed from npm as scraps-ui
- Real HTML inputs, dialogs and overlays underneath
- Two-file setup with data-scrap attributes in plain HTML
Ratings & Reviews
No ratings yet
Be the first to rate scraps-ui.
People also visit
scraps-ui FAQ
What is scraps?
A UI library where every element is styled as cut and torn paper.
How do I install it?
Install it from npm with npm i scraps-ui, then include the stylesheet and script in your page.
Why do the tears look the same every time?
Each mount draws its tears from seeded randomness, so the same seed gives identical paper on any machine.
Does it have dependencies?
No. The page says the library has zero dependencies.
What are the best scraps-ui alternatives?
Popular alternatives to scraps-ui include junwen-k/ui-x, @json-render/shadcn and shadcn/ui. See all scraps-ui alternatives






