Skip to content

personas

Exact style-specific options from the bundled definition. Use these alongside the shared avatar options and core API. Back to the style catalog and licenses.

local dicebear = require('love_dicebear')
local svg, settings = dicebear.generate('personas', {seed = 'player-42'})
local options = dicebear.describe('personas').options

Components

clothes

  • Variant option: clothesVariant. Accepts a name, allowed-name array, or weight map; {} hides it.
  • Visibility option: clothesProbability. Range 0–100; default 100.
Variant Tags
checkered —
rounded —
small —
squared —

eyes

  • Variant option: eyesVariant. Accepts a name, allowed-name array, or weight map; {} hides it.
  • Visibility option: eyesProbability. Range 0–100; default 100.
Variant Tags
glasses eyewear:glasses
happy —
open —
sleep —
sunglasses eyewear:sunglasses
wink —

facialHair

  • Variant option: facialHairVariant. Accepts a name, allowed-name array, or weight map; {} hides it.
  • Visibility option: facialHairProbability. Range 0–100; default 10.
Variant Tags
beardMustache facialHair
goatee facialHair
pyramid facialHair
shadow facialHair
soulPatch facialHair
walrus facialHair

hair

  • Variant option: hairVariant. Accepts a name, allowed-name array, or weight map; {} hides it.
  • Visibility option: hairProbability. Range 0–100; default 100.
Variant Tags
bald hairLength:bald
balding hairLength:bald
beanie headwear:beanie
bobBangs hairLength:medium
bobCut hairLength:medium
bunUndercut headwear:headband
buzzcut hairLength:short
cap headwear:cap
curly hairLength:medium
curlyBun headwear:headband
curlyHighTop hairLength:short
extraLong hairLength:long
fade hairLength:short
long hairLength:long
mohawk hairLength:short
pigtails hairLength:medium, headwear:headband
shortCombover hairLength:short
shortComboverChops hairLength:short
sideShave hairLength:long
straightBun headwear:headband

mouth

  • Variant option: mouthVariant. Accepts a name, allowed-name array, or weight map; {} hides it.
  • Visibility option: mouthProbability. Range 0–100; default 100.
Variant Tags
bigSmile mood:positive
frown mood:negative
lips mood:positive
pacifier accessory
smile mood:positive
smirk mood:positive
surprise —

nose

  • Variant option: noseVariant. Accepts a name, allowed-name array, or weight map; {} hides it.
  • Visibility option: noseProbability. Range 0–100; default 100.
Variant Tags
mediumRound —
smallRound —
wrinkles —

Color palettes

Each option accepts a hex color or palette array. An empty table is transparent. Bundled contrast and exclusion rules can affect the seeded choice.

backgroundColor

No bundled palette; omitted values resolve to transparency.

clothingColor

#456dff, #54d7c7, #6dbb58, #7555ca, #e24553, #f3b63a, #f55d81

facialHairColor

#362c47, #6c4545, #dee1f5, #e15c66, #e16381, #f27d65, #f29c65

hairColor

#362c47, #6c4545, #dee1f5, #e15c66, #e16381, #f27d65, #f29c65

skinColor

#623d36, #92594b, #b16a5b, #d78774, #e5a07e, #e7a391, #eeb4a4