Favicon Gen

作者 jezweb64965d9d9fc7無授權條款1K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫3 天前更新

Generate custom favicons from logos, text, or brand colours. Produces favicon.svg, favicon.ico, apple-touch-icon.png, icon-192/512.png, and web manifest. Use whenever the user wants a favicon, mentions replacing a CMS default favicon, converting a logo into a favicon, creating branded initials icons, or troubleshooting favicon not displaying / iOS black square / missing manifest.

僅含說明Design & Creative
AI 產生的概覽

依標誌、縮寫或品牌配色產生完整的網站圖示包(SVG、ICO、PNG 圖示、資訊清單與 HTML 標籤)。

功能
此技能會引導產出整套網站圖示:從擷取的標誌圖形、縮寫字母組合或品牌形狀建立來源 SVG,再轉換成 favicon.svg、favicon.ico、apple-touch-icon.png、icon-192.png 與 icon-512.png。它也提供網站資訊清單範本,以及應放在網站根目錄的 HTML 連結標籤。參考檔案涵蓋格式規格、標誌擷取、字母組合樣式與形狀範本。
適用情境
當使用者需要網站圖示、要取代 CMS 預設圖示、想把標誌轉成圖示、需要品牌縮寫圖示,或排查圖示顯示問題(例如 iOS 黑方塊、資訊清單缺失)時使用。
執行需求
格式轉換需要 ImageMagick(convert 指令),文件中提供 brew 或 apt 安裝方式;若無法使用 ImageMagick,技能建議改用 favicon.io。技能附帶 SVG 範本、網站資訊清單資源與參考文件,但不含指令碼。標註為 claude-code-only。

Favicon Generator

Generate a complete favicon package from a logo, initials, or brand colours. Produces all required formats and HTML integration code.

Workflow

Step 1: Choose Your Approach

Have a logo with an icon element? YES -> Extract icon from logo NO  -> Have text/initials?         YES -> Create monogram favicon         NO  -> Use branded shape

Step 2: Create Source SVG

Extracted icon — copy icon paths from logo, centre in 32x32 viewBox, simplify for small sizes.

Monogram — use a template from assets/:

xml
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">  <circle cx="16" cy="16" r="16" fill="#0066cc"/>  <text x="16" y="21" font-size="16" font-weight="bold"        text-anchor="middle" fill="#ffffff" font-family="sans-serif">AC</text></svg>

Branded shape — circle (universal), rounded square (modern), shield (security), hexagon (tech).

SVG templates available in assets/ directory.

Step 3: Generate All Formats

Requires ImageMagick (convert command). Install if needed: brew install imagemagick (macOS) or apt install imagemagick (Linux).

bash
# ICO (16x16 + 32x32)convert favicon.svg -define icon:auto-resize=16,32 favicon.ico
# Apple Touch Icon (180x180, SOLID background — transparent = black on iOS)convert favicon.svg -resize 180x180 -background "#0066cc" -alpha remove apple-touch-icon.png
# Android/PWA iconsconvert favicon.svg -resize 192x192 icon-192.pngconvert favicon.svg -resize 512x512 icon-512.png

No ImageMagick? Use https://favicon.io to convert from the SVG instead.

Step 4: Create Web Manifest

Copy and customise assets/manifest.webmanifest:

json
{  "name": "Your Business Name",  "short_name": "Business",  "icons": [    { "src": "/icon-192.png", "sizes": "192x192", "type": "image/png" },    { "src": "/icon-512.png", "sizes": "512x512", "type": "image/png" }  ],  "theme_color": "#0066cc",  "background_color": "#ffffff",  "display": "standalone"}

Step 5: Add HTML Tags

html
<link rel="icon" type="image/svg+xml" href="/favicon.svg"><link rel="icon" type="image/x-icon" href="/favicon.ico"><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="manifest" href="/site.webmanifest"><meta name="theme-color" content="#0066cc">

Place all files in site root (/public/ in Vite/React).


Critical Rules

  • Always generate ALL formats — SVG, ICO, apple-touch-icon, 192, 512, manifest
  • iOS icons MUST have solid backgrounds — transparent = black square
  • Always use bold font weight for monogram text (regular disappears at 16x16)
  • Test at 16x16 — if it's not legible, simplify
  • Never launch with CMS defaults (WordPress "W", etc.)

Format Quick Reference

FormatSizeTransparencyPurpose
favicon.svgVectorYesModern browsers
favicon.ico16+32YesLegacy browsers
apple-touch-icon.png180x180NoiOS home screen
icon-192.png192x192YesAndroid
icon-512.png512x512YesPWA

Asset Files

  • assets/favicon-svg-circle.svg — Circle monogram template
  • assets/favicon-svg-square.svg — Rounded square template
  • assets/favicon-svg-shield.svg — Shield template
  • assets/manifest.webmanifest — Web manifest template

Reference Files

  • references/format-guide.md — Complete format specifications
  • references/extraction-methods.md — Logo icon extraction steps
  • references/monogram-patterns.md — Advanced monogram design
  • references/shape-templates.md — Industry-specific shapes with SVG code

來源與署名

來源:jezweb/claude-skills位於plugins/design-assets/skills/favicon-gen提交64965d9

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架