Mordoc

Images

Style the inline figure and zoomable lightbox for images placed in Markdown content.

1 MIN READ

Image wraps a standard Markdown ![]() image with a caption and a click-to-zoom lightbox. See Images for the Markdown syntax. This page covers its appearance.

Open the override file

Text
config/styles/image.css

Tokens

TokenWhat it controls
--image-radiusCorner radius, shared by the inline figure and the lightbox image.
--image-caption-colorCaption text color under the inline figure. Defaults to --color-fg-muted.
--image-overlay-bgBackdrop behind the full-screen lightbox.
--image-close-button-radiusCorner radius of the lightbox's close button.

Example image.css

A config/styles/image.css that sets every token on this page, for both light and dark mode:

Css
:root {
  --image-radius: 4px;
  --image-caption-color: #6b7280;
  --image-overlay-bg: rgba(0, 0, 0, 0.82);
  --image-close-button-radius: 6px;
}

.dark {
  --image-caption-color: #9ca3af;
}

Next step

© 2026 MordocPowered by Mordoc