Display and media · SU-313
A lightbox is a dark dialog with a counter, a caption and big controls
Flip between the version shibroUI flags and the one it ships. The marks and callouts show what changes.
-
Scrim
45% · grid shows through
-
Scrim
88% black -
Counter
3 / 12
3 / 12
Ridge camp at dawn, Sep 2026
-
Close
20px
-
Close
44px
What changes
- Bad
- A
45%scrim lets the page grid compete, the image runs flush to the edges, the close button is20px, and there is no counter or caption. - Good
- An
88%scrim, the image inset24pxwith a caption, a “3 / 12” counter, and44pxclose and arrow buttons.
The rules
-
SU-313
Lightboxes are dialogs with a counter, zoom and neighbor preloading. Open from a thumbnail with a 200-300ms transition into a scrim of at least 85% black. Esc, arrow keys and swipe navigate; close is a 44px button at the top right; focus is trapped and returns to the thumbnail. Show a "3 / 12" counter and a caption, fit the image with 16-24px margins, support pinch or double-tap zoom, preload the neighbors, and give every image alt text.