中文 | English
Christmas-only SVG icons for decorating your GitHub Profile README.
This kit does not generate full profile designs or README layouts.
Live demo: https://kangchainx.github.io/github-christmas-kit/
index.html: single-file SPA (React 18 + Tailwind via CDN)assets/icons.json: icon manifest (the list shown on the site)assets/svg/: animated SVG icons (viewBox="0 0 64 64")
- Open the demo and pick an icon.
- Click
Markdown/URL/HTMLon the icon card to copy. - Paste into your GitHub Profile README (repo named
<username>/<username>), commit, then refresh your profile.
- GitHub Pages base URL: https://kangchainx.github.io/github-christmas-kit/assets/svg/
- Example (Markdown):
[](https://kangchainx.github.io/github-christmas-kit/)The website reads assets/icons.json to render the icon grid and search.
Schema:
id: unique identifier (string)name: SVG filename without.svg(string)labels: optional i18n labelsen: Englishzh: 简体中文
Example:
{
"id": "santa-hat",
"name": "santa-hat",
"labels": { "en": "Santa Hat", "zh": "圣诞帽" }
}Notes:
- When served over HTTP(S) (e.g. GitHub Pages / local server), the app fetches
assets/icons.json. - When opened via
file://, browsers usually blockfetch()for local files, soindex.htmluses a built-in fallback list.- For the best contributor experience, use a local server (see below).
- The icon grid is paginated: 12 icons per page.
- Searching resets to page 1 automatically.
Open index.html directly in your browser (requires network access to load CDN assets).
Note: opening via file:// may block clipboard access. For the best experience, use a local server:
python3 -m http.server 5173
# open http://localhost:5173/npm install
npm run dev- Create an SVG icon (keep it readable at small sizes), with a looping animation (
repeatCount="indefinite"). - Put it into
assets/svg/(kebab-case filename, e.g.santa-hat.svg). - Add an entry to
assets/icons.json(so it appears in the site list). - Open a Pull Request.
Tip: You can preview your SVG in the website’s “Contributor Lab” section before submitting.
Create an animated SVG icon of a Santa Hat with viewBox="0 0 64 64" (transparent background). Style: bold, cute, and readable on a dark background.
Colors & structure:
- Red cap with a subtle vertical gradient (top #fb7185 → bottom #ef4444), use a linearGradient id="hatRed"
- Soft white brim (rounded rect/path), optional light gray highlight line
- White pom-pom (circle) on the tip
Looping animations (repeatCount="indefinite"):
- Float the whole hat up/down with animateTransform translate: "0 0; 0 -2; 0 0" dur="1.6s"
- Slight tilt with animateTransform rotate around (32,44): "-3 32 44; 3 32 44; -3 32 44" dur="1.6s"
- Pom-pom bounce by animating its radius: "6; 6.6; 6" dur="1.6s"
Return only the SVG code (no markdown). Keep it self-contained (no external assets). To create other icons in the same style, replace “Santa Hat” with another Christmas item.
- Format: SVG
- Size:
viewBox="0 0 64 64" - Background: transparent
- Colors: prefer red (
#ef4444,#dc2626), green (#22c55e,#15803d), white
MIT — see LICENSE.