SVG Color Customizer with shadcn Theme Integration
Transform your SVGs into theme-aware React components. Import SVGs, customize colors with shadcn themes, and export clean JSX components that adapt to your design system.
- Theme Integration - Import shadcn CSS theme configs and map colors directly
- Smart Color Mapping - Choose which theme colors replace which SVG colors
- React Component Export - Convert SVGs to JSX with proper theming
- Code Transformation - Remove IDs, classes, sizing, and format output
- Live Preview - See changes instantly with theme color previews
- Modern Interface - Built with shadcn/ui components
- Import - Paste or upload your SVG
- Map Colors - Import your shadcn theme and map SVG colors to theme colors
- Configure - Set export options (React conversion, cleanup, formatting)
- Export - Get theme-aware JSX that uses
hsl(var(--primary))instead of hex colors
Instead of hard-coded colors:
<svg fill="#8b5cf6">
<path d="..." />
</svg>Get theme-integrated components:
<svg fill="hsl(var(--primary))">
<path d="..." />
</svg>- React + TypeScript
- Tailwind CSS + shadcn/ui
- Vite
- Culori (for OKLCH color conversion)
npm install
npm run devnpm run build