/ui-pack:design-asset-sourcingfrom ui-pack
Use whenever the user asks to add or improve an illustration, icon, image, logo, font or palette in a UI, even if they name no source. Use when a task needs illustrations, icons, SVG logos, stock photos, placeholder images or fake data, background patterns, fonts, color palettes, UI templates/component blocks, device mockups, or audio - routes to a vetted resource library, gives copy-paste fetch endpoints, and enforces license checks before anything ships.
Ships in ui-pack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Find, fetch, and transform free design assets. Never hand-draw an SVG or invent a hex palette when a canonical source exists.
Your final reply must do one of two things. Name each asset you added with its source and its license. Or state that you added no asset and why. Never add an inline hand-drawn icon or SVG as a substitute for sourcing one.
Any of these appear in the task:
Run this before the routing table. Skipping it is the most common failure of this skill.
The trigger is the user asking for an asset, or a task that cannot be completed without one. "This UI looks bare" is not a trigger — bare UI is usually a copy, hierarchy, or missing-action problem, and sourcing art papers over it.
| Symptom | Actual defect | Right fix |
|---|---|---|
| Empty state feels weak | Copy doesn't say why it's empty; no next action | Two lines of copy (distinguish "no data yet" from "filters matched nothing") + a button. Optional 20–24px icon from the installed set. |
| Page looks plain | Spacing, type scale, hierarchy | Layout work, not decoration |
| Dashboard feels flat | No visual encoding of the data | Better chart/table, not a background pattern |
| Loading looks janky | No skeleton | Skeleton, not a spinner illustration |
| "Needs personality" | Only true for marketing/onboarding surfaces | Ask the user before sourcing |
Weight is the tell: an illustration in a paginated list pushes real controls below the fold and re-appears every time a filter misses. That's a regression, not a polish.
In dense/professional surfaces — analytics views, data tables, admin panels, reports — the bar is much higher. Decorative art competes with the data and is usually unwanted; many teams ban it outright there. Marketing pages, onboarding, and landing surfaces are where art earns its place. Check the project's own conventions before adding anything.
Ask, with the cheap option first: "Empty state here can be (a) icon + copy + 'clear filters' action, or (b) a full illustration. (a) is 15 lines and no new assets — which do you want?" Do not source first and present it as a fait accompli.
| Need | Go to | First pick |
|---|---|---|
| Illustrations, empty states, spot art | references/illustrations.md | unDraw, Storyset, Open Peeps |
| UI icons | references/icons-and-logos.md | Iconify API over Lucide / Phosphor / Tabler |
| Brand logos | references/icons-and-logos.md | Simple Icons CDN, SVGL, VectorLogoZone |
| Stock photos & video | references/photos-and-video.md | Unsplash, Pexels, Nappy |
| Placeholder images / avatars / fake data | references/placeholders-and-fake-data.md | placehold.co, picsum, DiceBear, Faker |
| Patterns, gradients, blobs, dividers | references/backgrounds-and-patterns.md | Haikei, MagicPattern, Hero Patterns |
| Fonts & pairings | references/fonts-and-color.md | Google Fonts, Fontshare, Fontpair |
| Palettes, ramps, contrast, dataviz colors | references/fonts-and-color.md | Leonardo, tints.dev, ColorBrewer |
| UI kits, blocks, page templates, CSS frameworks | references/ui-kits-and-templates.md | shadcn/ui, HyperUI, Tailblocks, Cruip |
| Device mockups, screenshot polish, 3D | references/mockups-and-3d.md | shots.so, Pika, ShapeFest |
| Sound & music | references/audio.md | Freesound, Pixabay Music, YouTube Audio Library |
Read only the reference file you need. Do not read all of them.
grep -rEh '"(lucide-react|@heroicons/react|@phosphor-icons/react|@tabler/icons-react|react-icons)"' --include=package.json .
grep -rl "from 'lucide-react'" --include=*.tsx src | wc -l # which one is ACTUALLY used
A library in package.json with zero imports is a dead dep, not the project's set. Reusing beats sourcing — if the repo ships its own UI package, the answer to "I need a component" is in there, not on the web.ls node_modules/lucide-react/dist/esm/icons/ | grep -E '^(inbox|file-search)'
removeViewBox disabled — see below), strip width/height, map hardcoded hex to currentColor or CSS variables so the asset follows the theme.ASSETS.md / CREDITS.md line when attribution is required. Never skip this.cd frontend && npx tsc --build. A new component file is still a code change.src/components/illustrations/ if shared. Inline it as JSX only if it must react to theme/props; otherwise ship a .svg file and <img> it so it stays out of the JS bundle.Before an asset ships, know its license. Three buckets:
Additional hard rules:
npm i @fontsource/<font> or download the woff2.Icons — Iconify API covers 200+ sets with one URL shape:
curl -s "https://api.iconify.design/search?query=calendar&limit=10" # find
curl -s "https://api.iconify.design/lucide/house.svg" -o house.svg # fetch
curl -s "https://api.iconify.design/lucide/house.svg?color=%23fff&height=24"
curl -s "https://api.iconify.design/collections" # list sets
Icons from CDN when you want the raw repo file:
https://cdn.jsdelivr.net/npm/lucide-static/icons/<name>.svg
https://cdn.jsdelivr.net/npm/@phosphor-icons/core/assets/regular/<name>.svg
https://cdn.jsdelivr.net/npm/heroicons/24/outline/<name>.svg
https://unpkg.com/@tabler/icons/icons/outline/<name>.svg
Brand logos:
curl -s "https://cdn.simpleicons.org/github" # auto-colored
curl -s "https://cdn.simpleicons.org/github/white" # forced color
curl -s "https://api.svgl.app" | jq '.[0:3]' # SVGL catalog JSON
curl -s "https://api.svgl.app/categories"
Placeholder images (dev only):
https://placehold.co/600x400/1f2937/f9fafb.png?text=Chart # solid, labeled
https://picsum.photos/seed/<stable-seed>/400/300 # real photos, deterministic
https://api.dicebear.com/9.x/<style>/svg?seed=<name> # avatars, deterministic
https://ui-avatars.com/api/?name=Ana+Silva&background=random # initials avatars
Fake data:
npm i -D @faker-js/faker # local generation, no network, seedable
curl -s https://randomuser.me/api/?results=5
curl -s https://dummyjson.com/products?limit=5
Illustrations — unDraw has an undocumented but working search API returning direct CDN URLs:
curl -s "https://undraw.co/api/search?q=no%20data" # NOTE: q= (not query=), min 3 chars
# -> {"results":[{"title":"No data","newSlug":"no-data_ig65",
# "media":"https://cdn.undraw.co/illustrations/no-data_ig65.svg"}, ...]}
curl -s "https://cdn.undraw.co/illustrations/no-data_ig65.svg" -o art.svg
Slugs carry a random 4-char suffix — always discover them via the search endpoint, never construct a CDN URL by hand.
SVG cleanup after any download — the default SVGO preset deletes viewBox, which breaks responsive scaling. Always override it:
cat > svgo.config.mjs <<'EOF'
export default {
multipass: true,
plugins: [
{ name: 'preset-default', params: { overrides: { removeViewBox: false } } },
{ name: 'removeDimensions' }, // drops width/height, keeps viewBox
],
};
EOF
npx svgo --config svgo.config.mjs --input in.svg --output out.svg
Then map the palette. unDraw's accent is always #6c63ff; the rest are #3f3d56 (ink), #f2f2f2/#e6e6e6 (surfaces), #fff (highlight). On a dark UI the surfaces and white glare, so map all five, not just the accent:
sed -e 's/#6c63ff/var(--illo-accent)/g' -e 's/#3f3d56/var(--illo-ink)/g' \
-e 's/#f2f2f2/var(--illo-surface-2)/g' -e 's/#e6e6e6/var(--illo-surface-1)/g' \
-e 's/#fff/var(--illo-highlight)/g' out.svg > tokens.svg
grep -oE '#[0-9a-fA-F]{3,6}' tokens.svg # must print nothing
Some setups put a token-saving proxy in front of the shell (RTK and similar hooks). Two symptoms, both easy to misread as a broken API:
{"name": string, "total": int}) instead of values — the body is being summarized, not returned. Re-run the call in raw/passthrough mode (rtk proxy curl ...) before concluding the endpoint changed.npx <pkg> gets rewritten to npm and fails with Unknown command: "svgo@3". Same fix: raw passthrough.Verified dead or defunct as of 2026-08: source.unsplash.com (retired), via.placeholder.com, placekitten.com, source.boringavatars.com, iradesign.io, error404.fun. If a URL from a reference file 404s, note it and move to the next pick rather than improvising a lookalike domain.
Library seeded from swyx's spark-joy (https://github.com/swyxio/spark-joy) plus the r/webdev free-SVG-illustrations thread, then link-checked. Design-resource domains rot fast and expired ones get bought by spammers — before recommending anything not in these files, verify it:
curl -s -o /dev/null -w "%{http_code} %{url_effective}\n" -L --max-time 10 "<url>"
403/429/455 = bot-blocked but alive. 000/404/410 = dead; add it to the "Dead" list in the relevant reference file instead of silently dropping it.
references/audio.md (opens in a new tab)references/backgrounds-and-patterns.md (opens in a new tab)references/fonts-and-color.md (opens in a new tab)references/icons-and-logos.md (opens in a new tab)references/illustrations.md (opens in a new tab)references/mockups-and-3d.md (opens in a new tab)references/photos-and-video.md (opens in a new tab)references/placeholders-and-fake-data.md (opens in a new tab)references/ui-kits-and-templates.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub iah-uch/clanker-pack --plugin ui-pack7 skills in this plugin
/animateBuild an animation from scratch, making the decisions in the order that determines whether it feels right — should it animate at all, what purpose, which tool, which properties, which curve and duration, how it interrupts, how it exits. Writes the implementation. Use when asked to animate something, add motion, make a component feel alive, or build a transition. For critiquing existing motion use review-animations; for auditing a whole codebase use improve-animations./animation-performanceKeep web animations inside the frame budget — animate composite-only properties, keep motion off the main thread when the page is busy, and find the cause when an animation drops frames. Covers the layout/paint/composite pipeline, cheaper property swaps, CSS vs WAAPI vs requestAnimationFrame, Motion's hardware-accelerated path, React re-rendering per frame, inherited CSS variable recalculation, blur cost, and when `will-change` actually helps. Use when an animation is janky, choppy, stutters, or drops frames; when choosing which property to animate; when deciding between CSS and JS animation on performance grounds; or when reaching for `will-change` or GPU layers. For choosing easing, duration, or whether to animate at all use animate; for reviewing motion as a whole use review-animations.