LIVE DESIGN LIBRARY

A UI design library, source code included

UI designs from First CH's production work, stocked with source code and an AI Script. Copy one straight into your next project.

How to use the library →

New designs

See all →
  1. Which Furigana Fields Fail After Chrome Autofill? A 12-Case Label × Validation Table (with Kana Conversion Code)A 12-cell table that crosses four Japanese reading-field labels (フリガナ, ふりがな, よみがな, カナ) with three validation rules (full-width katakana only, hiragana only, either) and marks each cell as pass or fail. Pick a cell to replay Chrome autofill entering the reading of a fictional name, then submit to see it pass or show a red error. The only rules used are the ones published on Chrome for Developers: if the label contains at least one katakana character Chrome fills katakana, otherwise hiragana. Failing cells offer two fixes — change the label, or convert to the required script after the text is committed — and replay the submit; the conversion is a few lines of dependency-free React. Includes a plain-language memo to copy to your developer, a 1200×630 image of the table, and an HTML checker that classifies pasted form markup by autocomplete, name and label entirely on the device. A reproduction of the published rules, not real autofill output; other browsers are out of scope.
  2. · Approval Stepper That Prints as a Japanese Seal Box | @media print Approval UI (React and HTML/CSS)A UI component that shows the status of an internal approval (ringi) two ways: on screen as a horizontal stepper with pill status badges, icons and dates, and on paper as a Japanese seal box that fills from the right. Approve, Send back and Approve by proxy advance the staff, section chief and department head one stage at a time, with a five-second Undo after each action. Approvals print as a vermilion round date seal in the Reiwa era, send-backs as a square seal reading "否", proxy approvals as a round seal with a small "代" seal, and skipped stages as a diagonal line; seal edges are roughened with SVG feTurbulence and feDisplacementMap. Print preview shrinks each badge into its seal and drops it into the box in 140 ms (FLIP), and a real Ctrl+P prints only the seal box via @media print. Stage count (2–5), role names and seal text are editable, and a bow option tilts junior seals toward their superiors. The React code (one component with variant="stepper" | "seal") and single-file HTML+CSS follow the current state, and a 1200×630 PNG with a "sample" watermark can be saved. No dependencies. Roles and seals are fictional samples.
  3. · Vertical Japanese Text Checker | Fix Sideways Digits, Latin and Symbols with Tate-chu-yoko (writing-mode, text-combine-upright)Sets pasted Japanese text vertically with writing-mode: vertical-rl, finds half-width digits, Latin words and symbols that fall sideways using seven rules, and shows the plain version (red numbers) next to a fixed version (amber) in two equal-height panels. Up to two digits and "!?" become tate-chu-yoko with text-combine-upright: all; three or more digits become kanji or full-width; Latin words can stand upright with text-orientation: upright or stay sideways; half-width brackets, hyphens and tildes become full-width; "..." becomes "……" and a single "—" becomes "――". Per-rule toggles re-set the fixed panel instantly, in a Mincho stack with font-feature-settings: "vpal". The horizontal scrollbar is hidden in favour of a thin progress line, and both panels scroll together. Copy the fixed HTML (with spans) and CSS, save the comparison as a 1200×630 image, and share texts up to 400 characters via the URL fragment. Runs entirely in the browser; no dependencies. The sample text is a fictional confectioner's history.
  4. · Japanese Punctuation Trim Generator | Heading HTML & CSS with text-spacing-trim and a Safari FallbackGenerates HTML and CSS that trim the space around brackets and punctuation in Japanese headings, then measures three equal-width rows — solid setting, this browser's default and the generated setting — character by character and shows the difference in px. In browsers without text-spacing-trim, such as Safari, only the punctuation to trim (line-start 「, 。(, 」「 …) is wrapped in a span and halved with halt, falling back to a negative margin when the font lacks halt; supporting browsers use native trimming inside @supports. Also shows what proportional kana (palt) changes: the width delta and which characters move. No dependencies. Headings are fictional samples.

135 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

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

Site Footer

A three-tier corporate footer organised by hairlines alone — no panels, no cards, no background fills, so the end of the page never outweighs the CTA above it. Tier one is the sitemap (services / company / legal); the divide flips from horizontal rules on mobile to vertical column rules on desktop from a single DOM. Tier two restates the logo small — wordmark only, so it does not duplicate the header — next to a one-line address and contact details. Tier three carries the copyright and a back-to-top control. An amber tick wipes in once on the top rule via IntersectionObserver; link hovers are a 2px nudge plus an underline scale-x. Zero image assets.

BlocksBLK-09

Split-Band CTA

A wide horizontal CTA band to drop into the flow of a page: Japanese label, heading and a short lead on the left, primary/secondary buttons on the right, split by a single hairline rule rather than two boxes. The faint amber wash (bg-amber-50/60) is applied only to the action column so colour marks function, not decoration. The rule-based counterpart to cta-banner (BLK-01), which is a centred gradient panel. Zero image assets.

BlocksBLK-10

Photo Gallery — Masonry Layout with Zoom Lightbox

A photo gallery that packs images of mixed aspect ratios into a gap-free masonry wall and opens the one you press into a full-screen view that grows out of its thumbnail. Instead of stacking columns, each photo gets flex-grow and flex-basis proportional to its aspect ratio inside a wrapping row, so visual order, DOM order and Tab order always match and every photo in a row shares one height while filling the row exactly — no JS measuring. The viewer is a native dialog opened with showModal; a FLIP animation cancels out the offset from the thumbnail with transform and plays it back, and Escape or the close button shrinks the photo back along the same path. The dialog is named, marked aria-modal, puts initial focus on the close button, keeps Tab cycling inside, and returns focus to the thumbnail of the photo on screen. Close, previous and next buttons are always visible, arrow keys, Home/End and horizontal swipes also navigate, and each change is announced. Every photo carries descriptive alt text, and prefers-reduced-motion removes the grow, shrink and slide motion so changes happen instantly. No new dependencies.

BlocksBLK-100