shapes top-level constant

String const shapes

Raw JSON definition of the DiceBear shapes avatar style.

Implementation

const String shapes = '''{
  "\$schema": "https://cdn.hopjs.net/npm/@dicebear/schema@1.2.0/dist/definition.min.json",
  "\$comment": "This file was generated by the DiceBear Exporter for Figma. https://www.figma.com/community/plugin/1005765655729342787",
  "meta": {
    "license": {
      "name": "CC0 1.0",
      "url": "https://creativecommons.org/publicdomain/zero/1.0/",
      "text": "„Shapes” (https://www.dicebear.com) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)"
    },
    "creator": {
      "name": "DiceBear",
      "url": "https://www.dicebear.com"
    },
    "source": {
      "name": "Shapes",
      "url": "https://www.dicebear.com"
    }
  },
  "canvas": {
    "elements": [
      {
        "name": "shape01",
        "type": "component",
        "attributes": {
          "transform": "matrix(1.2 0 0 1.2 -10 -190)"
        }
      },
      {
        "name": "shape02",
        "type": "component",
        "attributes": {
          "transform": "matrix(.8 0 0 .8 10 -110)"
        }
      },
      {
        "name": "shape03",
        "type": "component",
        "attributes": {
          "transform": "matrix(.4 0 0 .4 30 -30)"
        }
      }
    ],
    "width": 100,
    "height": 100
  },
  "attributes": {
    "fill": "none",
    "shape-rendering": "auto"
  },
  "components": {
    "shape01": {
      "width": 100,
      "height": 400,
      "rotate": {
        "min": -160,
        "max": 160
      },
      "scale": {
        "min": 0.9,
        "max": 1.1
      },
      "translate": {
        "x": {
          "min": -80,
          "max": 80
        },
        "y": {
          "min": -20,
          "max": 20
        }
      },
      "variants": {
        "ellipse": {
          "elements": [
            {
              "name": "path",
              "type": "element",
              "attributes": {
                "fill-rule": "evenodd",
                "clip-rule": "evenodd",
                "d": "M50 240a40 40 0 1 0 0-80 40 40 0 0 0 0 80m0 10a50 50 0 1 0 0-100 50 50 0 0 0 0 100",
                "fill": {
                  "type": "color",
                  "name": "shape1"
                }
              }
            }
          ],
          "weight": 0
        },
        "ellipseFilled": {
          "elements": [
            {
              "name": "path",
              "type": "element",
              "attributes": {
                "d": "M100 200a50 50 0 1 1-100 0 50 50 0 0 1 100 0",
                "fill": {
                  "type": "color",
                  "name": "shape1"
                }
              }
            }
          ]
        },
        "line": {
          "elements": [
            {
              "name": "rect",
              "type": "element",
              "attributes": {
                "x": "45",
                "width": "10",
                "height": "400",
                "fill": {
                  "type": "color",
                  "name": "shape1"
                }
              }
            }
          ]
        },
        "polygon": {
          "elements": [
            {
              "name": "path",
              "type": "element",
              "attributes": {
                "fill-rule": "evenodd",
                "clip-rule": "evenodd",
                "d": "M50 157 0 243.6h100zm0 20-32.7 56.6h65.4z",
                "fill": {
                  "type": "color",
                  "name": "shape1"
                }
              }
            }
          ],
          "weight": 0
        },
        "polygonFilled": {
          "elements": [
            {
              "name": "path",
              "type": "element",
              "attributes": {
                "d": "m50 157 50 86.6H0z",
                "fill": {
                  "type": "color",
                  "name": "shape1"
                }
              }
            }
          ]
        },
        "rectangle": {
          "elements": [
            {
              "name": "path",
              "type": "element",
              "attributes": {
                "fill-rule": "evenodd",
                "clip-rule": "evenodd",
                "d": "M90 160H10v80h80zM0 150v100h100V150z",
                "fill": {
                  "type": "color",
                  "name": "shape1"
                }
              }
            }
          ],
          "weight": 0
        },
        "rectangleFilled": {
          "elements": [
            {
              "name": "path",
              "type": "element",
              "attributes": {
                "d": "M0 150h100v100H0z",
                "fill": {
                  "type": "color",
                  "name": "shape1"
                }
              }
            }
          ]
        }
      }
    },
    "shape02": {
      "width": 100,
      "height": 400,
      "rotate": {
        "min": -160,
        "max": 160
      },
      "scale": {
        "min": 0.9,
        "max": 1.1
      },
      "translate": {
        "x": {
          "min": -60,
          "max": 60
        },
        "y": {
          "min": -15,
          "max": 15
        }
      },
      "variants": {
        "ellipse": {
          "elements": [
            {
              "name": "path",
              "type": "element",
              "attributes": {
                "fill-rule": "evenodd",
                "clip-rule": "evenodd",
                "d": "M50 240a40 40 0 1 0 0-80 40 40 0 0 0 0 80m0 10a50 50 0 1 0 0-100 50 50 0 0 0 0 100",
                "fill": {
                  "type": "color",
                  "name": "shape2"
                }
              }
            }
          ],
          "weight": 0
        },
        "ellipseFilled": {
          "elements": [
            {
              "name": "path",
              "type": "element",
              "attributes": {
                "d": "M100 200a50 50 0 1 1-100 0 50 50 0 0 1 100 0",
                "fill": {
                  "type": "color",
                  "name": "shape2"
                }
              }
            }
          ]
        },
        "line": {
          "elements": [
            {
              "name": "rect",
              "type": "element",
              "attributes": {
                "x": "45",
                "width": "10",
                "height": "400",
                "fill": {
                  "type": "color",
                  "name": "shape2"
                }
              }
            }
          ]
        },
        "polygon": {
          "elements": [
            {
              "name": "path",
              "type": "element",
              "attributes": {
                "fill-rule": "evenodd",
                "clip-rule": "evenodd",
                "d": "M50 157 0 243.6h100zm0 20-32.7 56.6h65.4z",
                "fill": {
                  "type": "color",
                  "name": "shape2"
                }
              }
            }
          ],
          "weight": 0
        },
        "polygonFilled": {
          "elements": [
            {
              "name": "path",
              "type": "element",
              "attributes": {
                "d": "m50 157 50 86.6H0z",
                "fill": {
                  "type": "color",
                  "name": "shape2"
                }
              }
            }
          ]
        },
        "rectangle": {
          "elements": [
            {
              "name": "path",
              "type": "element",
              "attributes": {
                "fill-rule": "evenodd",
                "clip-rule": "evenodd",
                "d": "M90 160H10v80h80zM0 150v100h100V150z",
                "fill": {
                  "type": "color",
                  "name": "shape2"
                }
              }
            }
          ],
          "weight": 0
        },
        "rectangleFilled": {
          "elements": [
            {
              "name": "path",
              "type": "element",
              "attributes": {
                "d": "M0 150h100v100H0z",
                "fill": {
                  "type": "color",
                  "name": "shape2"
                }
              }
            }
          ]
        }
      }
    },
    "shape03": {
      "width": 100,
      "height": 400,
      "rotate": {
        "min": -160,
        "max": 160
      },
      "scale": {
        "min": 0.9,
        "max": 1.1
      },
      "translate": {
        "x": {
          "min": -40,
          "max": 40
        },
        "y": {
          "min": -10,
          "max": 10
        }
      },
      "variants": {
        "ellipse": {
          "elements": [
            {
              "name": "path",
              "type": "element",
              "attributes": {
                "fill-rule": "evenodd",
                "clip-rule": "evenodd",
                "d": "M50 240a40 40 0 1 0 0-80 40 40 0 0 0 0 80m0 10a50 50 0 1 0 0-100 50 50 0 0 0 0 100",
                "fill": {
                  "type": "color",
                  "name": "shape3"
                }
              }
            }
          ]
        },
        "ellipseFilled": {
          "elements": [
            {
              "name": "path",
              "type": "element",
              "attributes": {
                "d": "M100 200a50 50 0 1 1-100 0 50 50 0 0 1 100 0",
                "fill": {
                  "type": "color",
                  "name": "shape3"
                }
              }
            }
          ]
        },
        "line": {
          "elements": [
            {
              "name": "rect",
              "type": "element",
              "attributes": {
                "x": "45",
                "width": "10",
                "height": "400",
                "fill": {
                  "type": "color",
                  "name": "shape3"
                }
              }
            }
          ]
        },
        "polygon": {
          "elements": [
            {
              "name": "path",
              "type": "element",
              "attributes": {
                "fill-rule": "evenodd",
                "clip-rule": "evenodd",
                "d": "M50 157 0 243.6h100zm0 20-32.7 56.6h65.4z",
                "fill": {
                  "type": "color",
                  "name": "shape3"
                }
              }
            }
          ]
        },
        "polygonFilled": {
          "elements": [
            {
              "name": "path",
              "type": "element",
              "attributes": {
                "d": "m50 157 50 86.6H0z",
                "fill": {
                  "type": "color",
                  "name": "shape3"
                }
              }
            }
          ]
        },
        "rectangle": {
          "elements": [
            {
              "name": "path",
              "type": "element",
              "attributes": {
                "fill-rule": "evenodd",
                "clip-rule": "evenodd",
                "d": "M90 160H10v80h80zM0 150v100h100V150z",
                "fill": {
                  "type": "color",
                  "name": "shape3"
                }
              }
            }
          ]
        },
        "rectangleFilled": {
          "elements": [
            {
              "name": "path",
              "type": "element",
              "attributes": {
                "d": "M0 150h100v100H0z",
                "fill": {
                  "type": "color",
                  "name": "shape3"
                }
              }
            }
          ]
        }
      }
    }
  },
  "colors": {
    "background": {
      "values": [
        "#0a5b83",
        "#1c799f",
        "#69d2e7",
        "#f1f4dc",
        "#f88c49"
      ]
    },
    "shape1": {
      "notEqualTo": [
        "background"
      ],
      "values": [
        "#0a5b83",
        "#1c799f",
        "#69d2e7",
        "#f1f4dc",
        "#f88c49"
      ]
    },
    "shape2": {
      "notEqualTo": [
        "background",
        "shape1"
      ],
      "values": [
        "#0a5b83",
        "#1c799f",
        "#69d2e7",
        "#f1f4dc",
        "#f88c49"
      ]
    },
    "shape3": {
      "notEqualTo": [
        "background",
        "shape1",
        "shape2"
      ],
      "values": [
        "#0a5b83",
        "#1c799f",
        "#69d2e7",
        "#f1f4dc",
        "#f88c49"
      ]
    }
  }
}''';