Media
Media & Embeds
Content
Responsive media containers for images, native video, audio players, and iframes. Applies theme borders, elevation shadows, and rounded corners by default.
| Name | Description |
|---|---|
img |
Responsive image with theme radius and raised surface shadow. |
video |
Native video element with border and elevation. |
.video-container |
Responsive 16:9 media embed container for videos and iframes. |
.stnd-icon |
Icon container unsetting default media borders and shadows to inherit currentColor. |
figure |
Grid container for media and associated captions. |
figcaption |
Centered italic caption text for figures. |
img.fx |
Image explicitly styled with theme border and radius. |
img.nofx |
Image stripping borders, shadows, and radii. |
An image with a caption
<figure>
<img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 180'%3E%3Cdefs%3E%3ClinearGradient id='g'%3E%3Cstop offset='0' stop-color='%23d78a5a'/%3E%3Cstop offset='1' stop-color='%234f81a4'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='320' height='180' fill='url(%23g)'/%3E%3C/svg%3E" alt="A gradient from orange to blue" width="320" height="180">
<figcaption>A figure groups an image with its caption.</figcaption>
</figure>
Live
Image treatments
<div class="flex flex-wrap no-rhythm" style="gap: var(--space-d2); align-items: center">
<img class="fx" src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 180'%3E%3Cdefs%3E%3ClinearGradient id='g'%3E%3Cstop offset='0' stop-color='%23d78a5a'/%3E%3Cstop offset='1' stop-color='%234f81a4'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='320' height='180' fill='url(%23g)'/%3E%3C/svg%3E" alt="" width="160" height="90">
<img class="nofx" src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 180'%3E%3Cdefs%3E%3ClinearGradient id='g'%3E%3Cstop offset='0' stop-color='%23d78a5a'/%3E%3Cstop offset='1' stop-color='%234f81a4'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='320' height='180' fill='url(%23g)'/%3E%3C/svg%3E" alt="" width="160" height="90">
</div>
Live
A responsive 16:9 embed container
<div class="video-container">
<div style="background: var(--color-fill-tertiary); display: grid; place-items: center">16:9</div>
</div>
Live
16:9
An icon: it inherits the text colour and drops the image treatment
<p>
Text with an icon
<img class="stnd-icon" width="16" height="16" alt="" src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6' fill='currentColor'/%3E%3C/svg%3E">
in a sentence.
</p>
Live
Text with an icon
in a sentence.
Image Zoom & Lightbox
Content
Responsive image handling with interactive zoom functionality. Progressively enhanced: without JavaScript, provides click-and-hold zoom. With JavaScript, provides a full frosted-glass lightbox experience.
| Name | Description |
|---|---|
html:not(.js-image-zoom-enabled) |
img:active Fallback CSS-only zoom on click-and-hold. |
.image-zoom-overlay |
Fullscreen glassmorphic lightbox overlay created dynamically by JS. |
.image-zoom-overlay.is-visible |
Active visible state for the lightbox overlay. |
html.image-zoomed-active |
Body scroll lock class applied when lightbox is active. |
data-no-zoom? |
Attribute to prevent zoom interaction on icons or avatars. |
Opting an image out of the zoom (shown as code: the zoom is added by script)
<img src="avatar.jpg" alt="Ada" data-no-zoom>
since 0.1.0
All classes
Video embeds
| Class | Declares |
|---|---|
.video-container |
position: relative |
.stnd-icon |
line-height: 0 |
.stnd-icon, .stnd-icon img, .stnd-icon svg |
box-shadow: none |
.image-zoom-overlay |
position: fixed |
.image-zoom-overlay.is-visible |
opacity: 1 |
.image-zoom-overlay img |
display: block |
.image-zoom-overlay.is-visible img |
opacity: 1 |