Boring Avatars
Boring avatars is a tiny JavaScript React library that generates custom, SVG-based, round avatars from any username and color palette.
Install
yarn add boring-avatars
or
npm install boring-avatars
Usage
Props
Prop | Type |
---|---|
size | number or string |
name | string |
variant | oneOf: marble , beam , pixel ,sunset , ring , bauhaus |
colors | array of colors |
Source
You can embed your boring avatars using the boring avatars source.
To choose a random avatar from a specific user and a color palette, the format follows:
https://source.boringavatars.com/marble/120/Maria%20Mitchell?colors=264653,2a9d8f,e9c46a,f4a261,e76f51