Skip to content

@avatune/fatin-verse-theme

Source: packages/assets/fatin-verse-theme/README.md

Avatar theme for Avatune using fatin verse design assets.

Terminal window
npm install @avatune/fatin-verse-theme

This theme is available for multiple frameworks: React, Vue, Svelte, and Vanilla JavaScript.

import { Avatar } from '@avatune/react'
import theme from '@avatune/fatin-verse-theme/react'
function App() {
return (
<Avatar
theme={theme}
size={300}
seed="optional-seed-for-random-generation"
/>
)
}
<script setup lang="ts">
import { Avatar } from '@avatune/vue'
import theme from '@avatune/fatin-verse-theme/vue'
</script>
<template>
<Avatar
:theme="theme"
:size="300"
seed="optional-seed-for-random-generation"
/>
</template>
<script lang="ts">
import { Avatar } from '@avatune/svelte'
import theme from '@avatune/fatin-verse-theme/svelte'
</script>
<Avatar
theme={theme}
size={300}
seed="optional-seed-for-random-generation"
/>
import { avatar } from '@avatune/vanilla'
import theme from '@avatune/fatin-verse-theme/vanilla'
const container = document.getElementById('avatar-container')
const svg = avatar({
theme,
size: 300,
seed: 'optional-seed-for-random-generation',
})
container?.appendChild(svg)

You can override specific avatar parts:

<Avatar
theme={theme}
size={300}
hair="curlyPuff" // Choose specific hair style
hairColor="#FF5733" // Custom hair color
body="hoodie" // Choose specific clothing
bodyColor="#3498DB" // Custom clothing color
/>

This theme uses Fatin Verse 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/fatin-verse-assets package.

import { hair, eyes, mouth } from '@avatune/fatin-verse-assets';
import { HairShort, EyesBoring, MouthSmile } from '@avatune/fatin-verse-assets/react';
import { HairShort, EyesBoring, MouthSmile } from '@avatune/fatin-verse-assets/svelte';
import { HairShort, EyesBoring, MouthSmile } from '@avatune/fatin-verse-assets/vue';
PreviewFilename
beauty-mark
cap
earpiece-left
earring-right
glasses-round
glasses-square
headset-mic
mask
visor-glasses
PreviewFilename
hoodie
jacket
scarf-top
shirt-tie
striped-overall
suit
turtleneck
PreviewFilename
brow-angled
brow-flat
brow-raised
brow-soft
brow-thick
brow-thin
PreviewFilename
eyes-focused
eyes-happy
eyes-neutral
eyes-surprised
eyes-wide
PreviewFilename
beard
mustache
PreviewFilename
curly-puff
curly-top
curved-long
double-buns
long-braid
long-straight
long-wave
low-bun
short-curly
short-flip
short-messy
short-wave
side-ponytail
side-sweep
spiky
tight-curls
volumized
PreviewFilename
diamond
heart
oval
pear
round
square
thin
triangle
wide
PreviewFilename
neutral-line
smile-small
smile-soft
smirk-left
smirk-right
tiny-dot
PreviewFilename
nose-curve
nose-long
nose-pointy
nose-round
nose-small
nose-soft

This theme package is licensed under MIT (see LICENSE.md).

The design assets used in this theme are separately licensed. See the asset package for details.

Terminal window
# Build the theme
bun run build
# Build in watch mode
bun run dev
# Type checking
bun run check-types