StealThis .dev

Comics — Panel Frame + Gutter System

A reusable comic-page layout kit for the fictional series Neon Ronin, built entirely with CSS grid, hard ink borders, and Ben-Day halftone fills. Four preset arrangements — a 2x2 grid, a splash panel over a three-beat strip, skewed diagonal panels, and a floating inset panel — swap with a smooth transition from a comic-styled button bar. Every panel carries a duotone gradient, an uppercase SFX or tailed speech balloon, and a yellow caption box. A live gutter slider drives a CSS variable, retuning the white space between panels in real time with toast feedback.

In Lab öffnen
html css vanilla-js
Targets: JS HTML

Code

Panel Frame + Gutter System

A self-contained comic-page layout kit dressed up as issue #42 of the fictional series Neon Ronin. The page is a single CSS grid whose cells are bordered panels — thick 3px ink frames over a dark “gutter” backdrop, each panel filled with a Ben-Day halftone texture and a duotone gradient, then topped with bold uppercase SFX lettering, tailed speech balloons, and a yellow caption strip. The masthead uses Bangers for display lettering while Inter carries the UI and body copy.

A comic-styled button bar switches between four canonical page arrangements: a classic 2 × 2 grid, a splash panel over a three-beat bottom strip, skewed diagonal panels that read on a slant, and a layout with a small inset panel floating over a hero shot. The change is driven by a single data-layout attribute on the page, so the transition between presets is smooth and purely CSS. The layout buttons are keyboard navigable with arrow keys and announce each switch through a toast.

A gutter slider writes its value straight into a --gutter CSS custom property, retuning both the gaps between panels and the page padding live — drag it to zero for a borderless bleed or open it up for airy European-style spacing. Everything is vanilla: no images, no frameworks, no build step, and the whole kit collapses gracefully down to roughly 360px wide.

Illustrative UI only — fictional series, characters, and data.