Skip to content

@avatune/ashleyy-theme

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

Avatar theme for Avatune using ashleyy design assets.

Terminal window
npm install @avatune/ashleyy-theme

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

import { Avatar } from '@avatune/react'
import theme from '@avatune/ashleyy-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/ashleyy-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/ashleyy-theme/svelte'
</script>
<Avatar
theme={theme}
size={300}
seed="optional-seed-for-random-generation"
/>
import { Component } from '@angular/core'
import { Avatar } from '@avatune/angular'
import theme from '@avatune/ashleyy-theme/angular'
@Component({
selector: 'app-root',
standalone: true,
imports: [Avatar],
template: `
<avatune-avatar
[theme]="theme"
[inputSize]="300"
seed="optional-seed-for-random-generation"
/>
`,
})
export class AppComponent {
theme = theme
}
import { avatar } from '@avatune/vanilla'
import theme from '@avatune/ashleyy-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="afro" // Choose specific hair style
hairColor="#FF5733" // Custom hair color
body="buttonShirt" // Choose specific clothing
bodyColor="#3498DB" // Custom clothing color
/>

This theme uses Ashleyy 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/ashleyy-assets package.

import { hair, eyes, mouth } from '@avatune/ashleyy-assets';
import { HairShort, EyesBoring, MouthSmile } from '@avatune/ashleyy-assets/react';
import { HairShort, EyesBoring, MouthSmile } from '@avatune/ashleyy-assets/svelte';
import { HairShort, EyesBoring, MouthSmile } from '@avatune/ashleyy-assets/vue';
PreviewFilename
earrings
mask
PreviewFilename
buttonShirt
doubleCollarShirt
knitSweater
peterPanCollarShirt
polkaDotShirt
tieShirt
turtleneckShirt
PreviewFilename
standard
PreviewFilename
glasses
PreviewFilename
afro
curlyBun
longWavy
mediumStraigh
ponyTail
short
shortCurly
sideSwept
PreviewFilename
standard
PreviewFilename
smile
standard
PreviewFilename
standard

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