Skip to main content

Definition files of the DiceBear avatar styles.

Project description

DiceBear Avatar Styles

This repository contains all official avatar style definitions for DiceBear. An avatar style definition is a JSON file that describes how to create an avatar. It contains all necessary information like available elements and colors. The JSON files are ideal for creating avatars in different programming languages with the corresponding DiceBear wrapper. The JSON schema for the avatar style definitions can be found in the @dicebear/schema package.

Generate definitions

Most of the JSON files were created using the DiceBear Exporter for Figma. The used Figma files are linked in the figma folder. Files created with this plugin are marked accordingly and should not be adjusted manually, but exported again with the Figma plugin.

Usage

JavaScript

npm install @dicebear/styles
import adventurer from '@dicebear/styles/adventurer.json' with { type: 'json' };
import lorelei from '@dicebear/styles/lorelei.json' with { type: 'json' };

PHP

composer require dicebear/styles
$basePath = \Composer\InstalledVersions::getInstallPath('dicebear/styles');

$adventurer = json_decode(file_get_contents($basePath . '/src/adventurer.json'), true);
$lorelei    = json_decode(file_get_contents($basePath . '/src/lorelei.json'), true);

Python

pip install dicebear-styles
import json
from importlib.resources import files

adventurer = json.loads(files('dicebear_styles').joinpath('adventurer.json').read_text('utf-8'))
lorelei    = json.loads(files('dicebear_styles').joinpath('lorelei.json').read_text('utf-8'))

Contributing

See CONTRIBUTING.md for local development, testing, and the release process.

License

The avatar styles are licensed under different licenses. More information can be found in the file LICENSE.md or in the definition files themselves.

Sponsors

Advertisement: Many thanks to our sponsors who provide us with free or discounted products.

bunny.net

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dicebear_styles-10.1.0.tar.gz (679.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dicebear_styles-10.1.0-py3-none-any.whl (705.8 kB view details)

Uploaded Python 3

File details

Details for the file dicebear_styles-10.1.0.tar.gz.

File metadata

  • Download URL: dicebear_styles-10.1.0.tar.gz
  • Upload date:
  • Size: 679.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for dicebear_styles-10.1.0.tar.gz
Algorithm Hash digest
SHA256 5dc72476d3ffee4d0c3461c127125f26a63a0970a64eb648917aacdd337c0ae1
MD5 ee5fd7c363275f7d8e9b1a7412fd4086
BLAKE2b-256 0d65fda3b0ff8954c04983491fec9dfd10ad78b2917085a947449b5cb505ce90

See more details on using hashes here.

Provenance

The following attestation bundles were made for dicebear_styles-10.1.0.tar.gz:

Publisher: publish.yml on dicebear/styles

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dicebear_styles-10.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for dicebear_styles-10.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3d0523999683f4f9bb64c90dbdcce9a074a68060d8ef4ed37e23730bd7790d8a
MD5 f5f4039009740873c1242377b29e6ead
BLAKE2b-256 bc40e060af129bfbed4ebd4280c4f87eefbbf11c0d56d61a6c3e0266d9e9a739

See more details on using hashes here.

Provenance

The following attestation bundles were made for dicebear_styles-10.1.0-py3-none-any.whl:

Publisher: publish.yml on dicebear/styles

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page