Sami Vuori Design system Back to site →

Gallery & lightbox

A photo grid inside an article, and the click-to-enlarge view every article image can use.

Click a photo
<Gallery photos={[{ src: '/about/family.webp', alt: '…' }, …]} />
PropTypeDefaultDescription
photos { src; alt }[] — Every photo needs real alt text.
Token Base≥ 744 Note
--gallery-columns repeat(2, minmax(0, 1fr))repeat(3, minmax(0, 1fr)) photo grid (About)
--gallery-ratio 4 / 3
--color-backdrop var(--color-black-transparent-85) image lightbox