Avatune
Themes

@avatune/ashley-seo-theme

Avatar theme for Avatune using Ashley Seo assets.

Source: packages/assets/ashley-seo-assets/README.md

Avatar theme for Avatune using ashley seo design assets.

Installation

npm install @avatune/ashley-seo-theme

Usage

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

React

import { Avatar } from '@avatune/react'
import theme from '@avatune/ashley-seo-theme/react'

function App() {
  return (
    <Avatar
      theme={theme}
      size={300}
      seed="optional-seed-for-random-generation"
    />
  )
}

Vue

<script setup lang="ts">
import { Avatar } from '@avatune/vue'
import theme from '@avatune/ashley-seo-theme/vue'
</script>

<template>
  <Avatar
    :theme="theme"
    :size="300"
    seed="optional-seed-for-random-generation"
  />
</template>

Svelte

<script lang="ts">
  import { Avatar } from '@avatune/svelte'
  import theme from '@avatune/ashley-seo-theme/svelte'
</script>

<Avatar
  theme={theme}
  size={300}
  seed="optional-seed-for-random-generation"
/>

Angular

import { Component } from '@angular/core'
import { Avatar } from '@avatune/angular'
import theme from '@avatune/ashley-seo-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
}

Vanilla JavaScript

import { avatar } from '@avatune/vanilla'
import theme from '@avatune/ashley-seo-theme/vanilla'

const container = document.getElementById('avatar-container')
const svg = avatar({
  theme,
  size: 300,
  seed: 'optional-seed-for-random-generation',
})

container?.appendChild(svg)

Customization

You can override specific avatar parts:

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

Design Assets

This theme uses Ashley Seo 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/ashley-seo-assets package.

Using Assets Directly

SVG Paths

import { hair, eyes, mouth } from '@avatune/ashley-seo-assets';

React Components

import { HairShort, EyesBoring, MouthSmile } from '@avatune/ashley-seo-assets/react';

Svelte Components

import { HairShort, EyesBoring, MouthSmile } from '@avatune/ashley-seo-assets/svelte';

Vue Components

import { HairShort, EyesBoring, MouthSmile } from '@avatune/ashley-seo-assets/vue';

Available Assets

Accessories

PreviewFilename
catEars
clownNose
faceMask
glasses
mustache
sailormoonCrown
sleepMask
sunglasses

Eyes

PreviewFilename
angry
cherry
confused
normal
sad
sleepy
starstruck
winking

FaceHair

PreviewFilename
beard
chinHair
fuzz
mustache

Hair

PreviewFilename
bangs
bowlCutHair
braids
bunHair
curlyBob
curlyShortHair
dreads
froBun
halfShavedHead
hijab
mohawk
shavedHead
shortHair
straightHair
wavyBob
PreviewFilename
standart

Mouth

PreviewFilename
awkwardSmile
braces
gapSmile
kawaii
openedSmile
openSad
teethSmile
unimpressed

License & Credits

Theme License

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

Design Assets License

This project uses avatar design assets licensed under CC BY 4.0.

Original designs by Ashley Gaunt-Seo. Modifications were made to adapt them for composable SVG avatars.

For full details, see CREDITS.md.

Development

# Build the theme
bun run build

# Build in watch mode
bun run dev

# Type checking
bun run check-types

On this page