Personas
Personas is a modern illustrated vector avatar style with diverse, detailed character designs. Generate representative, customizable SVG profile icons that reflect a broad range of identities and appearances.
This avatar style is a remix of: Personas by Draftbit by Draftbit - draftbit.com, licensed under CC BY 4.0 .
LICENSE
While our code is MIT licensed, the design of this avatar style is licensed under CC BY 4.0. See details for more information.
Usage
Use this URL to request this avatar style via our HTTP API.
https://api.dicebear.com/9.x/personas/svg
You can use the URL directly as image source.
See HTTP-API docs for more information.
First install the required packages via npm:
npm install @dicebear/core @dicebear/collection --save
Then you can create this avatar as follows:
import { createAvatar } from '@dicebear/core';
import { personas } from '@dicebear/collection';
const avatar = createAvatar(personas, {
// ... options
});
const svg = avatar.toString();
See JS-Library docs for more information.
First install the CLI package via npm:
npm install --global dicebear
Then you can create this avatar as follows:
dicebear personas
See CLI docs for more information.
Options
seed
TypestringThe seed determines the initial value for the built-in PRNG. With the PRNG you can create the same avatar over and over again based.
FelixAnekahttps://api.dicebear.com/9.x/personas/svg?seed=Felix
createAvatar(personas, {
seed: "Felix"
});dicebear personas --seed "Felix"
flip
Typebooleanfalsetruefalsehttps://api.dicebear.com/9.x/personas/svg?flip=false
createAvatar(personas, {
flip: false
});dicebear personas --flip false
rotate
TypeintegerMinimum 0Maximum 3600901802700https://api.dicebear.com/9.x/personas/svg?rotate=0
createAvatar(personas, {
rotate: 0
});dicebear personas --rotate 0
scale
TypeintegerMinimum 0Maximum 20050100200100https://api.dicebear.com/9.x/personas/svg?scale=50
createAvatar(personas, {
scale: 50
});dicebear personas --scale 50
radius
TypeintegerMinimum 0Maximum 50010203040500https://api.dicebear.com/9.x/personas/svg?radius=0
createAvatar(personas, {
radius: 0
});dicebear personas --radius 0
size
TypeintegerMinimum 13248648096https://api.dicebear.com/9.x/personas/svg?size=32
createAvatar(personas, {
size: 32
});dicebear personas --size 32
backgroundColor
TypearrayItem Pattern ^(transparent|[a-fA-F0-9]{6})$b6e3f4c0aeded1d4f9ffd5dcffdfbfhttps://api.dicebear.com/9.x/personas/svg?backgroundColor=b6e3f4,c0aede,d1d4f9
createAvatar(personas, {
backgroundColor: ["b6e3f4","c0aede","d1d4f9"]
});dicebear personas --backgroundColor "b6e3f4" "c0aede" "d1d4f9"
backgroundType
TypearraygradientLinearsolidsolidhttps://api.dicebear.com/9.x/personas/svg?backgroundType=gradientLinear,solid
createAvatar(personas, {
backgroundType: ["gradientLinear","solid"]
});dicebear personas --backgroundType "gradientLinear" "solid"
backgroundRotation
Typearray Specify an array of two numbers for this option. The PRNG will generate a number between the two values, which will be used as the rotation degree. The rotation is only visible if backgroundType is set to ['gradientLinear'].
0360https://api.dicebear.com/9.x/personas/svg?backgroundRotation=0,360
createAvatar(personas, {
backgroundRotation: [0,360]
});dicebear personas --backgroundRotation 0 360
translateX
TypeintegerMinimum -100Maximum 100-50-25025500https://api.dicebear.com/9.x/personas/svg?translateX=-50
createAvatar(personas, {
translateX: -50
});dicebear personas --translateX -50
translateY
TypeintegerMinimum -100Maximum 100-50-25025500https://api.dicebear.com/9.x/personas/svg?translateY=-50
createAvatar(personas, {
translateY: -50
});dicebear personas --translateY -50
clip
Typebooleantruehttps://api.dicebear.com/9.x/personas/svg?clip=true
createAvatar(personas, {
clip: true
});dicebear personas --clip true
randomizeIds
TypebooleanThis option randomize the IDs in the generated SVG / XML. This can be useful for example if the avatars are included directly in the HTML and you want to avoid ID collisions.
falsehttps://api.dicebear.com/9.x/personas/svg?randomizeIds=false
createAvatar(personas, {
randomizeIds: false
});dicebear personas --randomizeIds false
body
Typearraycheckeredroundedsmallsquaredcheckeredroundedsmallsquaredhttps://api.dicebear.com/9.x/personas/svg?body=checkered,rounded,small
createAvatar(personas, {
body: ["checkered","rounded","small"]
});dicebear personas --body "checkered" "rounded" "small"
clothingColor
TypearrayItem Pattern ^(transparent|[a-fA-F0-9]{6})$6dbb5854d7c7456dff7555cae24553f3b63af55d81https://api.dicebear.com/9.x/personas/svg?clothingColor=6dbb58,54d7c7,456dff
createAvatar(personas, {
clothingColor: ["6dbb58","54d7c7","456dff"]
});dicebear personas --clothingColor "6dbb58" "54d7c7" "456dff"
eyes
Typearrayglasseshappyopensleepsunglasseswinkglasseshappyopensleepsunglasseswinkhttps://api.dicebear.com/9.x/personas/svg?eyes=glasses,happy,open
createAvatar(personas, {
eyes: ["glasses","happy","open"]
});dicebear personas --eyes "glasses" "happy" "open"
facialHair
TypearraybeardMustachegoateepyramidshadowsoulPatchwalrusbeardMustachegoateepyramidshadowsoulPatchwalrushttps://api.dicebear.com/9.x/personas/svg?facialHair=beardMustache,goatee,pyramid
createAvatar(personas, {
facialHair: ["beardMustache","goatee","pyramid"]
});dicebear personas --facialHair "beardMustache" "goatee" "pyramid"
facialHairProbability
TypeintegerMinimum 0Maximum 100010010https://api.dicebear.com/9.x/personas/svg?facialHairProbability=0
createAvatar(personas, {
facialHairProbability: 0
});dicebear personas --facialHairProbability 0
hair
TypearraybaldbaldingbeaniebobBangsbobCutbunUndercutbuzzcutcapcurlycurlyBuncurlyHighTopextraLongfadelongmohawkpigtailsshortCombovershortComboverChopssideShavestraightBunbaldbaldingbeaniebobBangsbobCutbunUndercutbuzzcutcapcurlycurlyBuncurlyHighTopextraLongfadelongmohawkpigtailsshortCombovershortComboverChopssideShavestraightBunhttps://api.dicebear.com/9.x/personas/svg?hair=bald,balding,beanie
createAvatar(personas, {
hair: ["bald","balding","beanie"]
});dicebear personas --hair "bald" "balding" "beanie"
hairColor
TypearrayItem Pattern ^(transparent|[a-fA-F0-9]{6})$6c4545362c47dee1f5e15c66e16381f27d65f29c65https://api.dicebear.com/9.x/personas/svg?hairColor=6c4545,362c47,dee1f5
createAvatar(personas, {
hairColor: ["6c4545","362c47","dee1f5"]
});dicebear personas --hairColor "6c4545" "362c47" "dee1f5"
mouth
TypearraybigSmilefrownlipspacifiersmilesmirksurprisebigSmilefrownlipspacifiersmilesmirksurprisehttps://api.dicebear.com/9.x/personas/svg?mouth=bigSmile,frown,lips
createAvatar(personas, {
mouth: ["bigSmile","frown","lips"]
});dicebear personas --mouth "bigSmile" "frown" "lips"
nose
TypearraymediumRoundsmallRoundwrinklesmediumRoundsmallRoundwrinkleshttps://api.dicebear.com/9.x/personas/svg?nose=mediumRound,smallRound,wrinkles
createAvatar(personas, {
nose: ["mediumRound","smallRound","wrinkles"]
});dicebear personas --nose "mediumRound" "smallRound" "wrinkles"
skinColor
TypearrayItem Pattern ^(transparent|[a-fA-F0-9]{6})$623d3692594bb16a5bd78774e5a07ee7a391eeb4a4https://api.dicebear.com/9.x/personas/svg?skinColor=623d36,92594b,b16a5b
createAvatar(personas, {
skinColor: ["623d36","92594b","b16a5b"]
});dicebear personas --skinColor "623d36" "92594b" "b16a5b"
Details
| Naming | |
|---|---|
| Collection Import | import { personas } from '@dicebear/collection'; |
| Package Import | import * as style from '@dicebear/personas'; |
| CLI | dicebear personas |
| HTTP-API | https://api.dicebear.com/9.x/personas/svg |
| JSON Schema | https://api.dicebear.com/9.x/personas/schema.json |
| Source | |
|---|---|
| Title | Personas by Draftbit |
| Creator | Draftbit - draftbit.com |
| Website | https://draftbit.com/ |
| License | CC BY 4.0 |
| Source | https://personas.draftbit.com/ |