dx/bgbox β Background box
dx/bgbox is a simple wrapper for framing content β perfect behind photos, callouts, notes, or grouped content.
Usage
tone(optional):neutral|info|warn|danger|success(default:neutral)title(optional): heading text shown at the top of the boxclass(optional): extra CSS classes on the wrapper
Examples
Each example below shows:
- Code (what you type in Markdown)
- Renders (what the shortcode outputs)
Basic
Code
| |
Renders
This is a plain bgbox.
With tone + title
Code
| |
Renders
Note
This is an info bgbox with a title.
Tone gallery
These are the built-in tones. You can use them to match your siteβs design language, and you can override the underlying colours via CSS variables.
Neutral
Code
| |
Renders
Neutral tone.
Info
Code
| |
Renders
Info tone.
Warn
Code
| |
Renders
Warn tone.
Danger
Code
| |
Renders
Danger tone.
Success
Code
| |
Renders
Success tone.
Behind a photo
This is the common pattern: use dx/bgbox as a wrapper around dx/photo.
Notice that markdown is allowed in the caption.
Code
| |
Renders
