Figure

Centred image block with caption — the styling target of the `figure` shortcode.

Updated 2026-08-23

On this page

.figure is the visual treatment for image+caption blocks inside article bodies. It’s small — just enough to constrain the image, round the corners, drop a subtle shadow, and italicise the caption underneath.

Source: themes/bifrost/sass/components/_figure.scss · rendered by the figure shortcode

Structure#

<figure class="figure">
    <img class="figure__image" src="" alt="">
    <figcaption class="figure__caption">Caption text.</figcaption>
</figure>
ElementTreatment
.figuremargin: $spacing-xl 0, text-align: center.
.figure__imagemax-width: 100%, border-radius: $border-radius-md, box-shadow: var(--shadow-sm).
.figure__caption$spacing-sm top margin, $font-size-sm, muted colour, italic.

Usage#

Use the figure shortcode inside markdown — it wraps the markup correctly and handles alt/caption args. Don’t write the <figure> element by hand in markdown if you can avoid it; the shortcode keeps the contract consistent.

Edit this page on GitHub