|
| 1 | +# Catnip AI — Free Cat Mascot Kit |
| 2 | + |
| 3 | +> Originally designed for PitchShow's AI chat interface. |
| 4 | +> Line-art style, pure SVG, MIT/Apache 2.0. Free to use. |
| 5 | +
|
| 6 | +--- |
| 7 | + |
| 8 | +## Files |
| 9 | + |
| 10 | +| File | Description | |
| 11 | +|------|-------------| |
| 12 | +| `cat-icon.svg` | Static icon, transparent bg, 256×256 | |
| 13 | +| `catnip-preview.html` | Live preview with all states + code snippets | |
| 14 | + |
| 15 | +--- |
| 16 | + |
| 17 | +## SVG (copy-paste) |
| 18 | + |
| 19 | +```svg |
| 20 | +<svg viewBox="0 0 48 48" width="28" height="28" fill="none" |
| 21 | + stroke="#e5e5e5" stroke-width="2.2" stroke-linecap="round"> |
| 22 | + <path d="M12,20 Q10,8 16,14"/> |
| 23 | + <path d="M36,20 Q38,8 32,14"/> |
| 24 | + <ellipse cx="24" cy="27" rx="15" ry="13"/> |
| 25 | + <circle cx="18" cy="26" r="2.2" fill="#e5e5e5" stroke="none"/> |
| 26 | + <circle cx="30" cy="26" r="2.2" fill="#e5e5e5" stroke="none"/> |
| 27 | + <path d="M23,30 L24,31.5 L25,30" stroke-width="1.5"/> |
| 28 | + <path d="M22,32.5 Q24,34 26,32.5" stroke-width="1.2"/> |
| 29 | + <line x1="4" y1="26" x2="12" y2="28" stroke-width="1" opacity=".6"/> |
| 30 | + <line x1="5" y1="30" x2="12" y2="30" stroke-width="1" opacity=".6"/> |
| 31 | + <line x1="44" y1="26" x2="36" y2="28" stroke-width="1" opacity=".6"/> |
| 32 | + <line x1="43" y1="30" x2="36" y2="30" stroke-width="1" opacity=".6"/> |
| 33 | +</svg> |
| 34 | +``` |
| 35 | + |
| 36 | +## Customise stroke color |
| 37 | + |
| 38 | +- White on dark: `stroke="#e5e5e5"` (default) |
| 39 | +- Purple AI: `stroke="#a78bfa"` |
| 40 | +- Dark on light: `stroke="#1a1a2c"` |
| 41 | +- Custom: replace `stroke` value with any CSS color |
| 42 | + |
| 43 | +## CSS Animations |
| 44 | + |
| 45 | +```css |
| 46 | +/* Idle: slow blink */ |
| 47 | +.cat-eyes { |
| 48 | + animation: catBlink 5s ease-in-out infinite; |
| 49 | + transform-origin: center 26px; |
| 50 | + transform-box: fill-box; |
| 51 | +} |
| 52 | +/* Working: head wobble + fast double blink */ |
| 53 | +.cat-working { animation: catTilt 1.5s cubic-bezier(.4,0,.2,1) infinite; } |
| 54 | +.cat-working .cat-eyes { animation: catBlinkFast 2s cubic-bezier(.4,0,.2,1) infinite; } |
| 55 | + |
| 56 | +@keyframes catBlink { |
| 57 | + 0%,38%,42%,100% { transform: scaleY(1); } |
| 58 | + 40% { transform: scaleY(0.05); } |
| 59 | +} |
| 60 | +@keyframes catBlinkFast { |
| 61 | + 0%,35%,42%,100% { transform: scaleY(1); } |
| 62 | + 38% { transform: scaleY(0.05); } |
| 63 | + 70%,74% { transform: scaleY(1); } |
| 64 | + 72% { transform: scaleY(0.05); } |
| 65 | +} |
| 66 | +@keyframes catTilt { |
| 67 | + 0%,100% { transform: rotate(-5deg); } |
| 68 | + 50% { transform: rotate(5deg); } |
| 69 | +} |
| 70 | +``` |
| 71 | + |
| 72 | +## React component |
| 73 | + |
| 74 | +```tsx |
| 75 | +interface Props { size?: number; animate?: 'idle' | 'working' | 'none' } |
| 76 | +function CatIcon({ size = 28, animate = 'idle' }: Props) { |
| 77 | + const s = '#e5e5e5'; |
| 78 | + return ( |
| 79 | + <svg viewBox="0 0 48 48" width={size} height={size} fill="none" |
| 80 | + stroke={s} strokeWidth={2.2} strokeLinecap="round"> |
| 81 | + <path d="M12,20 Q10,8 16,14"/> |
| 82 | + <path d="M36,20 Q38,8 32,14"/> |
| 83 | + <ellipse cx="24" cy="27" rx="15" ry="13"/> |
| 84 | + <g className={animate === 'idle' ? 'cat-eyes' : animate === 'working' ? 'cat-eyes-fast' : ''}> |
| 85 | + <circle cx="18" cy="26" r="2.2" fill={s} stroke="none"/> |
| 86 | + <circle cx="30" cy="26" r="2.2" fill={s} stroke="none"/> |
| 87 | + </g> |
| 88 | + <path d="M23,30 L24,31.5 L25,30" strokeWidth={1.5}/> |
| 89 | + <path d="M22,32.5 Q24,34 26,32.5" strokeWidth={1.2}/> |
| 90 | + <line x1="4" y1="26" x2="12" y2="28" strokeWidth={1} opacity={0.6}/> |
| 91 | + <line x1="5" y1="30" x2="12" y2="30" strokeWidth={1} opacity={0.6}/> |
| 92 | + <line x1="44" y1="26" x2="36" y2="28" strokeWidth={1} opacity={0.6}/> |
| 93 | + <line x1="43" y1="30" x2="36" y2="30" strokeWidth={1} opacity={0.6}/> |
| 94 | + </svg> |
| 95 | + ); |
| 96 | +} |
| 97 | +``` |
| 98 | + |
| 99 | +--- |
| 100 | + |
| 101 | +## License |
| 102 | + |
| 103 | +Apache 2.0 — free to use commercially and personally. |
| 104 | +Credit appreciated but not required: *"Catnip AI by Wu_JiaDe / PitchShow"* |
0 commit comments