glass top-level constant
String
const glass
Raw JSON definition of the DiceBear glass avatar style.
Implementation
const String glass = '''{
"\$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": "„Glass” (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": "Glass",
"url": "https://www.dicebear.com"
}
},
"canvas": {
"elements": [
{
"name": "g",
"type": "element",
"attributes": {
"style": "mix-blend-mode:screen",
"opacity": ".6",
"filter": "url(#dicebearGlass-a)"
},
"children": [
{
"name": "shape02",
"type": "component",
"attributes": {
"transform": "translate(-25 -24.4)"
}
}
]
},
{
"name": "g",
"type": "element",
"attributes": {
"style": "mix-blend-mode:screen",
"opacity": ".6",
"filter": "url(#dicebearGlass-b)"
},
"children": [
{
"name": "shape01",
"type": "component",
"attributes": {
"transform": "translate(-25 -24.4)"
}
}
]
},
{
"name": "defs",
"type": "element",
"children": [
{
"name": "filter",
"type": "element",
"attributes": {
"id": "dicebearGlass-a",
"x": "-57",
"y": "-56.4",
"width": "214",
"height": "213.4",
"filterUnits": "userSpaceOnUse",
"color-interpolation-filters": "sRGB"
},
"children": [
{
"name": "feFlood",
"type": "element",
"attributes": {
"flood-opacity": "0",
"result": "r0"
}
},
{
"name": "feBlend",
"type": "element",
"attributes": {
"in": "SourceGraphic",
"in2": "r0",
"result": "r1"
}
},
{
"name": "feGaussianBlur",
"type": "element",
"attributes": {
"stdDeviation": "16",
"result": "r2"
}
}
]
},
{
"name": "filter",
"type": "element",
"attributes": {
"id": "dicebearGlass-b",
"x": "-57",
"y": "-56.4",
"width": "214",
"height": "213.4",
"filterUnits": "userSpaceOnUse",
"color-interpolation-filters": "sRGB"
},
"children": [
{
"name": "feFlood",
"type": "element",
"attributes": {
"flood-opacity": "0",
"result": "r0"
}
},
{
"name": "feBlend",
"type": "element",
"attributes": {
"in": "SourceGraphic",
"in2": "r0",
"result": "r1"
}
},
{
"name": "feGaussianBlur",
"type": "element",
"attributes": {
"stdDeviation": "16",
"result": "r2"
}
}
]
}
]
}
],
"width": 100,
"height": 100
},
"attributes": {
"fill": "none",
"shape-rendering": "auto"
},
"components": {
"shape": {
"width": 150,
"height": 149.4,
"rotate": {
"min": -160,
"max": 160
},
"translate": {
"x": {
"min": -50,
"max": 50
},
"y": {
"min": -50,
"max": 50
}
},
"variants": {
"a": {
"elements": [
{
"name": "path",
"type": "element",
"attributes": {
"d": "M42.6 147.4H0L48 1.9h54l48 145.5h-42.7L75.5 42h-1.1zm-8-57.4h80.1v29.6h-80z",
"fill": "white"
}
}
]
},
"d": {
"elements": [
{
"name": "path",
"type": "element",
"attributes": {
"d": "M67 147.4H11V1.9h55.4q22.5 0 38.8 8.8a60 60 0 0 1 25.3 25q9 16.2 9 39 0 22.7-9 39a61 61 0 0 1-25 25 81 81 0 0 1-38.5 8.7m-16.5-33.5h15a44 44 0 0 0 18.5-3.5q7.6-3.4 11.6-12t4-23.7-4-23.7a24 24 0 0 0-12-12 47 47 0 0 0-19.2-3.5H50.5z",
"fill": "white"
}
}
]
},
"e": {
"elements": [
{
"name": "path",
"type": "element",
"attributes": {
"d": "M22.2 147.4V1.9H127v31.9H61.7v25h59.9v31.8h-60v25h65.1v31.8z",
"fill": "white"
}
}
]
},
"g": {
"elements": [
{
"name": "path",
"type": "element",
"attributes": {
"d": "M101.6 50a20 20 0 0 0-14.7-14.6q-3.9-1-8.5-1-10 0-17 4.7a30 30 0 0 0-10.6 13.7q-3.6 9-3.6 21.6 0 12.8 3.5 21.9 3.4 9 10.3 13.9a29 29 0 0 0 17.2 4.8q9 0 15-2.6 6-2.7 9-7.5t3-11.3l6.8.7H78.7V66.2h64.5v20.1q0 20-8.4 34a56 56 0 0 1-23.2 21.6Q97 149.4 78 149.4q-21.3 0-37.3-9t-25-25.7-9-39.7A87 87 0 0 1 12 43 67 67 0 0 1 50 5q13-5 27.6-5 12.9 0 24 3.7 11.1 3.6 19.7 10.3a50 50 0 0 1 20.2 36z",
"fill": "white"
}
}
]
},
"i": {
"elements": [
{
"name": "path",
"type": "element",
"attributes": {
"d": "M94.8 2v145.4H55.3V1.9z",
"fill": "white"
}
}
]
},
"n": {
"elements": [
{
"name": "path",
"type": "element",
"attributes": {
"d": "M138 2v145.4h-33L52.5 71h-1v76.4H12.2V1.9h33.5l51.7 76.2h1.2V1.9z",
"fill": "white"
}
}
]
},
"r": {
"elements": [
{
"name": "path",
"type": "element",
"attributes": {
"d": "M17.6 147.4V1.9h62.8q16.2 0 28.3 6 12 5.8 18.9 17a50 50 0 0 1 6.7 26.5q0 15.6-7 26.3A43 43 0 0 1 108 94q-12.5 5.5-29 5.5H41.3V68.7H71q7 0 11.8-1.7a15 15 0 0 0 7.6-5.6 17 17 0 0 0 2.7-10q0-6.3-2.7-10.2a15 15 0 0 0-7.6-5.8q-4.9-2-11.8-2H57v114zm85.2-66.8 36.4 66.8h-43L60.9 80.6z",
"fill": "white"
}
}
]
},
"t": {
"elements": [
{
"name": "path",
"type": "element",
"attributes": {
"d": "M11.7 33.8V1.9h126.5v31.9H94.4v113.6h-39V33.8z",
"fill": "white"
}
}
]
}
}
},
"shape01": {
"extends": "shape"
},
"shape02": {
"extends": "shape"
}
},
"colors": {
"background": {
"values": [
"#eb4747",
"#eb6247",
"#7eeb47",
"#62eb47",
"#47eb47",
"#47eb62",
"#47eb7e",
"#47eb99",
"#47ebb4",
"#47ebd0",
"#47ebeb",
"#47d0eb",
"#eb7e47",
"#47b4eb",
"#4799eb",
"#477eeb",
"#4762eb",
"#4747eb",
"#6247eb",
"#7e47eb",
"#9947eb",
"#b447eb",
"#d047eb",
"#eb9947",
"#eb47eb",
"#eb47d0",
"#eb4799",
"#eb477e",
"#eb4762",
"#ebb447",
"#ebd047",
"#ebeb47",
"#d0eb47",
"#b4eb47",
"#99eb47"
]
}
}
}''';