Original, theme-aware SVG illustrations for empty states and feedback.
Illustration family
Empty inbox
You're all caught up
New notifications will appear here.
View inbox componentWhat it is
Server SVG scenes (240×160 artboard) for empty states and feedback. Named imports; optional illustrationRegistry for galleries only.
API
Each export accepts DvIllustrationProps: native SVG props, size via className (default ~160px width), optional label.
| Export | Typical use |
|---|---|
DvTray, DvBellQuiet | Quiet feeds |
DvMagnifier | Search/filter empty |
DvFolderStack, DvCloudDrop | Files |
DvSignalOff, DvShieldLock, DvAlertFrame, DvCheckSeal | Status |
| Others | Favorites, saved, maintenance, workspace, unavailable |
Theming
primary, card, muted-foreground. Overrides: --illustration-accent, --illustration-paper, --illustration-soft, --illustration-line, --illustration-ink.
Layout & responsive
Not for toolbar icon size—use in empty states and cards.
Motion
Optional slight hover lift; reduced motion off. Loading illustration is static—announce pending in parent UI.
Accessibility
Decorative by default; label or aria-* when standalone. Unique gradient ids per instance.
Registry
No client boundary or extra packages.
CLI installation
bunx --bun shadcn@latest add https://ui.devvarena.com/api/r/dv-illustrationsimport { type CSSProperties, type ReactNode, type SVGProps, useId } from 'react';
import { cn } from '@/lib/utils';
export type DvIllustrationProps = Omit<SVGProps<SVGSVGElement>, 'children'> & {
/** Leave unnamed when nearby text already explains the state. */
label?: string;
};
/** Shared optical system; artwork stays inline and has no client or asset dependency. */
function IllustrationFrame({
children,
label,
className,
style,
...props
}: DvIllustrationProps & { children: ReactNode }) {
const id = useId();
const accessibleLabel = label ?? props['aria-label'];
const named = Boolean(accessibleLabel || props['aria-labelledby']);
return (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 240 160"
width="240"
height="160"
fill="none"
stroke="var(--illustration-ink)"
strokeWidth="1.6"
strokeLinecap="round"
strokeLinejoin="round"
role={named ? 'img' : undefined}
aria-hidden={named ? undefined : true}
aria-label={accessibleLabel}
focusable="false"
{...props}
data-slot="dv-illustration"
className={cn(
'group/illustration block h-auto w-40 max-w-full shrink-0 overflow-visible',
className,
)}
style={
{
'--illustration-accent': 'var(--primary)',
'--illustration-ink':
'color-mix(in oklab,var(--illustration-accent) 55%,var(--muted-foreground))',
'--illustration-paper': 'var(--card)',
'--illustration-soft': 'color-mix(in oklab,var(--illustration-accent) 10%,var(--card))',
'--illustration-line': 'color-mix(in oklab,var(--illustration-accent) 22%,var(--card))',
'--illustration-fill': `url(#${id})`,
...style,
} as CSSProperties
}
>
<defs>
<linearGradient id={id} x1="60" y1="36" x2="172" y2="144" gradientUnits="userSpaceOnUse">
<stop stopColor="var(--illustration-soft)" />
<stop offset="1" stopColor="var(--illustration-line)" />
</linearGradient>
</defs>
<ellipse
cx="120"
cy="141"
rx="65"
ry="5"
fill="var(--illustration-ink)"
opacity=".045"
stroke="none"
/>
<path d="M44 125h8m136 0h8" stroke="var(--illustration-line)" />
{children}
</svg>
);
}
// 240 × 160 canvas, 1.6px rounded contours, continuous bowed silhouettes and nested squircle geometry.
// Hover is decorative; there are no hidden controls or continuous animations.
const FLOAT =
'origin-center transition-transform duration-300 ease-out motion-safe:group-hover/illustration:-translate-y-1 motion-reduce:transition-none';
export function DvTray(props: DvIllustrationProps) {
return (
<IllustrationFrame {...props}>
<g className={FLOAT}>
<path
d="M116 36C148 36 154 40 154 76C154 112 148 116 116 116C84 116 78 112 78 76C78 40 84 36 116 36Z"
fill="var(--illustration-paper)"
stroke="var(--illustration-line)"
/>
<path d="M94 56h38M94 68h28" stroke="var(--illustration-line)" strokeWidth="3" />
</g>
<path
d="M120 76C156 76 167 77 172 88C176 97 180 112 180 120C180 133 170 136 120 136C70 136 60 133 60 120C60 112 64 97 68 88C73 77 84 76 120 76Z"
fill="var(--illustration-fill)"
/>
<path d="M64 100H87C100 100 98 116 120 116C142 116 140 100 153 100H176" />
<path d="M73 125h20" stroke="var(--illustration-paper)" strokeWidth="3" />
{/* Keep the status badge detached from both the paper and tray, including on hover. */}
<g transform="translate(10 -4)">
<path
d="M168 34C182 34 184 36 184 50C184 64 182 66 168 66C154 66 152 64 152 50C152 36 154 34 168 34Z"
fill="var(--illustration-paper)"
stroke="var(--illustration-line)"
/>
<path d="m161 50 5 5 9-10" stroke="var(--illustration-accent)" strokeWidth="2.5" />
</g>
</IllustrationFrame>
);
}
export function DvMagnifier(props: DvIllustrationProps) {
return (
<IllustrationFrame {...props}>
<path
d="M106 36C140 36 146 42 146 86C146 130 140 136 106 136C72 136 66 130 66 86C66 42 72 36 106 36Z"
fill="var(--illustration-paper)"
stroke="var(--illustration-line)"
/>
<path d="M80 62h39M80 76h27M80 114h23" stroke="var(--illustration-line)" strokeWidth="3" />
<g className={FLOAT}>
<path
d="M162 106C164 104 167 104 169 106L187 124C190 127 190 130 187 133C184 136 181 135 178 132L160 114C158 112 160 108 162 106Z"
fill="var(--illustration-line)"
/>
<path
d="M144 64C170 64 174 68 174 92C174 116 170 120 144 120C118 120 114 116 114 92C114 68 118 64 144 64Z"
fill="var(--illustration-fill)"
/>
<path
d="M144 72C163 72 166 75 166 92C166 109 163 112 144 112C125 112 122 109 122 92C122 75 125 72 144 72Z"
fill="var(--illustration-paper)"
stroke="var(--illustration-line)"
/>
<path d="M136 92h16" stroke="var(--illustration-ink)" strokeWidth="2.5" />
</g>
</IllustrationFrame>
);
}
export function DvFolderStack(props: DvIllustrationProps) {
return (
<IllustrationFrame {...props}>
<path
d="M60 84V64C60 47 64 44 82 44H92C106 44 102 56 118 56H154C176 56 180 62 180 84V120H60Z"
fill="var(--illustration-line)"
stroke="var(--illustration-line)"
/>
<g className={FLOAT}>
<path
d="M112 36H130C136 36 139 38 143 42L153 52C157 56 158 59 158 65V104C158 116 154 120 142 120H106C94 120 90 116 90 104V58C90 40 94 36 112 36Z"
fill="var(--illustration-paper)"
/>
<path
d="M134 37V48C134 58 138 62 148 62H157M104 70h26"
stroke="var(--illustration-line)"
strokeWidth="2.5"
/>
</g>
<path
d="M120 78C170 78 182 80 182 94C182 100 179 114 176 122C172 134 164 136 120 136C76 136 68 134 64 122C61 114 58 100 58 94C58 80 70 78 120 78Z"
fill="var(--illustration-fill)"
/>
<path d="M74 84C98 83 142 83 166 84" stroke="var(--illustration-paper)" strokeWidth="2.5" />
<rect
x="107"
y="98"
width="26"
height="12"
rx="5"
fill="var(--illustration-paper)"
stroke="var(--illustration-line)"
/>
</IllustrationFrame>
);
}
export function DvSignalOff(props: DvIllustrationProps) {
return (
<IllustrationFrame {...props}>
<path
d="M120 40C166 40 172 46 172 88C172 130 166 136 120 136C74 136 68 130 68 88C68 46 74 40 120 40Z"
fill="var(--illustration-fill)"
/>
<path
d="M120 52C156 52 160 56 160 86C160 116 156 120 120 120C84 120 80 116 80 86C80 56 84 52 120 52Z"
fill="var(--illustration-paper)"
stroke="var(--illustration-line)"
/>
<path d="M112 128h16" strokeWidth="3" />
<g className={FLOAT}>
<path d="M99 83c12-11 30-11 42 0m-34 9c7-7 19-7 26 0" strokeWidth="2.5" />
<circle cx="120" cy="102" r="2.5" fill="var(--illustration-ink)" stroke="none" />
<path d="m91 69 58 43" stroke="var(--illustration-paper)" strokeWidth="7" />
<path d="m91 69 58 43" strokeWidth="2.5" />
</g>
<path d="m180 59 6-6m-1 18h8" stroke="var(--illustration-line)" />
</IllustrationFrame>
);
}
export function DvShieldLock(props: DvIllustrationProps) {
return (
<IllustrationFrame {...props}>
<path
d="M120 36C129 36 134 43 149 47C164 51 168 53 168 67C168 98 150 123 127 134C123 136 117 136 113 134C90 123 72 98 72 67C72 53 76 51 91 47C106 43 111 36 120 36Z"
fill="var(--illustration-fill)"
/>
<path
d="M120 47C127 47 133 53 145 57C155 60 157 61 157 70C157 94 143 113 125 123C122 125 118 125 115 123C97 113 83 94 83 70C83 61 85 60 95 57C107 53 113 47 120 47Z"
stroke="var(--illustration-paper)"
strokeWidth="2.5"
/>
<g className={FLOAT}>
<path d="M106 81V69a14 14 0 0 1 28 0v12" strokeWidth="3" />
<path
d="M120 80C140 80 143 82 143 97C143 112 140 114 120 114C100 114 97 112 97 97C97 82 100 80 120 80Z"
fill="var(--illustration-paper)"
/>
<circle cx="120" cy="94" r="3" fill="var(--illustration-accent)" stroke="none" />
<path d="M120 97v5" strokeWidth="2.5" />
</g>
</IllustrationFrame>
);
}
export function DvAlertFrame(props: DvIllustrationProps) {
return (
<IllustrationFrame {...props}>
<path
d="M96 36H126C132 36 136 38 140 42L150 52C154 56 156 60 156 66V110C156 130 150 136 130 136H96C76 136 70 130 70 110V62C70 42 76 36 96 36Z"
fill="var(--illustration-paper)"
stroke="var(--illustration-line)"
/>
<path
d="M130 37V48C130 58 134 62 144 62H155M86 68h26M86 80h16"
stroke="var(--illustration-line)"
strokeWidth="3"
/>
<g className={FLOAT}>
<path
d="M153 76C158 76 164 84 174 102C184 120 187 126 183 130C179 134 169 134 153 134C137 134 127 134 123 130C119 126 122 120 132 102C142 84 148 76 153 76Z"
fill="var(--illustration-fill)"
/>
<path d="M153 91v14" strokeWidth="3" />
<circle cx="153" cy="115" r="2" fill="var(--illustration-ink)" stroke="none" />
</g>
<path d="m57 63-5-5m1 17h-8" stroke="var(--illustration-line)" />
</IllustrationFrame>
);
}
export function DvCheckSeal(props: DvIllustrationProps) {
return (
<IllustrationFrame {...props}>
<path
d="M120 80C149 80 158 80 163 90C168 100 172 114 172 122C172 134 164 136 120 136C76 136 68 134 68 122C68 114 72 100 77 90C82 80 91 80 120 80Z"
fill="var(--illustration-fill)"
/>
<path d="M86 88h68M92 127h56" stroke="var(--illustration-paper)" strokeWidth="2.5" />
<g className={FLOAT}>
<path
d="M120 36C153 36 158 41 158 72C158 103 153 108 120 108C87 108 82 103 82 72C82 41 87 36 120 36Z"
fill="var(--illustration-paper)"
/>
<path d="m104 71 11 11 23-24" stroke="var(--illustration-accent)" strokeWidth="3" />
</g>
<path
d="m63 55 4 4m110-7-4 4M120 20v6m58 56h6m-126 0h6"
stroke="var(--illustration-line)"
strokeWidth="2.5"
/>
</IllustrationFrame>
);
}
export function DvSparkleHeart(props: DvIllustrationProps) {
return (
<IllustrationFrame {...props}>
<path
d="M123 44C157 44 162 49 162 90C162 131 157 136 123 136C89 136 84 131 84 90C84 49 89 44 123 44Z"
fill="var(--illustration-line)"
stroke="var(--illustration-line)"
/>
<path
d="M116 36C150 36 155 41 155 84C155 127 150 132 116 132C82 132 77 127 77 84C77 41 82 36 116 36Z"
fill="var(--illustration-paper)"
/>
<g className={FLOAT}>
<path
d="M114 57c4 0 7 11 12 15s17 3 18 7c2 4-8 11-10 17s3 17-1 19c-4 3-13-5-19-5s-15 8-19 5c-4-2 1-13-1-19s-12-13-10-17c1-4 13-3 18-7s8-15 12-15Z"
fill="var(--illustration-fill)"
/>
<path d="m111 67-5 10-10 2" stroke="var(--illustration-paper)" strokeWidth="2.5" />
</g>
</IllustrationFrame>
);
}
export function DvProgressRing(props: DvIllustrationProps) {
return (
<IllustrationFrame {...props}>
<path
d="M120 36C154 36 160 39 160 49C160 62 150 75 137 85C150 95 160 108 160 123C160 133 154 136 120 136C86 136 80 133 80 123C80 108 90 95 103 85C90 75 80 62 80 49C80 39 86 36 120 36Z"
fill="var(--illustration-paper)"
/>
<path
d="M91 51C91 61 105 77 120 84C135 77 149 61 149 51Z"
fill="var(--illustration-fill)"
stroke="var(--illustration-line)"
/>
<path
d="M92 124C97 111 110 103 120 103C130 103 143 111 148 124C134 126 106 126 92 124Z"
fill="var(--illustration-fill)"
stroke="var(--illustration-line)"
/>
<path d="M120 88v8" stroke="var(--illustration-accent)" strokeWidth="2.5" />
<path d="M95 44h50M95 130h50" stroke="var(--illustration-line)" strokeWidth="3" />
<path d="M65 61v9m-4-4h8m105 40v9m-4-4h8" stroke="var(--illustration-line)" />
</IllustrationFrame>
);
}
export function DvBellQuiet(props: DvIllustrationProps) {
return (
<IllustrationFrame {...props}>
<path d="M106 124C108 140 132 140 134 124" fill="var(--illustration-paper)" />
<g className={FLOAT}>
<path
d="M120 39C142 39 151 52 151 78V89C151 101 165 104 165 114C165 122 157 124 120 124C83 124 75 122 75 114C75 104 89 101 89 89V78C89 52 98 39 120 39Z"
fill="var(--illustration-fill)"
/>
<path d="M110 40v-4C110 24 130 24 130 36v4" stroke="var(--illustration-line)" />
<path d="M101 74C101 60 107 53 119 53" stroke="var(--illustration-paper)" strokeWidth="3" />
<path
d="M91 113C107 115 133 115 149 113"
stroke="var(--illustration-paper)"
strokeWidth="2.5"
/>
</g>
<path
d="M172 47h12l-12 13h12m-2-31h9l-9 10h9"
stroke="var(--illustration-line)"
strokeWidth="2"
/>
</IllustrationFrame>
);
}
export function DvBookmarkRibbon(props: DvIllustrationProps) {
return (
<IllustrationFrame {...props}>
<path
d="M126 44C162 44 168 49 168 90C168 131 162 136 126 136C90 136 84 131 84 90C84 49 90 44 126 44Z"
fill="var(--illustration-line)"
stroke="var(--illustration-line)"
/>
<path
d="M116 36C150 36 156 41 156 84C156 127 150 132 116 132C82 132 76 127 76 84C76 41 82 36 116 36Z"
fill="var(--illustration-paper)"
/>
<g className={FLOAT}>
<path
d="M116 52C134 52 136 54 136 68V101C136 109 133 110 127 106L120 101C117 99 115 99 112 101L105 106C99 110 96 109 96 101V68C96 54 98 52 116 52Z"
fill="var(--illustration-fill)"
/>
<path d="M106 61h20" stroke="var(--illustration-paper)" strokeWidth="2.5" />
</g>
<path d="M106 121h20" stroke="var(--illustration-line)" strokeWidth="3" />
</IllustrationFrame>
);
}
export function DvWrenchGear(props: DvIllustrationProps) {
return (
<IllustrationFrame {...props}>
<path
d="M112 40C155 40 162 45 162 86C162 127 155 132 112 132C69 132 62 127 62 86C62 45 69 40 112 40Z"
fill="var(--illustration-paper)"
stroke="var(--illustration-line)"
/>
<path d="M64 65h96" stroke="var(--illustration-line)" />
<circle cx="78" cy="53" r="2" fill="var(--illustration-line)" stroke="none" />
<circle cx="87" cy="53" r="2" fill="var(--illustration-line)" stroke="none" />
<path d="M79 81h28M79 94h18M79 116h21" stroke="var(--illustration-line)" strokeWidth="3" />
<g className={FLOAT}>
<path
d="M159 64C151 61 143 62 137 68C131 74 130 82 133 90L111 112C105 118 106 124 110 128C114 132 120 133 126 127L148 105C156 108 164 107 170 101C176 95 177 87 174 79L162 91L151 80Z"
fill="var(--illustration-fill)"
/>
<circle
cx="118"
cy="120"
r="3"
fill="var(--illustration-paper)"
stroke="var(--illustration-line)"
/>
<path d="m137 97-9 9" stroke="var(--illustration-paper)" strokeWidth="2.5" />
</g>
</IllustrationFrame>
);
}
export function DvCloudSlash(props: DvIllustrationProps) {
return (
<IllustrationFrame {...props}>
<path
d="M108 36C139 36 144 42 144 86C144 130 139 136 108 136C77 136 72 130 72 86C72 42 77 36 108 36Z"
fill="var(--illustration-paper)"
stroke="var(--illustration-line)"
/>
<path d="M92 57h31M92 70h21M92 116h20" stroke="var(--illustration-line)" strokeWidth="3" />
<path d="M99 93c4-5 7-5 11 0s7 5 11 0" stroke="var(--illustration-line)" strokeWidth="2.5" />
<g className={FLOAT}>
<g transform="translate(10 0)">
<path
d="M166 81C187 81 190 84 190 104C190 124 187 127 166 127C145 127 142 124 142 104C142 84 145 81 166 81Z"
fill="var(--illustration-fill)"
/>
<path d="M156 104h20" stroke="var(--illustration-accent)" strokeWidth="3" />
</g>
</g>
<path d="M158 45h14m-7-7v14" stroke="var(--illustration-line)" />
</IllustrationFrame>
);
}
export function DvCanvasGrid(props: DvIllustrationProps) {
return (
<IllustrationFrame {...props}>
<path d="M105 116v13m30-13v13M94 135h52" strokeWidth="2.5" />
<path
d="M120 40C172 40 178 45 178 79C178 113 172 118 120 118C68 118 62 113 62 79C62 45 68 40 120 40Z"
fill="var(--illustration-fill)"
/>
<path
d="M120 50C161 50 166 54 166 78C166 102 161 106 120 106C79 106 74 102 74 78C74 54 79 50 120 50Z"
fill="var(--illustration-paper)"
stroke="var(--illustration-line)"
/>
<g className={FLOAT}>
<path
d="M101 65C111 65 113 67 113 78C113 89 111 91 101 91C91 91 89 89 89 78C89 67 91 65 101 65Z"
fill="var(--illustration-soft)"
stroke="var(--illustration-line)"
/>
<path d="M127 72h22m-22 12h15" stroke="var(--illustration-line)" strokeWidth="3" />
</g>
<path d="m186 61 5-5m-3 18h7" stroke="var(--illustration-line)" />
</IllustrationFrame>
);
}
/** Upload prompt using the same rounded contours and semantic palette as the family. */
export function DvCloudDrop(props: DvIllustrationProps) {
return (
<IllustrationFrame {...props}>
<path
d="M62 84V65C62 49 66 45 82 45H94C105 45 106 56 119 56H155C173 56 178 61 178 80V120H62Z"
fill="var(--illustration-line)"
stroke="var(--illustration-line)"
/>
<path
d="M104 29H128C134 29 137 31 141 35L151 45C155 49 156 52 156 59V99C156 113 152 117 138 117H104C90 117 86 113 86 99V48C86 33 90 29 104 29Z"
fill="var(--illustration-paper)"
/>
<path
d="M134 31V42C134 52 138 56 148 56H154M100 65h27M100 76h18"
stroke="var(--illustration-line)"
strokeWidth="2.5"
/>
<path
d="M120 83C169 83 181 85 181 98C181 104 178 117 175 124C171 135 163 137 120 137C77 137 69 135 65 124C62 117 59 104 59 98C59 85 71 83 120 83Z"
fill="var(--illustration-fill)"
/>
<path d="M74 89C98 88 142 88 166 89" stroke="var(--illustration-paper)" strokeWidth="2.5" />
<g className={FLOAT}>
<path
d="M120 96C135 96 138 99 138 112C138 125 135 128 120 128C105 128 102 125 102 112C102 99 105 96 120 96Z"
fill="var(--illustration-paper)"
stroke="var(--illustration-line)"
/>
<path d="M120 120v-16m-6 6 6-6 6 6" stroke="var(--illustration-accent)" strokeWidth="2.5" />
</g>
<path d="M178 40v10m-5-5h10M55 69h7" stroke="var(--illustration-line)" />
</IllustrationFrame>
);
}
import type { ComponentType } from 'react';
import type { DvIllustrationProps } from '@/components/devvarena-ui/dv-illustrations';
import * as DvIllustrations from '@/components/devvarena-ui/dv-illustrations';
type IllustrationKey<K extends string> = K extends `Dv${infer Name}` ? Uncapitalize<Name> : never;
export type IllustrationName = IllustrationKey<keyof typeof DvIllustrations>;
/** Auto-derived catalog of all exported Dv illustrations (sorted A–Z) for browsing; import named illustrations directly in product components. */
export const illustrationRegistry = Object.fromEntries(
Object.entries(DvIllustrations)
.filter(([key]) => key.startsWith('Dv'))
.map(
([key, Illustration]) =>
[key.slice(2, 3).toLowerCase() + key.slice(3), Illustration] as const,
)
.sort(([a], [b]) => a.localeCompare(b)),
) as Record<IllustrationName, ComponentType<DvIllustrationProps>>;