---
id: frontend-svg-patterns
title: SVG — Scaling / Animation / Sprite / React
category: Coding
status: draft
source_trust_level: B
verification_status: conceptual
created_at: 2026-05-09
updated_at: 2026-05-09
tags: [frontend, svg, vector, vibe-coding]
tech_stack: { language: "SVG / CSS / TS", applicable_to: ["Frontend"] }
applied_in: []
aliases: [SVG, vector graphics, SVG sprite, viewBox, lucide-react, animation]
---
# SVG Patterns
> Vector graphics. **Scalable, small, scriptable, themeable**. Icon / illustration / chart / animation. PNG 보다 거의 항상 좋음 (단순 graphic).
## 📖 핵심 개념
- viewBox: coordinate system.
- preserveAspectRatio: scaling.
- currentColor: 부모 색 따름.
- Sprite: 여러 icon 한 file.
## 💻 코드 패턴
### 기본 SVG
```html
```
### viewBox 가 핵심
```html