# 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.

| Type | Controls | Saved as |
| --- | --- | --- |
| Generated | Style 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 |
| Letter | Characters and colour, inside the picker | Profile `initial` and `color` |
| Upload | An image file | `kind: "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**

| Option | Why |
| --- | --- |
| One row of every style plus Letter and Upload | Mixes type and style on one level, and puts Letter characters outside the card |
| Variants across all styles | Selecting a variant would change the chosen style |
| Variant grid with `1fr` | Stretches 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`.
