UxSvgPlate

components/ux/SvgPlate.vue

White backing plate for art drawn only for light backgrounds. Transparent in light mode; paints white under .dark (or a provideThemeMode dark context) so dark ink stays legible. Fills its container width; the art scales to fit.

Dynamic sandbox blog diagram
Without vs with the plate
Bare <img> — dark ink disappears in dark mode
UxSvgPlate class="p-2 rounded-6"
Inset — your own Tailwind classes
(none)
p-1 rounded-4
p-2 rounded-6
p-4 rounded-8
Slot — inline svg (single-color ink, no class styles)
Illustrator exports belong in src — their .cls-N styles leak across inlined siblings.
Typical — the dynamic-sandbox set
Dynamic sandbox diagram 1
Dynamic sandbox diagram 2
Dynamic sandbox diagram 3
Dynamic sandbox diagram 4
Dynamic sandbox diagram 5
components/ux/SvgPlate.vue

Usage

<UxSvgPlate src = "—" alt = "—" > Content here </UxSvgPlate>

Props

PropTypeDefaultDescription
srcString''Image URL; renders an <img> scaled to the plate width. Omit to wrap the default slot.
altString''Alt text for the <img> (src mode).

Slots

SlotDescription
defaultArt to plate when no src is given — an inline svg, UxIcon, or <img>.

Related

Qpoint Brand Style Guide