Getting Started
Follow these steps to go from zero to a rendered avatar using Avatune’s component packages. The examples below use React, but the same flow applies to Vue, Svelte, Vanilla JS, and React Native (see the Frameworks section in the sidebar for framework-specific snippets).
Install the renderer + a theme
Section titled “Install the renderer + a theme”Use your preferred package manager to install the renderer for your framework and at least one theme:
# yarnyarn add @avatune/react @avatune/yanliu-theme# bunbun add @avatune/react @avatune/yanliu-theme# npmnpm install @avatune/react @avatune/yanliu-theme# pnpmpnpm add @avatune/react @avatune/yanliu-theme# yarnyarn add @avatune/vue @avatune/miniavs-theme# bunbun add @avatune/vue @avatune/miniavs-theme# npmnpm install @avatune/vue @avatune/miniavs-theme# pnpmpnpm add @avatune/vue @avatune/miniavs-theme# yarnyarn add @avatune/svelte @avatune/micah-theme# bunbun add @avatune/svelte @avatune/micah-theme# npmnpm install @avatune/svelte @avatune/micah-theme# pnpmpnpm add @avatune/svelte @avatune/micah-theme# yarnyarn add @avatune/vanilla @avatune/kyute-theme# bunbun add @avatune/vanilla @avatune/kyute-theme# npmnpm install @avatune/vanilla @avatune/kyute-theme# pnpmpnpm add @avatune/vanilla @avatune/kyute-theme# yarnyarn add @avatune/react-native react-native-svg @avatune/pacovqzz-theme# bunbun add @avatune/react-native react-native-svg @avatune/pacovqzz-theme# npmnpm install @avatune/react-native react-native-svg @avatune/pacovqzz-theme# pnpmpnpm add @avatune/react-native react-native-svg @avatune/pacovqzz-themeRender your first avatar
Section titled “Render your first avatar”Import the Avatar component and the theme, then pass a seed to generate a deterministic avatar:
import { Avatar } from '@avatune/react'import theme from '@avatune/yanliu-theme/react'
export function ExampleAvatar() { return ( <Avatar theme={theme} seed="user@example.com" size={200} /> )}Avatars render as inline SVG, so they respond instantly to prop changes (size, colors, parts, etc.).
Customize the look
Section titled “Customize the look”Each renderer exposes the same prop surface:
- Select specific parts by name (
hair="braids",eyes="happy") - Override colors with CSS values (
hairColor="#ff6b6b") - Provide layout tweaks via
className/class/style
Themes ship with documented part names inside their respective docs (e.g., packages/yanliu-theme).
Explore more frameworks
Section titled “Explore more frameworks”Need another stack? Head to:
packages/react-nativefor mobile appspackages/vue,packages/svelte,packages/vanillafor web alternatives
Each page includes installation commands and live previews showing the same seed as the code sample.
Next steps
Section titled “Next steps”- Browse available themes under Themes for different art styles.
- Call the REST API to render avatars server-side without bundling themes.
- Experiment with Predictors (hair color, length, skin tone) to seed avatars from AI-generated palettes.
Whenever you are ready for deeper customization—such as mixing assets or building a new theme—jump into the relevant package docs linked in the sidebar.