Skip to content

avataaars

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('avataaars', {seed = 'player-42'})
local options = dicebear.describe('avataaars').options

Components

accessories

  • Variant option: accessoriesVariant. Accepts a name, allowed-name array, or weight map; {} hides it.
  • Visibility option: accessoriesProbability. Range 0–100; default 10.
Variant Tags
eyepatch eyewear:eyepatch
kurt eyewear:sunglasses
prescription01 eyewear:glasses
prescription02 eyewear:glasses
round eyewear:glasses
sunglasses eyewear:sunglasses
wayfarers eyewear:sunglasses

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
blazerAndShirt —
blazerAndSweater —
collarAndSweater —
graphicShirt —
hoodie —
overall —
shirtCrewNeck —
shirtScoopNeck —
shirtVNeck —

clothesGraphic

  • Variant option: clothesGraphicVariant. Accepts a name, allowed-name array, or weight map; {} hides it.
  • Visibility option: clothesGraphicProbability. Range 0–100; default 100.
Variant Tags
bat —
bear —
cumbia —
deer —
diamond —
hola —
pizza —
resist —
skull —
skullOutline —

eyebrows

  • Variant option: eyebrowsVariant. Accepts a name, allowed-name array, or weight map; {} hides it.
  • Visibility option: eyebrowsProbability. Range 0–100; default 100.
Variant Tags
angry mood:negative
angryNatural mood:negative
default mood:positive
defaultNatural mood:positive
flatNatural mood:negative
frownNatural mood:negative
raisedExcited mood:positive
raisedExcitedNatural mood:positive
sadConcerned mood:negative
sadConcernedNatural mood:negative
unibrowNatural mood:positive
upDown mood:positive
upDownNatural mood:positive

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
closed mood:negative
cry mood:negative
default mood:positive
eyeRoll mood:negative
happy mood:positive
hearts mood:positive
side mood:negative
squint mood:positive
surprised mood:positive
wink mood:positive
winkWacky mood:positive
xDizzy mood:negative

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
beardLight facialHair
beardMajestic facialHair
beardMedium facialHair
moustacheFancy facialHair
moustacheMagnum facialHair

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
concerned mood:negative
default mood:positive
disbelief mood:negative
eating mood:positive
grimace —
sad mood:negative
screamOpen mood:negative
serious —
smile mood:positive
tongue mood:positive
twinkle mood:positive
vomit mood:negative

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
default —

top

  • Variant option: topVariant. Accepts a name, allowed-name array, or weight map; {} hides it.
  • Visibility option: topProbability. Range 0–100; default 100.
Variant Tags
bigHair hairLength:long
bob hairLength:medium
bun —
curly hairLength:medium
curvy hairLength:long
dreads hairLength:long
dreads01 hairLength:short
dreads02 hairLength:medium
frida hairLength:medium, headwear:headband, accessory:earrings
frizzle hairLength:short
fro hairLength:medium
froBand hairLength:medium
hat headwear:hat
hijab headwear:headscarf
longButNotTooLong hairLength:medium
miaWallace hairLength:medium
shaggy hairLength:short
shaggyMullet hairLength:medium
shavedSides hairLength:long
shortCurly hairLength:short
shortFlat hairLength:short
shortRound hairLength:short
shortWaved hairLength:short
sides hairLength:bald
straight01 hairLength:long
straight02 hairLength:long
straightAndStrand hairLength:long
theCaesar hairLength:short
theCaesarAndSidePart hairLength:short
turban headwear:turban
winterHat02 headwear
winterHat03 headwear:beanie
winterHat04 headwear:beanie
winterHat1 headwear

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.

accessoriesColor

#25557c, #262e33, #3c4f5c, #5199e4, #65c9ff, #929598, #a7ffc4, #b1e2ff, #e6e6e6, #ff488e, #ff5c5c, #ffafb9, #ffdeb5, #ffffb1, #ffffff

backgroundColor

No bundled palette; omitted values resolve to transparency.

clothesColor

#25557c, #262e33, #3c4f5c, #5199e4, #65c9ff, #929598, #a7ffc4, #b1e2ff, #e6e6e6, #ff488e, #ff5c5c, #ffafb9, #ffffb1, #ffffff

facialHairColor

#2c1b18, #4a312c, #724133, #a55728, #b58143, #c93305, #d6b370, #e8e1e1, #ecdcbf, #f59797

hairColor

#2c1b18, #4a312c, #724133, #a55728, #b58143, #c93305, #d6b370, #e8e1e1, #ecdcbf, #f59797

hatColor

#25557c, #262e33, #3c4f5c, #5199e4, #65c9ff, #929598, #a7ffc4, #b1e2ff, #e6e6e6, #ff488e, #ff5c5c, #ffafb9, #ffdeb5, #ffffb1, #ffffff

skinColor

#614335, #ae5d29, #d08b5b, #edb98a, #f8d25c, #fd9841, #ffdbb4