Skip to content

@avatune/pawel-olek-man-theme

Source: packages/assets/pawel-olek-man-theme/README.md

Avatar theme for Avatune using pawel olek man design assets.

Terminal window
npm install @avatune/pawel-olek-man-theme

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

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

This theme uses Pawel Olek Man 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/pawel-olek-assets package.

import { hair, eyes, mouth } from '@avatune/pawel-olek-assets';
import { HairShort, EyesBoring, MouthSmile } from '@avatune/pawel-olek-assets/react';
import { HairShort, EyesBoring, MouthSmile } from '@avatune/pawel-olek-assets/svelte';
import { HairShort, EyesBoring, MouthSmile } from '@avatune/pawel-olek-assets/vue';
PreviewFilename
manBig
manBiten
manRingEarring
manSmall
manStandard
manStudEarrings
womanDropEarrings
womanSharp
womanStandard
PreviewFilename
manBig
manEyelashes
manEyelids
manHappy
manSmall
manStandard
womanBig
womanHappy
womanSmall
womanStandard
PreviewFilename
chinDimple1
chinDimple2
chinDimple3
chinDimple4
PreviewFilename
manBrow
manPatch
manRound
manSquare
manStylish
womanPatch
womanRound
womanSquare
womanStylish
PreviewFilename
beanie
hijab
manBald
manCurly
manElvis
manMediumTopknot
manMessy
manShortTopknot
manStylish
womanBob
womanlong
womanLowBun
womanMedium
womanStickBun
PreviewFilename
manBeardMustache
manBeardSharp
manBeardSlim
manBeardStandard
manBristle
manBristleMustache
manChin
manSharp
manStandard
womanChin
womanStandard
PreviewFilename
chin
philtrum1
philtrum2
sad
small
smile
tongue1
tongue2
vampire
PreviewFilename
manBig
manBigWide
manSmall
manStandard
manWide
womanBig
womanSmall
womanStandard

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 Pawel Olek. 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