Skip to content

@avatune/kyute-theme

Source: packages/assets/kyute-theme/README.md

Avatar theme for Avatune using kyute design assets.

Terminal window
npm install @avatune/kyute-theme

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

import { Avatar } from '@avatune/react'
import theme from '@avatune/kyute-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/kyute-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/kyute-theme/svelte'
</script>
<Avatar
theme={theme}
size={300}
seed="optional-seed-for-random-generation"
/>
import { avatar } from '@avatune/vanilla'
import theme from '@avatune/kyute-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="bob" // Choose specific hair style
hairColor="#FF5733" // Custom hair color
body="casual" // Choose specific clothing
bodyColor="#3498DB" // Custom clothing color
/>

This theme uses Kyute 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/kyute-assets package.

import { hair, eyes, mouth } from '@avatune/kyute-assets';
import { HairShort, EyesBoring, MouthSmile } from '@avatune/kyute-assets/react';
import { HairShort, EyesBoring, MouthSmile } from '@avatune/kyute-assets/svelte';
import { HairShort, EyesBoring, MouthSmile } from '@avatune/kyute-assets/vue';
PreviewFilename
casual
shirt
tshirt
turtleneck
PreviewFilename
standard
PreviewFilename
thick1
thick2
thickSad
thin
thinCurly
thinWide
PreviewFilename
big
huge
medium
oval
standard
PreviewFilename
blushes
freckles
PreviewFilename
beard
bigBeard
mustache
PreviewFilename
aviator
harry
round
standard
PreviewFilename
bob
curly
curlyMedium
elvis
long
longThick
longWavy
ponyTail
rapunzel
short
stylish
thick
topKnot
PreviewFilename
standard
PreviewFilename
lips1
lips2
lipsSmile
open
openDimples
smile1
smile2
smileOpen
smirk
wideOpen

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 Aaron Gitlin. Modifications were made to adapt them for composable SVG avatars.

For full details, see CREDITS.md.

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