Skip to content
HTML Templates For Developers

Documentation

Lightwell — Image Gallery Template

Version 1.0.0 · Vanilla HTML · 26 files · 74 KB

Back to the template

Getting started

  1. Unzip the download and open index.html in a browser. No server, installation or build step is needed.
  2. Edit the text directly in the HTML files.
  3. Change colours, fonts and spacing through the CSS custom properties at the top of assets/css/style.css.
  4. Replace the artwork in assets/images/ with your own images.
  5. Upload the whole folder to any static host.

File structure

The download contains these 26 files:

  • LICENSE.txt1.3 KB
  • README.md2.9 KB
  • assets/css/style.css11 KB
  • assets/fonts/josefin-sans-LICENSE.txt4.5 KB
  • assets/fonts/josefin-sans-latin-wght-normal.woff228 KB
  • assets/images/arcs-01.svg1.9 KB
  • assets/images/favicon.svg323 B
  • assets/images/geo-bars.svg826 B
  • assets/images/geo-fan.svg1.1 KB
  • assets/images/geo-sq.svg1.1 KB
  • assets/images/orbit-01.svg948 B
  • assets/images/orbit-02.svg378 B
  • assets/images/orbit-03.svg1.1 KB
  • assets/images/orbit-04.svg4.8 KB
  • assets/images/tex-01.svg34 KB
  • assets/images/tex-02.svg11 KB
  • assets/images/tex-03.svg11 KB
  • assets/images/tex-04.svg5.1 KB
  • assets/images/wave-01.svg4.0 KB
  • assets/images/wave-02.svg17 KB
  • assets/images/wave-03.svg552 B
  • assets/images/wave-04.svg1.7 KB
  • assets/js/main.js12 KB
  • documentation/index.html11 KB
  • documentation/licenses/lucide-LICENSE.txt3.1 KB
  • index.html16 KB

Colours

These custom properties are defined at the top of the stylesheet. Change a value once and it updates everywhere it is used.

  • --color-bg#0c0c0c
  • --color-surface#161616
  • --color-text#ffffff
  • --color-muted#a8a8a8
  • --color-hairline#2a2a2a
  • --color-hairline-strong#4a4a4a

Interactive features

Category filter

Each tile carries data-category (geometry, waves, orbits or texture). A filter button's data-filter must match one of those values; data-filter="all" shows everything. Update the counts in the buttons by hand when you change the set.

Animated masonry

main.js places each visible tile in the shortest column using transforms. Change the column breakpoints in columnCount(), the gap with --grid-gap and the reflow speed with --reflow-speed in the :root block.

Lightbox

Any button with data-open inside a .tile opens the viewer. Its title, medium and year come from the elements marked data-title, data-medium and data-year-text in the same tile; the image is the tile's own img.

Zoom and pan

The zoom level is the ZOOM constant (2.4 by default) in initLightbox() in assets/js/main.js. Click the image, press the zoom button or use + and -; drag to pan while zoomed.

Customisation notes

Add your own images

Copy a li.tile block, point the img at your file and set its real width and height attributes. Portrait, landscape and square images mix freely because the layout computes heights from those attributes.

Change the captions

The hover caption shows the number and the title. The extra lightbox details sit in the hidden paragraph with the class tile__meta; edit the medium and year there.

Use photographs

Replace the SVG files in assets/images with JPEG, WebP or AVIF files. Keep loading="lazy" and decoding="async" on each img, and resize photos to roughly 1600px on the long edge.

Adjust the mood

The page is built from five greys and white in the :root block. Change --color-bg and --color-surface to move toward warmer or lighter tones.

What is front-end only

This is a front-end template. The behaviours below are demonstrations that run in the browser; connect them to your own server or service before relying on them.

  • All artwork, titles, years and media are original sample content generated for this template.

Bundled components and licences

Everything the template needs is inside the download; nothing is loaded from the network.

  • Josefin Sans typeface — OFL-1.1 (assets/fonts/josefin-sans-LICENSE.txt)
  • Lucide icons (inlined SVG) — ISC (documentation/licenses/lucide-LICENSE.txt)

Changelog

Version 1.0.0 · Nov 23, 2026

  • Initial release.