My Avatar Style
Avatar Style for DiceBear Avatars.
My Avatar Style
licensed under
CC BY 4.0.
While our code is MIT licensed, the design is licensed under CC BY 4.0. See license overview for more information.
Usage
Install the DiceBear package and this Avatar styles with the following command.
npm install @dicebear/avatars @dicebear/my-avatar-style --save
Now you are ready to create your first Avatar.
import { createAvatar } from '@dicebear/avatars';
import * as style from '@dicebear/my-avatar-style';
let svg = createAvatar(style, {
seed: 'custom-seed',
// ... and other options
});
Options
All options from DiceBear and additionally the following:
body
type: array
allowed: 1
, 2
, 3
, 4
, 5
, 6
, 8
default: ['1', '2', '3', '4', '5', '6', '8']
top
type: array
allowed: 1
, 2
, 3
, 4
, 5
, 6
, 7
, 8
default: ['1', '2', '3', '4', '5', '6', '7', '8']
accessories
type: array
allowed: earrings
, mask
, glasses
default: ['earrings', 'mask', 'glasses']
bodyColor
type: array
default: ['salmon']
topColor
type: array
default: ['white']
baseColor
type: array
default: ['black']
Build this package
npm run build
Test this package
npm run test