dx/pullquote - Pullquote
Overview
The dx/pullquote shortcode is used to visually highlight a quotation within prose.
It is intentionally JavaScript-free, lightweight, and suitable for long-form writing.
It supports:
- optional author attribution
- alignment control
- color variants
- optional width constraints for editorial layouts
Basic usage
| |
To understand a thing is to be liberated from it.
With author attribution
| |
To understand a thing is to be liberated from it.
Alignment
You can control alignment using the align parameter.
Supported values:
leftcenter(default)right
| |
Photography is not about the thing photographed.
Colour variants
The pullquote supports predefined colour variants that map to CSS variables in the module.
Available variants:
ink(default)sunskymintrose
| |
The camera is an instrument that teaches people how to see without a camera.
Variants are themeable. Users can override the CSS variables to match their siteβs design.
Constraining width
For editorial layouts, you can limit the maximum width using the width parameter.
| |
A photograph is a secret about a secret.
This works well for magazine-style layouts and side-aligned quotations.
Full example
| |
Photographs objectify: they turn an event or a person into something that can be possessed.
Design notes
- Uses semantic
<blockquote>markup - Author attribution is rendered with
<figcaption> - Inner content is passed through
markdownify - Decorative quotation marks are purely visual
- No JavaScript required
- Safe to use inside standard Markdown prose
When to use dx/pullquote
Use it when you want to:
- emphasize a key idea
- visually break up long-form text
- add editorial polish without layout hacks
Avoid it for:
- long multi-paragraph quotations
- citations that require structured references or footnotes