# Jonna People from the shoulders up, turned slightly to the side. Flat colors make the shapes, and a dark line follows only part of their edges. There are 47 hairstyles and head coverings, 29 outfits, eight skin tones and eight kinds of facial hair, and some people wear hearing aids. Children in the same look are in [Jonna Kids](https://www.dicebear.com/styles/jonna-kids/). The style needs DiceBear 11.1. - **Style name:** `jonna` - **Category:** Characters - **Animated:** no - **Creator:** DiceBear (https://www.dicebear.com) - **Source:** https://www.dicebear.com - **License:** CC0 1.0 (https://creativecommons.org/publicdomain/zero/1.0/) ## Usage Every library below produces the same SVG for the same seed and options. HTTP API: ``` https://api.dicebear.com/11.x/jonna/svg?seed=John ``` JavaScript: ``` npm install @dicebear/core @dicebear/styles --save ``` ```js import { Style, Avatar } from '@dicebear/core'; import definition from '@dicebear/styles/jonna.json' with { type: 'json' }; const style = new Style(definition); const avatar = new Avatar(style, { seed: 'John' }); const svg = avatar.toString(); ``` PHP: ``` composer require dicebear/core dicebear/styles ``` ```php 'John']); $svg = (string) $avatar; ``` Python: ``` pip install dicebear-core dicebear-styles ``` ```python from importlib.resources import files from dicebear import Avatar, Style style = Style.from_json( files("dicebear_styles").joinpath("jonna.json").read_text("utf-8") ) avatar = Avatar(style, {"seed": "John"}) svg = avatar.to_string() ``` Rust: ``` cargo add dicebear-core serde_json cargo add dicebear-styles --features jonna ``` ```rust use dicebear_core::{Avatar, Style}; use serde_json::json; let style = Style::from_str(dicebear_styles::JONNA)?; let avatar = Avatar::new(&style, json!({ "seed": "John" }))?; let svg = avatar.to_svg(); ``` Go: ``` go get github.com/dicebear/dicebear-go/v11 go get github.com/dicebear/styles/v11 ``` ```go import ( dicebear "github.com/dicebear/dicebear-go/v11" "github.com/dicebear/styles/v11" ) style, _ := dicebear.NewStyle([]byte(styles.Jonna)) avatar, _ := dicebear.NewAvatar(style, map[string]any{"seed": "John"}) svg := avatar.SVG() ``` Dart: ``` dart pub add dicebear_core dicebear_styles ``` ```dart import 'package:dicebear_core/dicebear_core.dart'; import 'package:dicebear_styles/jonna.dart'; final style = Style.parse(jonna); final avatar = Avatar(style, {'seed': 'John'}); final svg = avatar.svg; ``` C#: ``` dotnet add package DiceBear.Core dotnet add package DiceBear.Styles ``` ```csharp using System.Text.Json.Nodes; using DiceBear; var style = Style.Parse(Styles.Jonna); var avatar = new Avatar(style, new JsonObject { ["seed"] = "John" }); var svg = avatar.ToSvg(); ``` CLI: ``` npm install --global dicebear ``` ``` dicebear create jonna --seed "Felix" ``` ## Presets 13 ready-made option sets for this style. Each is a plain set of render options: pass it to any of the libraries or send it as HTTP-API query parameters. You do not need to install anything for them, and any option a preset leaves out keeps varying with the seed. - **Happy:** Friendly faces, nobody sad or angry. - **Masculine:** Short hair, bold brows and many beards. - **Feminine:** Medium and long hair, lashes, full lips and earrings. - **Curls and Coils:** Curly, coily and braided hair. - **Hats:** Beanies, caps and sun hats. - **Head Coverings:** Headscarves, turbans and headwraps. - **Silver:** Gray hair and lines in the face. - **At Work:** Aprons, scrubs and work vests in signal colors. - **Office:** Navy suits and white shirts. - **Dyed:** Hair in pink, blue and green. - **Dark:** Near black ground for dark interfaces. - **Sepia:** Everything in warm browns. - **Greyscale:** Everything in grays. The full option set of each one is at https://www.dicebear.com/styles/jonna/presets/index.md. ## Options Every option below works in all libraries. The public HTTP API takes all of them as query parameters except `idRandomization`, `fontFamily`, `fontWeight` and `title`. The ones built from a component name (`Variant`, `Probability`) or from a color group (`Color`, `ColorFill`, `ColorFillStops`, `ColorAngle`, `ColorOrder`) belong to this style; the rest are [core options](https://www.dicebear.com/customize/options/) that every style accepts. | Option | Type | Values | | --- | --- | --- | | `seed` | string | | | `size` | number | 1 to 4096 | | `idRandomization` | boolean | | | `title` | string | | | `flip` | enum (array allowed) | `none`, `horizontal`, `vertical`, `both` | | `fontFamily` | string (array allowed) | | | `fontWeight` | number (array allowed) | 1 to 1000 | | `scale` | range | 0 to 10 | | `borderRadius` | range | 0 to 50 | | `rotate` | range | -360 to 360 | | `translateX` | range | -1000 to 1000 | | `translateY` | range | -1000 to 1000 | | `bustVariant` | enum (array allowed) | `broad`, `medium`, `slim` | | `bustProbability` | number | 0 to 100 | | `clothesVariant` | enum (array allowed) | `apron`, `blazer`, `block`, `bowTie`, `cardigan`, `crew`, `dots`, `dungarees`, `grid`, `hoodie`, `knitVest`, `kurta`, `pinstripe`, `polo`, `ringer`, `roundCollar`, `scarf`, `scoop`, `scrubs`, `shirt`, `tank`, `tie`, `turtleneck`, `varsity`, `vee`, `wideStripe`, `workVest`, `wrap`, `zigzag` | | `clothesProbability` | number | 0 to 100 | | `detailsVariant` | enum (array allowed) | `birthmark`, `blush`, `dimples`, `fineLines`, `freckles`, `mole`, `vitiligo`, `wrinkles` | | `detailsProbability` | number | 0 to 100 | | `earringsVariant` | enum (array allowed) | `bar`, `beads`, `drop`, `hoop`, `stud` | | `earringsProbability` | number | 0 to 100 | | `eyebrowsVariant` | enum (array allowed) | `bold`, `flat`, `lifted`, `raised`, `soft`, `worried` | | `eyebrowsProbability` | number | 0 to 100 | | `eyesVariant` | enum (array allowed) | `aside`, `asleep`, `downturned`, `happy`, `lashes`, `round`, `tapered`, `upturned`, `upward`, `wink` | | `eyesProbability` | number | 0 to 100 | | `facialHairVariant` | enum (array allowed) | `chinCurtain`, `circle`, `full`, `goatee`, `long`, `mustache`, `mustacheGoatee`, `walrus` | | `facialHairProbability` | number | 0 to 100 | | `glassesVariant` | enum (array allowed) | `browline`, `catEye`, `panto`, `pantoShades`, `shades`, `square` | | `glassesProbability` | number | 0 to 100 | | `hairVariant` | enum (array allowed) | `afro`, `bald`, `balding`, `beanie`, `beanieLong`, `beret`, `bob`, `bobPart`, `boxBraids`, `braid`, `bucketHat`, `bucketHatBob`, `buzz`, `cap`, `capLong`, `coiledKnots`, `cornrows`, `crop`, `curls`, `curly`, `curlyBob`, `curtains`, `fade`, `fringe`, `halfUp`, `headband`, `headscarf`, `headwrap`, `highTop`, `locs`, `long`, `lowBun`, `mop`, `ponytail`, `puffs`, `quiff`, `receding`, `shag`, `sidePart`, `spaceBuns`, `sunHat`, `swoop`, `topKnot`, `turban`, `twinBraids`, `undercut`, `wavy` | | `hairProbability` | number | 0 to 100 | | `headVariant` | enum (array allowed) | `full`, `long`, `round`, `slim`, `square` | | `headProbability` | number | 0 to 100 | | `hearingAidVariant` | enum (array allowed) | `behindEar`, `implant` | | `hearingAidProbability` | number | 0 to 100 | | `mouthVariant` | enum (array allowed) | `aside`, `beam`, `cheer`, `content`, `flat`, `frown`, `fullLips`, `grin`, `laugh`, `lips`, `oh`, `open`, `pout`, `smile`, `smilingFullLips`, `smilingLips`, `smirk` | | `mouthProbability` | number | 0 to 100 | | `noseVariant` | enum (array allowed) | `broad`, `button`, `curved`, `long`, `round`, `soft`, `straight`, `wide` | | `noseProbability` | number | 0 to 100 | | `backgroundColor` | color (array allowed) | Hex color, `#` optional | | `backgroundColorFill` | enum (array allowed) | `solid`, `linear`, `radial` | | `backgroundColorFillStops` | range | | | `backgroundColorAngle` | range | -360 to 360 | | `backgroundColorOrder` | enum | `random`, `fixed` | | `accentColor` | color (array allowed) | Hex color, `#` optional | | `accentColorFill` | enum (array allowed) | `solid`, `linear`, `radial` | | `accentColorFillStops` | range | | | `accentColorAngle` | range | -360 to 360 | | `accentColorOrder` | enum | `random`, `fixed` | | `clothesColor` | color (array allowed) | Hex color, `#` optional | | `clothesColorFill` | enum (array allowed) | `solid`, `linear`, `radial` | | `clothesColorFillStops` | range | | | `clothesColorAngle` | range | -360 to 360 | | `clothesColorOrder` | enum | `random`, `fixed` | | `earringsColor` | color (array allowed) | Hex color, `#` optional | | `earringsColorFill` | enum (array allowed) | `solid`, `linear`, `radial` | | `earringsColorFillStops` | range | | | `earringsColorAngle` | range | -360 to 360 | | `earringsColorOrder` | enum | `random`, `fixed` | | `glassesColor` | color (array allowed) | Hex color, `#` optional | | `glassesColorFill` | enum (array allowed) | `solid`, `linear`, `radial` | | `glassesColorFillStops` | range | | | `glassesColorAngle` | range | -360 to 360 | | `glassesColorOrder` | enum | `random`, `fixed` | | `hairColor` | color (array allowed) | Hex color, `#` optional | | `hairColorFill` | enum (array allowed) | `solid`, `linear`, `radial` | | `hairColorFillStops` | range | | | `hairColorAngle` | range | -360 to 360 | | `hairColorOrder` | enum | `random`, `fixed` | | `headwearColor` | color (array allowed) | Hex color, `#` optional | | `headwearColorFill` | enum (array allowed) | `solid`, `linear`, `radial` | | `headwearColorFillStops` | range | | | `headwearColorAngle` | range | -360 to 360 | | `headwearColorOrder` | enum | `random`, `fixed` | | `hearingAidColor` | color (array allowed) | Hex color, `#` optional | | `hearingAidColorFill` | enum (array allowed) | `solid`, `linear`, `radial` | | `hearingAidColorFillStops` | range | | | `hearingAidColorAngle` | range | -360 to 360 | | `hearingAidColorOrder` | enum | `random`, `fixed` | | `inkColor` | color (array allowed) | Hex color, `#` optional | | `inkColorFill` | enum (array allowed) | `solid`, `linear`, `radial` | | `inkColorFillStops` | range | | | `inkColorAngle` | range | -360 to 360 | | `inkColorOrder` | enum | `random`, `fixed` | | `skinColor` | color (array allowed) | Hex color, `#` optional | | `skinColorFill` | enum (array allowed) | `solid`, `linear`, `radial` | | `skinColorFillStops` | range | | | `skinColorAngle` | range | -360 to 360 | | `skinColorOrder` | enum | `random`, `fixed` | | `tags` | enum (array allowed) | `accessory:earrings`, `eyewear:glasses`, `eyewear:sunglasses`, `facialHair`, `hairLength:bald`, `hairLength:long`, `hairLength:medium`, `hairLength:short`, `headwear`, `headwear:beanie`, `headwear:cap`, `headwear:hat`, `headwear:headband`, `headwear:headscarf`, `headwear:turban`, `mood:negative`, `mood:positive` (further values allowed) | The same table is available as JSON at `https://api.dicebear.com/11.x/jonna/options.json`, and the raw definition at `https://api.dicebear.com/11.x/jonna/definition.json`.