figma-logos-svgl
Use when working with Figma and brand or product logos are needed — triggers on brand names (React, Next.js, Vercel, Stripe, GitHub), company logos, or requests to add/insert logos in Figma designs.
- License 许可
- MIT
- 最近更新
- 2026-11-11
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- figma-logos-svgl
- metadata
- { "email": "initred@dou.so", "author": "initred", "version": "1.0.0" }
- description
- Use when working with Figma and brand or product logos are needed — triggers on brand names (React, Next.js, Vercel, Stripe, GitHub), company logos, or requests to add/insert logos in Figma designs.
03 SKILL.md 正文
SVGL Logos for Figma
Fetch real brand and product SVG logos from the SVGL API and insert them into Figma designs. Never draw logos manually — always use this workflow to get accurate logos from a curated collection of 500+ brand SVGs.
SVGL vs Iconify: Use this skill for brand/product logos (React, Vercel, Stripe, GitHub). Use figma-icons-iconify for UI icons (arrows, alerts, settings).
Prerequisites
- The
figma-useskill MUST be loaded before anyuse_figmatool call. Always invoke it first. fetch()is NOT available insideuse_figmacode. All HTTP requests must happen before callinguse_figma.- Use
Bash(curl -s ...)instead ofWebFetchto call the SVGL API. The SVGL API may return 403 for WebFetch requests but works with curl.
Core Workflow
Step 1: Search for the Logo
Use the SVGL search endpoint to find the logo:
curl -s "https://api.svgl.app?search={name}"
Example:
curl -s "https://api.svgl.app?search=react"
This returns a JSON array. Each item has a route field which is either:
- A string — single SVG URL (e.g.,
"https://svgl.app/library/preact.svg") - A theme object — with
lightanddarkvariants:{ "light": "https://svgl.app/library/react_light.svg", "dark": "https://svgl.app/library/react_dark.svg" }
Pick the matching result by title, then choose the appropriate variant (light/dark) based on the design context.
Note: The
categoryfield can be a string ("Software") or an array (["Software", "Privacy"]). Handle both types when filtering by category.
Step 2: Fetch the SVG Content
Fetch the raw SVG using the URL from Step 1:
curl -s "https://svgl.app/library/{filename}.svg"
Example:
curl -s "https://svgl.app/library/react_dark.svg"
Step 3: Insert into Figma via use_figma
Pass the fetched SVG string into a use_figma call using figma.createNodeFromSvg():
// Paste the exact SVG string from Step 2
const svgString = `<svg xmlns="http://www.w3.org/2000/svg" ...>...</svg>`;
const node = figma.createNodeFromSvg(svgString);
// Name format: SVGL/{logo-name} for easy identification
node.name = "SVGL/React";
// IMPORTANT: Preserve aspect ratio when resizing.
// Extract original dimensions from the created node, then scale proportionally.
const originalWidth = node.width;
const originalHeight = node.height;
const targetHeight = 24; // desired height
const targetWidth = targetHeight * (originalWidth / originalHeight);
node.resize(targetWidth, targetHeight);
// Append to target frame (replace TARGET_ID with actual node ID)
const target = figma.getNodeById("TARGET_ID");
target.appendChild(node);
return { createdNodeIds: [node.id] };
Aspect ratio is critical. Brand logos are rarely square (e.g., Nuxt is 256x168). Always calculate proportional dimensions from the original SVG width/height. Never force a square resize like
node.resize(16, 16)unless the original SVG is square.
API Endpoints
| Endpoint | Description | Example |
|---|---|---|
https://api.svgl.app?search={query} |
Search logos by name | ?search=vercel |
https://api.svgl.app?limit={n} |
Get all logos with limit | ?limit=10 |
https://api.svgl.app/category/{name} |
Get logos by category | /category/software |
https://api.svgl.app/categories |
List all categories | — |
Handling Light/Dark Variants
Many logos have separate light and dark versions. Check the route field type:
# Search result with theme variants:
# { "title": "React", "route": { "light": "...react_light.svg", "dark": "...react_dark.svg" } }
# For dark backgrounds → use the dark variant
curl -s "https://svgl.app/library/react_dark.svg"
# For light backgrounds → use the light variant
curl -s "https://svgl.app/library/react_light.svg"
When unsure which variant to use: default to the light variant, or check the target frame's background color.
Wordmarks
Some logos also have wordmark versions (logo with text). These are in the wordmark field:
{
"title": "React",
"route": { "light": "...react_light.svg", "dark": "...react_dark.svg" },
"wordmark": {
"light": "...react-wordmark-light.svg",
"dark": "...react-wordmark-dark.svg"
}
}
Use the wordmark URL when the user requests a logo with text or a full brand mark.
Recoloring After Insertion
If you need to change the logo color after inserting into Figma, traverse the node's children and update fills:
const logoNode = figma.getNodeById("LOGO_NODE_ID");
function recolor(node, color) {
if ("fills" in node && node.fills.length > 0) {
node.fills = [{ type: "SOLID", color }];
}
if ("strokes" in node && node.strokes.length > 0) {
node.strokes = [{ type: "SOLID", color }];
}
if ("children" in node) {
for (const child of node.children) {
recolor(child, color);
}
}
}
// Color values are 0-1 range (not 0-255)
recolor(logoNode, { r: 1, g: 1, b: 1 });
return { mutatedNodeIds: [logoNode.id] };
Handling Errors
- Empty search results: If
curl -s "https://api.svgl.app?search={name}"returns[], the logo is not in SVGL. Try alternative names or check spelling. - 404 from SVG URL: The
routeURL is broken or outdated. Re-search to get the latest URL. figma.createNodeFromSvg()fails: Strip the<?xml ...?>declaration from the SVG string and retry. Some SVGL SVGs include XML preambles that can cause issues.
Constraints
- NEVER draw logos manually with vector paths, shapes, or text when the logo is available on SVGL.
- NEVER use
fetch()insideuse_figma— it does not exist in the Figma Plugin API sandbox. Always fetch SVG viaBash(curl -s ...)before theuse_figmacall. - Always load the
figma-useskill before making anyuse_figmatool call. - Always return created node IDs from
use_figmacalls for subsequent operations. - Name logo nodes as
SVGL/{LogoName}(e.g.,SVGL/React,SVGL/Vercel,SVGL/GitHub). This makes logos identifiable by their source in the Figma layers panel. - Respect light/dark variants — choose the appropriate variant based on the design's background color.
- SVG may contain
<?xml ...?>declaration —figma.createNodeFromSvg()handles this, but if it fails, strip the XML declaration before passing to Figma. - NEVER force-resize to a square. Always preserve the original SVG aspect ratio. Calculate proportional width/height from
node.widthandnode.heightaftercreateNodeFromSvg(), then resize withnode.resize(targetHeight * (node.width / node.height), targetHeight).
04 同仓库更多 Skills
template-skill
Replace with description of the skill and when the agent should use it.
writing-project-readme
Use when explicitly invoked to write or fully rewrite a project README that must cover tech stack, architecture, features, and service description in a single document — readable by non-engineers (PM, design, ops, domain experts) as well as developers. Triggers on requests like "write the README", "redo README.md based on the whole project", "make a comprehensive README everyone can understand". Skip for one-section edits, badge tweaks, or generating a CHANGELOG.
ux-writing-korean
한국어로 UI/UX 문구를 작성하거나 검수할 때 사용합니다. 해요체, 능동형, 긍정형, 캐주얼 경어, 명사 조합 회피 등 5가지 핵심 원칙과 예외 규칙을 적용합니다.
token-audit
Audit a Claude Code or Codex CLI project for token waste and fix it with the user's approval. Use whenever the user wants to check, reduce, or optimize token usage, context bloat, or API/subscription costs of an agent project — phrases like "토큰 점검", "토큰 낭비 찾아줘", "토큰 최적화", "컨텍스트 최적화", "Claude Code 비용 줄여줘", "API 비용이 너무 나와", "audit token efficiency", "check my CLAUDE.md/AGENTS.md/MCP setup". Also trigger when the user complains that sessions hit context limits too fast, that costs jumped unexpectedly, or asks whether their project setup is token-efficient — even if they don't say the word "token".
release-showcase
정식 릴리스의 변경을 이전·이후 스크린샷, 클릭 흐름 녹화 영상, 비교·단계·탭·흐름도 같은 HTML 컴포넌트로 보여 주는 파일 하나짜리 릴리스 문서를 만든다. 텍스트뿐인 릴리스 노트로는 어떤 UX가 바뀌었고 새 기능을 어떻게 쓰는지 감이 안 올 때 쓴다. '릴리스 노트 문서 만들어 줘', '릴리스 쇼케이스', '이번 배포 변경사항 정리해서 공유', '릴리즈 노트 HTML', '변경사항을 화면으로 보여 주는 문서', '업데이트 소개 페이지', 'what's new 페이지', 'release notes with screenshots', 'changelog page', '배포 공지 자료'처럼 버전 태그 사이의 변경을 팀·고객에게 시각적으로 알릴 때 반드시 사용한다. git 태그로 릴리스하는 저장소라면 웹·데스크톱·모바일 어느 앱이든 쓴다. 커밋 목록만 필요한 CHANGELOG.md 갱신, 릴리스 태그·배포 자체, 마케팅 영상 제작에는 쓰지 않는다.
public-sector-rfp-authoring
Use when drafting or revising Korean government or local-government bid notices, requests for proposals, statements of work, or public-sector service/project specifications from the ordering agency's perspective.