UI design library, source code included

New designs

See all →
  1. Inner vs Outer Noshi Preview: see where the gift paper sits when the box arrives (React)A gift-wrapping preview that shows whether to put the noshi paper inside or outside the wrapping. Pick hand delivery or shipping and the occasion (year-end gift, New Year gift, return gift, thank-you, wedding gift) to get a recommendation, then drag one slider through wrap, arrive and open to see the layer order, what the recipient sees first and where the noshi appears when the box is opened. Shipping adds a sample delivery slip on top. The inscription is set vertically, the cord knot changes with the occasion, and you can switch the placement by hand. The state lives in the URL query so a shared link opens the same box. Includes a compact component (delivery, purpose, placement) to sit beside an order form. SVG and CSS custom properties only, no images.
  2. 3-Second Homepage Test — Missed vs. Missing on a Bakery HeroA 3-second first-view test for small-shop homepages. A fictional bakery hero is shown for three seconds and hidden, then three questions (signature item, nearest station, today's closing time) are judged as read, shown-but-missed, not shown ("couldn't find it" is a correct observation) or guessed — and the matching spot lights up on the page. Next, tap to find five fixes (headline, photo, feature row, hours band, button) with before/after and the reason. Copy a request message to run the same test with an acquaintance on your own homepage, copy the fixed hero as React code, and send a result line plus a quiz URL to X. Answers stay in the browser.
  3. · Year-in-Review Stories for Small Shops — Tap Through Six 9:16 Slides and Save Each as 1080×1920A builder for a 9:16 year-in-review story that a small shop can post at the end of the year. The sample is six slides for a fictional bakery: the cover, loaves baked (38,400), best seller, new items (12), busiest day (12/24) and a closing thank-you. Tap the right side or press → to advance, tap the left side to go back, and press and hold to pause. Thin progress lines fill one by one and each slide auto-advances after five seconds, with a toggle to stop. Numbers count up on entry. The first view shows only the shop-name field and the story; the six headings, numbers, units and notes live in a collapsed form. Everything you enter is stored in the URL hash, so the same link reopens the same recap. The current slide saves as a 1080×1920 PNG drawn from the same layout list as the on-screen slide, and you can copy a React (TSX) file with your data baked in. Auto-advance, count-up and fades stop under prefers-reduced-motion. No new dependencies.
  4. Scratch-to-Reveal Lucky Bag — Rub the Foil to Show Five Items and the Bag PriceA scratch-card style block for New Year lucky-bag (fukubukuro) product pages. A silver foil drawn on canvas covers five items (icon, name, list price) and their total; rubbing with a finger or mouse scratches it away. The scratched area is counted on an 8px grid, and past 60% the rest of the foil melts away in 300ms and a band shows "Total list price ¥12,000 → Lucky bag ¥5,500" with the saving. The contents are fixed (no lottery). A "Rub to see inside" hint and a "Show all" button sit on the foil, and Enter scratches one row at a time from the keyboard. Item names stay in the DOM, so screen readers can read them under the foil. A collapsed panel edits the five items, the bag price and the foil color (silver, gold, vermilion), and tabs copy the result as React (TSX) or dependency-free HTML+JS. It can also export a 1200×630 share image of the half-scratched card with the price masked. Reduced motion skips the melt. No dependencies.

147 designs · 24 shown

Split Hero

A corporate-site hero: copy, two CTAs, and stats on the left; a pure-CSS browser-window site preview on the right. No image assets required.

PagesPGE-01

Editorial Display-Type Hero

An editorial hero built around an oversized serif display line on white. A cascading blurred-bar motif, a vertical scroll indicator, and an underline-wipe text CTA create premium negative space with zero image assets. Optional Lenis smooth scrolling via the smoothScroll prop.

PagesPGE-02

Full-bleed Visual Hero

A full-bleed hero whose key visual is split into a 4x3 tile grid that lands back into one seamless photograph. A white scrim keeps Japanese copy legible, and a hairline rule groups the summary items instead of cards. The reveal is pure CSS @keyframes with animation-fill-mode: backwards, so it needs no JS and falls back to the finished state on SSR and under reduced motion. Swap the text-free background KV via the imageSrc prop.

PagesPGE-03

Canvas Particle Hero (Grid + Spring Physics)

A hero whose Canvas 2D particles sit on a measured grid rather than at random: the pointer repels them and a spring with damping pulls them home, so order dissolves and reforms in a way that echoes the gallery's dotted specimen grid. Particles near the pointer shift to amber (#d97706). Velocity and damping are normalised by delta time so 120Hz displays don't run double speed, and the rAF loop stops on three conditions — prefers-reduced-motion, off-screen (IntersectionObserver) and hidden tab. After a pause, a Lissajous virtual pointer takes over so the effect still reads on touch devices. No dependencies, no image assets.

PagesPGE-04

Liquid Glass Hero Background (WebGL refraction + melt)

A hero whose background is a single full-screen triangle rendered by one fragment shader: blobs of refracting glass over the gallery's dotted specimen grid. No 3D library — plain WebGL with GLSL ES 1.00, so the same shader runs on both webgl2 and webgl contexts and the dependency list stays empty. The grid and the amber diagonal band are drawn procedurally inside the shader rather than sampled from a texture, and refraction is simply re-sampling that function offset along the surface normal, with chromatic dispersion at 1.035 / 1.00 / 0.965 per channel. The blobs are circle SDFs combined with a polynomial smooth-minimum, so they neck and melt into one another as they approach, and modulating the viscosity over time makes the field breathe. The pointer acts as a sixth blob; after a pause a Lissajous virtual pointer takes over so the effect reads on touch devices. Low-end hardware is handled by a two-step resolution drop — if the mean frame time over the first 48 frames exceeds 32ms the backing store falls to 0.6x, and if it still does the loop stops and a static CSS gradient takes its place. Under prefers-reduced-motion the same shader paints one frozen frame instead of animating, and rendering also stops off-screen (IntersectionObserver) and on hidden tabs. webglcontextlost is always caught with preventDefault, and unmounting releases the GPU resources via WEBGL_lose_context. All copy, colour and composition are original; no image assets.

PagesPGE-05

three.js 3D Hero | metal, ceramic & glass PBR switcher (no model files)

A three.js 3D hero that needs no model files and no texture images. Three specimens — polished metal, glazed ceramic and amber glass — are switched with buttons, and "Compare all 3" lines them up under the same light and the same lens. Behind the glass stands a backdrop of hairlines and type, so you can see lines and letters bend through refraction (MeshPhysicalMaterial transmission only shows opaque objects behind it, so the backdrop is opaque; it is drawn with canvas 2D into a CanvasTexture, so no image file ships). The shapes are generated in code with TorusKnot, Lathe (the vessel profile is a function) and Extrude (rounded shape with a bevel). Reflections come from a studio built in code — a white box with four emissive panels — folded into an environment map by PMREMGenerator.fromScene(), with no HDRI and an amber back panel that tints highlights on brand. Three lights (shadow-casting directional key, amber point rim, hemisphere fill) and a single ShadowMaterial floor ground the objects; entrance, exit and float are hand-built keyframe clips on an AnimationMixer. What building it taught us: (1) with scene.environment alone, per-material envMapIntensity is ignored (three 0.185.1's WebGLMaterials only passes it to materials that have material.envMap), so a studio bright enough for metal washes the ceramic out completely; each material now holds the envMap and the ceramic's reflections are dialled down to 0.3 to keep shading on its sides. (2) Shaders are built on first draw and transmissive materials create an extra render target the first time they appear, so on start-up all three specimens are compiled and drawn once before anything is shown, and switching never stalls. (3) The WebGL context created for the support check is handed straight to three; creating a separate probe canvas meant two contexts and a visibly slower start in our software-rendered test browser. (4) GL commands are not drawn when they are issued; in a software-rendered browser the GPU side can take seconds, and showing the canvas in the meantime leaves the stage blank. The canvas is revealed only after two requestAnimationFrame callbacks (which do not fire while the GPU is stalled), and until then a CSS still of the three specimens is shown; after a resize clears the drawing buffer, a frame is redrawn in the same callback. (5) On slow devices the pixel ratio drops first; if that is still too slow, only the automatic motion stops — the last 3D frame stays on screen and a new one is drawn on each interaction (the static panel is used only when WebGL is unavailable or the context is lost). On click, the button colour, underline and the specimen name on the stage change in the same frame, the whole stage dips and springs back in 0.22 s (marking the start and end of the switch), and an amber line sweeps its bottom edge for 0.42 s. (6) Each switch carries a sequence number, and the studio reports it back only once the new state is actually on screen (the entrance is past 30% and two requestAnimationFrame callbacks have fired after drawing); if that has not happened within 0.3 s, a CSS still of the same state (paper, backdrop lines, three specimens when comparing) is laid over the 3D, so on slow devices the picked material and the stage never disagree. Narrow screens order stage → switcher → copy so the object and all three switches fit in the first screen; from 768px the switcher sits on the top-right of the stage so pressing it never scrolls the page (the material-parameter ledger stays below as a read-only table). three is the single exception to this gallery's zero-dependency rule, because PBR materials, environment maps, shadows and animation are not worth hand-writing in raw WebGL. Measured cost (three 0.185.1, production build): two extra chunks totalling 752,089 bytes (~734KB), 187,108 bytes (~183KB) gzipped, loaded only where 3D is shown via a dynamic import inside useEffect; scaled-down previews are detected via rect.width / offsetWidth and never load it. Under prefers-reduced-motion nothing animates and a single frame is drawn. Sources (all checked 2026-10-29): three.js docs, MeshPhysicalMaterial (transmission 0–1, default 0; ior 1.0–2.333, default 1.5; thickness default 0 = thin-walled; attenuationDistance default Infinity) https://threejs.org/docs/pages/MeshPhysicalMaterial.html / PMREMGenerator (fromScene sigma default 0, size default 256) https://threejs.org/docs/pages/PMREMGenerator.html / WebGLRenderer compile and compileAsync (precompile shaders before first render; compileAsync uses KHR_parallel_shader_compile) https://threejs.org/docs/pages/WebGLRenderer.html / npm registry release history of three (latest 0.186.1, published 2026-09-24; this block is built and checked on 0.185.1, published 2026-07-01) https://www.npmjs.com/package/three

PagesPGE-06

Split Band Hero

A hero split into three vertical columns: a text panel, a thin divider rail, and a visual panel. The visual panel breaks into six vertical bands, each holding one colour block of differing position and length that rises from below, staggered by 90ms so the eye is pulled from the visual across to the headline. Zero image assets and zero JS: animation-fill-mode backwards means the finished layout is what renders on SSR, with JS disabled, and under reduced motion. Summary facts are grouped by hairline rules and whitespace instead of cards.

PagesPGE-07

Scroll-Linked Horizontal Scroll Hero | Four Frames That Pause to Read

A React + GSAP ScrollTrigger hero where vertical scrolling drives a horizontal scroll. The rail pauses on every frame while its heading, text, figures and diagram reveal in sequence, then moves on. Unlike the common pattern of a linear horizontal tween plus snap, the scroll budget is split into travel and dwell by inserting empty tweens into the timeline (travel 1 : dwell 0.6), so readers get a still moment on each frame. The cover shows a four-frame minimap, and the top-right index shows the current frame and progress within it; pressing a number or thumbnail switches the selection in the same paint and starts travelling (pressing another number mid-flight retargets). Pinning uses pinType: "transform", so the stage never escapes a bordered or padded container, and type scales against the frame (cqw). No image assets — diagrams are drawn from hairline grids and amber shapes. Under reduced motion the four frames stack vertically; inside scaled gallery previews it stays on the cover. GSAP, ScrollTrigger included, is free for commercial use under its Standard License effective April 30, 2025 (source: GSAP “Licensing”, https://gsap.com/licensing/, checked 2026-10-30).

PagesPGE-08

Long-form Legal Document Page

A page layout for long legal documents — terms of service, privacy policies, statutory notices — built purely for readability. Every navigation path (the sticky clause index, inline cross-references, and the revision log's affected-article links) resolves to the same jump target, and the destination is marked by a briefly overlaid tint rather than a colour transition. The article/paragraph/item hierarchy is expressed with hanging numerals and hairline rules instead of indentation, so line starts stay aligned at any width. Measure is set in em, so switching between the normal and large type sizes keeps roughly 46 Japanese characters per line. The revision log sits at the end in descending date order. No rounded corners, no decoration, no scroll reveals. Sample text is fictional. Zero images, zero dependencies.

PagesPGE-09

Post-Submit Thanks Page

A standalone landing page for after a contact form is submitted. Instead of a congratulatory headline, the top of the page states when a reply will arrive: the deadline is computed from the submission time against business hours (weekdays 10:00–19:00, rolling over weekends and holidays) and shown as an absolute timestamp. Includes a copyable reference number, a fallback route if no reply arrives, and exactly three things to read while waiting. Designed for a dedicated URL so analytics tags fire on arrival; the onConversion prop is called once per session. No rounded corners, no scroll reveal, no images, no dependencies.

PagesPGE-10

Article Body Reading Layout (Q-Headings, Margin Notes, References)

A complete article body layout for blogs and columns. Headings are written as questions, and the sticky index pairs each question with a one-line answer, so the argument is readable before the body and every section stands alone as a quotable unit. Footnotes, figure notes and sources sit in the right margin aligned to the paragraph that cites them, and collapse under that paragraph on narrow screens from the same DOM. Body marker to note, note to source, and source back to the citing passage are all linked. Includes a pull quote, figure caption and reference list, with no decorative boxes: a 38-character measure, 2.0 line height and hairline rules do the work. All copy is fictional sample text.

PagesPGE-11

Full-bleed Photo Hero (slow Ken Burns slideshow with pause control)

A hero where four full-bleed photos cross-fade while slowly zooming and panning. The headline stays fixed above the photos, and a dark bottom gradient keeps the white copy legible whatever the photo brightness. A white control strip below the photos shows the slide number and caption, progress bars that count down to the next slide, previous and next buttons, and an always-visible pause and play button (WCAG 2.2.2). Hovering pauses it temporarily; keyboard focus entering the hero stops it until the visitor presses play. Hidden slides are removed from screen readers and tab order with aria-hidden and inert. The next slide is triggered by the end of the progress bar's CSS animation, so pausing only flips animation-play-state and the zoom, the progress and the timer all stop together. Under prefers-reduced-motion the autoplay and zoom are off and only manual switching remains, and it also stops while off screen or in a hidden tab. The photos are text-free generated images that can be swapped in the SLIDES array. No dependencies.

PagesPGE-12

Zoom-Through Heading Hero (Letter-Shaped Window)

A hero whose photo is first visible only through the shape of an oversized word. As you scroll, the letter-shaped window grows, dives into the stem of a letter, and opens onto a full-bleed photo. The section is pinned and its progress is derived from scroll position alone, so scrolling back plays the transition in reverse. The window is a white SVG layer with the word cut out by a mask, so the photo itself is never masked and stays sharp while zooming. The zoom origin sits at the center of the letter I's stem, and the maximum scale is computed from the measured stem width so it always covers the viewport. A real-text heading and lead sit on a white plate in front, staying readable after the photo fills the screen. A plate button jumps between the full photo and the heading, and the next-section link moves focus to its target, so the whole interaction works from the keyboard. With reduced motion, it becomes a static side-by-side hero of photo and heading. No dependencies; only transform and opacity are animated.

PagesPGE-13

Seasonal Header Band That Follows Japan's 24 Solar Terms (Words, Colors and Line Art)

A hero band for Japanese-style shop sites that detects the current solar term (one of the 24 sekki) from today's date and swaps the seasonal phrase, the background and text colors, and a line-art ornament (24 hand-drawn SVGs such as falling leaves, icicles and plum buds) with a 400ms crossfade. The band also shows the next term and the days left. A date slider covers one year from today (or the last year of the table when the table is about to end), and its track is painted in each term's color. Term dates come from a constant table copied from the National Astronomical Observatory of Japan's official almanac for 2026 and 2027 (no astronomical calculation); when today falls outside the table, the band says so and shows the nearest year of the table instead of presenting an old date as today. All 24 text colors pass WCAG AA (4.5:1) on white and on their own tint. A collapsed panel exports the palette as CSS custom properties, the current ornament as SVG, and a 1200×630 PNG swatch of all 24 colors. Reduced motion skips the fade. No dependencies.

PagesPGE-14

Noren Curtain Entrance Hero — Brush It Aside to Enter (React)

An entrance for the top page of a Japanese restaurant, ryokan or sweets shop. Brush the indigo noren with a finger or mouse and only the nearby panels sway and settle; tap or sweep them sideways and the panels part while the photo of the tatami room behind eases closer. A slow sway on load shows that the cloth can be touched. The cloth is drawn on a canvas as thin horizontal bands, fixed at the rod and swinging more toward the hem. On phones vertical scrolling is left alone and only sideways movement parts the curtain. Keyboard users get an open/close button that appears on focus, and the call-to-action below is always reachable. With prefers-reduced-motion the cloth does not sway and simply switches between closed and open. Panel count (2–4), colour (indigo, plum, ink) and a single dyed character are props (panels, color, mark) (the switches on this page appear only when showControls is true). Swap in your own room photo and cloth image via roomSrc and clothSrc. No dependencies.

PagesPGE-15

3-Second Homepage Test — Missed vs. Missing on a Bakery Hero

A 3-second first-view test for small-shop homepages. A fictional bakery hero is shown for three seconds and hidden, then three questions (signature item, nearest station, today's closing time) are judged as read, shown-but-missed, not shown ("couldn't find it" is a correct observation) or guessed — and the matching spot lights up on the page. Next, tap to find five fixes (headline, photo, feature row, hours band, button) with before/after and the reason. Copy a request message to run the same test with an acquaintance on your own homepage, copy the fixed hero as React code, and send a result line plus a quiz URL to X. Answers stay in the browser.

PagesPGE-16

CTA Banner

A call-to-action block for the bottom of a page: soft amber gradient panel with eyebrow, heading, and two buttons. A section-level specimen, not a component.

BlocksBLK-01

Pricing Table UI | 3-Plan Comparison with a Recommended Plan, Responsive

A pricing table in React + Tailwind CSS with no dependencies. Copy the code, or pull it in with the npx shadcn command below as <PricingPlans data initialView showControls>. One dataset (a plans × features table) drives two views — Cards and a Feature comparison table — and switching keeps the recommended plan, prices and consult buttons aligned. A sample switch shows a Standard dataset and one with long plan names and uneven feature counts (2, 8 and 6 items). Under 640px the preview opens with a three-plan summary of names, tax-inclusive prices and the recommended badge; tapping one jumps to its card. Each plan carries a price-position scale where the most expensive plan fills the track. Prices lead with the tax-inclusive total and show the pre-tax price beside it, following the display examples in Japan's National Tax Agency Tax Answer No.6902. Pressing a consult button turns it into a Selected state and shows a consult message with the plan name plus copy success or failure right beside the button. prefers-reduced-motion stops the motion. Prices and features are sample data.

BlocksBLK-02

Process Steps UI | React & Tailwind CSS

A responsive example that switches from horizontal to vertical — copy the code. Numbered steps stack as a number column and a text column on phones (under 640px) and sit in four columns from 640px up; numbers are joined by a connector at every width, with no stray line after the last step. A switch above the preview compares a Static version (every line and number at equal weight) with a Scroll-linked version, where the connector grows as you scroll and each number fills once the line reaches it. Each step carries a title, a short description and a one-line deliverable, so readers see what they receive at every stage. Built as an <ol> because order matters; plain React + Tailwind CSS with no dependencies, exported as <ProcessSteps steps initialMode showModeSwitch>. prefers-reduced-motion stops the motion and shows every step filled. Step copy is sample text.

BlocksBLK-03

Service Zigzag (Card-less)

A card-less editorial take on a services / features section: instead of a 3-up card grid, entries stack vertically as full-width bands that alternate left/right (zigzag). Each row swaps a dotted 'plate' panel (with an oversized outlined index numeral) and un-boxed text via CSS grid order, grouped by hairline rules and generous whitespace. Zero image assets; amber rules and Montserrat display numerals give it a specimen-like editorial feel.

BlocksBLK-04

Strengths — Declarative Stats

A declarative strengths/stats block that lets numbers do the talking. One KPI is placed as a dominant feature stat in giant type, with three supporting stats grouped by hairline rules below (few claims, clear hierarchy). Numbers count up from 0 via requestAnimationFrame once the section scrolls into view (IntersectionObserver), with tabular-nums to keep digit widths fixed and avoid jitter. Grouped with rules and negative space instead of cards — zero image assets. Reduced-motion users see final values instantly.

BlocksBLK-05

Works — Case-study Grid

A works / case-study index block with high information density. Instead of a row of shadowed cards, entries sit in a hairline 'ledger' (gap-px on a gray fill), each with a faux logo lockup (monogram + wordmark, zero images), an industry tag, and a giant ghost index numeral for rhythm. On hover (and keyboard focus) the excerpt fades in and the arrow slides; the excerpt's height is always reserved so nothing reflows. An industry filter toggles cells via hidden (no reflow animation) and announces the count via aria-live. Staggered reveal on scroll-in via IntersectionObserver, instant final state under prefers-reduced-motion.

BlocksBLK-06

Customer Voices — Quote-led Ledger

A testimonials block that leads with the quote and subordinates the attribution. One voice is placed as a dominant blockquote in large type, with the name/attribute added quietly beside an amber hairline. The remaining voices are grouped — not as cards — into a 'voice ledger' bound by a single vertical rail and divide rules. Instead of relying on Swiper, a shared keyframe is applied to each testimonial's rail marker with a staggered animation-delay, so a blinking highlight travels down the list in pure CSS (markers are anchored per row, so alignment holds even with variable row heights). Names follow the restrained style of medical sites (initials, age band, attribute) to avoid over-identifying individuals. Zero image assets; reduced-motion falls back to static markers and instant reveal.

BlocksBLK-07

Global Site Header

A corporate global header: logo left, nav right, and exactly one CTA pinned to the far right behind a vertical hairline so the hierarchy is unmistakable. On scroll a blurred white backdrop fades in and a bottom hairline wipes in from the left — no height or padding changes, so nothing reflows. On mobile a hamburger opens a full-screen overlay (Escape to close, inert while hidden). Includes a skip link; zero image assets. Ships with a scrollable demo shell so the scroll state is visible inside the gallery.

BlocksBLK-08