Source: packages/assets/yanliu-theme/README.md
Avatar theme for Avatune using yanliu design assets.
npm install @avatune/yanliu-theme
yarn add @avatune/yanliu-theme
pnpm add @avatune/yanliu-theme
bun add @avatune/yanliu-theme
This theme is available for multiple frameworks: React, Vue, Svelte, and Vanilla JavaScript.
import { Avatar } from ' @avatune/react '
import theme from ' @avatune/yanliu-theme/react '
seed = " optional-seed-for-random-generation "
import { Avatar } from ' @avatune/vue '
import theme from ' @avatune/yanliu-theme/vue '
seed = " optional-seed-for-random-generation "
import { Avatar } from ' @avatune/svelte '
import theme from ' @avatune/yanliu-theme/svelte '
seed = " optional-seed-for-random-generation "
import { avatar } from ' @avatune/vanilla '
import theme from ' @avatune/yanliu-theme/vanilla '
const container = document . getElementById ( ' avatar-container ' )
seed: ' optional-seed-for-random-generation ' ,
container ?. appendChild (svg)
You can override specific avatar parts:
hair = " braids " // Choose specific hair style
hairColor = " #FF5733 " // Custom hair color
body = " blouse " // Choose specific clothing
bodyColor = " #3498DB " // Custom clothing color
This theme uses Yanliu style SVG assets for creating customizable avatars. Assets include various options for hair, eyes, eyebrows, mouth, nose, ears, head shape, and body/clothing.
The assets are available in the @avatune/yanliu-assets package.
import { hair, eyes, mouth } from ' @avatune/yanliu-assets ' ;
import { HairShort, EyesBoring, MouthSmile } from ' @avatune/yanliu-assets/react ' ;
import { HairShort, EyesBoring, MouthSmile } from ' @avatune/yanliu-assets/svelte ' ;
import { HairShort, EyesBoring, MouthSmile } from ' @avatune/yanliu-assets/vue ' ;
Preview Filename blouse flowerCardigan simpleCardigan simpleOverall striped sweaterVest sweaterWavy teeBasic teeButtoned teePocket teeRound
Preview Filename bigBeard chevronMustache mustache
Preview Filename bubble curve short split straight underCut
Preview Filename braids hijab medium puff straightLong straightMedium
Preview Filename beanie hat
This theme package is licensed under MIT (see LICENSE.md ).
This project uses avatar design assets licensed under CC BY 4.0 .
Original designs by Yan Liu .
Modifications were made to adapt them for composable SVG avatars.
For full details, see CREDITS.md .