pixelpeople

Create cute pixel art people in React

npm install pixelpeople
Read Docs

Documentation

Everything you need to get started

Quick Start

jsximport { PixelPerson, PixelCrowd } from 'pixelpeople'; // One random person <PixelPerson /> // A crowd of 12 random people <PixelCrowd count={12} /> // A soccer team — same red shirt, everything else random <PixelCrowd count={11} shirt="#FF0000" pants="white" size={48} />

<PixelPerson />

Renders a single pixel art person as inline SVG
PropTypeDefaultDescription
sizenumber32Rendered height in px. Width scales proportionally.
hairstringRandomAny CSS color.
shirtstringRandomAny CSS color.
pantsstringRandomAny CSS color.
shoesstringRandomAny CSS color.
tone1-5 | stringRandomSkin tone preset or any CSS color.

<PixelCrowd />

Renders a crowd of pixel people side by side
PropTypeDefaultDescription
countnumberRequiredNumber of people to render.
sizenumber32Size of each person.
gapnumber4Spacing between people in px.
hairstringRandom/personSet to apply to all.
shirtstringRandom/personSet to apply to all.
pantsstringRandom/personSet to apply to all.
shoesstringRandom/personSet to apply to all.
tone1-5 | stringRandom/personSet to apply to all.

Skin Tone Presets

Showcase

See what you can build

One Person

<PixelPerson />

Customize Colors

<PixelPerson hair="#FF69B4" shirt="#0F3460" />

Skin Tones

<PixelPerson tone={1} /> ... tone={5}

Scalable

SVG scales perfectly at any size

The Crowd

<PixelCrowd count={40} size={48} />

Infinite Possibilities

Hand-picked color combos