OpenProgram Docs

Avatar settings

AvatarPicker sets the user avatar shown at the bottom of the sidebar. Type is the only entry point; generated variants belong to the current style alone.

TypeControlsSaved as
GeneratedStyle from AVATAR_STYLES, then a variant of that style. Regenerate changes only the seed. Changing style keeps the seed if possible, otherwise uses the display name.kind: "dicebear", current style, seed
LetterCharacters and colour, inside the pickerProfile initial and color
UploadAn image filekind: "upload"

Layout

A settings row has a non-stretching label on the left and content-sized controls on the right; Avatar follows Preview and Display name. Variants use fixed 48px tracks (repeat(auto-fill, 48px)) that wrap inside the right-hand group and never stretch.

Rejected options
OptionWhy
One row of every style plus Letter and UploadMixes type and style on one level, and puts Letter characters outside the card
Variants across all stylesSelecting a variant would change the chosen style
Variant grid with 1frStretches tiles to fill the card

Unchanged: AvatarConfig kinds (dicebear, letter, upload), stored fields, Avatar rendering, Agent and User profile stores, the DiceBear dependency. Implemented in apps/web/components/avatar/avatar-picker.tsx and variants.ts; tested by apps/web/tests/settings/avatar-randomization.test.mjs and theme-appearance.test.mjs.

Last updated · 2026-11-25