Micah
An avatar illustration system with shirts, earrings and facial hair.
Install
npm install @dicebear/core@9.4.2 @dicebear/collection@9.4.2
Generate an avatar
The same seed always produces the same avatar, so a user ID or username works as a seed. Avatars are generated locally without a network service.
import { createAvatar } from '@dicebear/core';
import { micah } from '@dicebear/collection';
// “Avatar Illustration System” by Micah Lanier, CC BY 4.0 — credit the author where the avatar is used.
const avatar = createAvatar(micah, {
seed: 'Aria Chen',
size: 128,
radius: 50,
});
export const svg = avatar.toString(); // inline SVG markup
export const dataUri = avatar.toDataUri(); // use as an <img> src
React component:
import { useMemo } from 'react';
import { createAvatar } from '@dicebear/core';
import { micah } from '@dicebear/collection';
export function UserAvatar({ seed, size = 64 }: { seed: string; size?: number }) {
const src = useMemo(() => createAvatar(micah, { seed, size }).toDataUri(), [seed, size]);
return <img src={src} width={size} height={size} alt={`Avatar for ${seed}`} />;
}
Options
Common options: seed, size, radius, backgroundColor, flip, rotate, scale.
Style options: base, baseColor, earringColor, earrings, earringsProbability, ears, eyeShadowColor, eyebrows, eyebrowsColor, eyes, eyesColor, facialHair, facialHairColor, facialHairProbability, glasses, glassesColor, glassesProbability, hair, hairColor, hairProbability, mouth, mouthColor, nose, shirt, shirtColor.
Full option reference: https://www.dicebear.com/styles/micah/
License and attribution
- Design: Avatar Illustration System — Micah Lanier (https://www.figma.com/community/file/829741575478342595)
- License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)
- CC BY 4.0: credit the author and license, for example: “Avatar Illustration System” by Micah Lanier, CC BY 4.0.
- The DiceBear software is MIT. Its license does not cover the style artwork. Generated SVGs carry license metadata by default; keep it.