@dicebear/definitions 9.0.0-alpha.0 → 9.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  {
2
- "$schema": "https://www.dicebear.com/schema/definition.json",
2
+ "$schema": "https://static.dicebear.com/schema/definition.json#",
3
3
  "$comment": "This file was generated by the DiceBear Exporter for Figma. https://www.figma.com/community/plugin/1005765655729342787",
4
- "meta": {
4
+ "metadata": {
5
5
  "license": {
6
6
  "name": "CC0 1.0",
7
7
  "url": "https://creativecommons.org/publicdomain/zero/1.0/"
@@ -17,381 +17,255 @@
17
17
  },
18
18
  "body": {
19
19
  "content": "<use href=\"url(#component-row1)\"/><use href=\"url(#component-row2)\"/><use href=\"url(#component-row3)\"/><use href=\"url(#component-row4)\"/><use href=\"url(#component-row5)\"/>",
20
- "dependencies": {
21
- "components": [
22
- "row1",
23
- "row2",
24
- "row3",
25
- "row4",
26
- "row5"
27
- ]
28
- }
29
- },
30
- "attributes": {
31
- "viewBox": "0 0 5 5",
32
- "fill": "none",
33
- "shapeRendering": "crispEdges"
20
+ "width": 5,
21
+ "height": 5
34
22
  },
35
- "components": {
36
- "row1": {
37
- "values": {
38
- "xooox": {
23
+ "attributes": [
24
+ {
25
+ "name": "fill",
26
+ "value": "none"
27
+ },
28
+ {
29
+ "name": "shape-rendering",
30
+ "value": "crispEdges"
31
+ }
32
+ ],
33
+ "components": [
34
+ {
35
+ "name": "row1",
36
+ "width": 5,
37
+ "height": 5,
38
+ "values": [
39
+ {
40
+ "name": "xooox",
39
41
  "content": "<path d=\"M1 0H0v1h1zm4 0H4v1h1z\" fill=\"url(#color-row)\"/>",
40
- "dependencies": {
41
- "colors": [
42
- "row"
43
- ]
44
- },
45
42
  "default": true
46
43
  },
47
- "xxoxx": {
44
+ {
45
+ "name": "xxoxx",
48
46
  "content": "<path d=\"M2 0H0v1h2zm3 0H3v1h2z\" fill=\"url(#color-row)\"/>",
49
- "dependencies": {
50
- "colors": [
51
- "row"
52
- ]
53
- },
54
47
  "default": true
55
48
  },
56
- "xoxox": {
49
+ {
50
+ "name": "xoxox",
57
51
  "content": "<path d=\"M0 0h1v1H0zm4 0h1v1H4zM3 0H2v1h1z\" fill=\"url(#color-row)\"/>",
58
- "dependencies": {
59
- "colors": [
60
- "row"
61
- ]
62
- },
63
52
  "default": true
64
53
  },
65
- "oxxxo": {
54
+ {
55
+ "name": "oxxxo",
66
56
  "content": "<rect x=\"1\" width=\"3\" height=\"1\" fill=\"url(#color-row)\"/>",
67
- "dependencies": {
68
- "colors": [
69
- "row"
70
- ]
71
- },
72
57
  "default": true
73
58
  },
74
- "xxxxx": {
59
+ {
60
+ "name": "xxxxx",
75
61
  "content": "<rect width=\"5\" height=\"1\" fill=\"url(#color-row)\"/>",
76
- "dependencies": {
77
- "colors": [
78
- "row"
79
- ]
80
- },
81
62
  "default": true
82
63
  },
83
- "oxoxo": {
64
+ {
65
+ "name": "oxoxo",
84
66
  "content": "<path d=\"M2 0H1v1h1zm2 0H3v1h1z\" fill=\"url(#color-row)\"/>",
85
- "dependencies": {
86
- "colors": [
87
- "row"
88
- ]
89
- },
90
67
  "default": true
91
68
  },
92
- "ooxoo": {
69
+ {
70
+ "name": "ooxoo",
93
71
  "content": "<rect x=\"2\" width=\"1\" height=\"1\" fill=\"url(#color-row)\"/>",
94
- "dependencies": {
95
- "colors": [
96
- "row"
97
- ]
98
- },
99
72
  "default": true
100
73
  }
101
- }
74
+ ]
102
75
  },
103
- "row2": {
104
- "values": {
105
- "xooox": {
76
+ {
77
+ "name": "row2",
78
+ "width": 5,
79
+ "height": 5,
80
+ "values": [
81
+ {
82
+ "name": "xooox",
106
83
  "content": "<path d=\"M1 1H0v1h1zm4 0H4v1h1z\" fill=\"url(#color-row)\"/>",
107
- "dependencies": {
108
- "colors": [
109
- "row"
110
- ]
111
- },
112
84
  "default": true
113
85
  },
114
- "xxoxx": {
86
+ {
87
+ "name": "xxoxx",
115
88
  "content": "<path d=\"M2 1H0v1h2zm3 0H3v1h2z\" fill=\"url(#color-row)\"/>",
116
- "dependencies": {
117
- "colors": [
118
- "row"
119
- ]
120
- },
121
89
  "default": true
122
90
  },
123
- "xoxox": {
91
+ {
92
+ "name": "xoxox",
124
93
  "content": "<path d=\"M0 1h1v1H0zm4 0h1v1H4zM3 1H2v1h1z\" fill=\"url(#color-row)\"/>",
125
- "dependencies": {
126
- "colors": [
127
- "row"
128
- ]
129
- },
130
94
  "default": true
131
95
  },
132
- "oxxxo": {
96
+ {
97
+ "name": "oxxxo",
133
98
  "content": "<rect x=\"1\" y=\"1\" width=\"3\" height=\"1\" fill=\"url(#color-row)\"/>",
134
- "dependencies": {
135
- "colors": [
136
- "row"
137
- ]
138
- },
139
99
  "default": true
140
100
  },
141
- "xxxxx": {
101
+ {
102
+ "name": "xxxxx",
142
103
  "content": "<rect y=\"1\" width=\"5\" height=\"1\" fill=\"url(#color-row)\"/>",
143
- "dependencies": {
144
- "colors": [
145
- "row"
146
- ]
147
- },
148
104
  "default": true
149
105
  },
150
- "oxoxo": {
106
+ {
107
+ "name": "oxoxo",
151
108
  "content": "<path d=\"M2 1H1v1h1zm2 0H3v1h1z\" fill=\"url(#color-row)\"/>",
152
- "dependencies": {
153
- "colors": [
154
- "row"
155
- ]
156
- },
157
109
  "default": true
158
110
  },
159
- "ooxoo": {
111
+ {
112
+ "name": "ooxoo",
160
113
  "content": "<rect x=\"2\" y=\"1\" width=\"1\" height=\"1\" fill=\"url(#color-row)\"/>",
161
- "dependencies": {
162
- "colors": [
163
- "row"
164
- ]
165
- },
166
114
  "default": true
167
115
  }
168
- }
116
+ ]
169
117
  },
170
- "row3": {
171
- "values": {
172
- "xooox": {
118
+ {
119
+ "name": "row3",
120
+ "width": 5,
121
+ "height": 5,
122
+ "values": [
123
+ {
124
+ "name": "xooox",
173
125
  "content": "<path d=\"M1 2H0v1h1zm4 0H4v1h1z\" fill=\"url(#color-row)\"/>",
174
- "dependencies": {
175
- "colors": [
176
- "row"
177
- ]
178
- },
179
126
  "default": true
180
127
  },
181
- "xxoxx": {
128
+ {
129
+ "name": "xxoxx",
182
130
  "content": "<path d=\"M2 2H0v1h2zm3 0H3v1h2z\" fill=\"url(#color-row)\"/>",
183
- "dependencies": {
184
- "colors": [
185
- "row"
186
- ]
187
- },
188
131
  "default": true
189
132
  },
190
- "xoxox": {
133
+ {
134
+ "name": "xoxox",
191
135
  "content": "<path d=\"M0 2h1v1H0zm4 0h1v1H4zM3 2H2v1h1z\" fill=\"url(#color-row)\"/>",
192
- "dependencies": {
193
- "colors": [
194
- "row"
195
- ]
196
- },
197
136
  "default": true
198
137
  },
199
- "oxxxo": {
138
+ {
139
+ "name": "oxxxo",
200
140
  "content": "<rect x=\"1\" y=\"2\" width=\"3\" height=\"1\" fill=\"url(#color-row)\"/>",
201
- "dependencies": {
202
- "colors": [
203
- "row"
204
- ]
205
- },
206
141
  "default": true
207
142
  },
208
- "xxxxx": {
143
+ {
144
+ "name": "xxxxx",
209
145
  "content": "<rect y=\"2\" width=\"5\" height=\"1\" fill=\"url(#color-row)\"/>",
210
- "dependencies": {
211
- "colors": [
212
- "row"
213
- ]
214
- },
215
146
  "default": true
216
147
  },
217
- "oxoxo": {
148
+ {
149
+ "name": "oxoxo",
218
150
  "content": "<path d=\"M2 2H1v1h1zm2 0H3v1h1z\" fill=\"url(#color-row)\"/>",
219
- "dependencies": {
220
- "colors": [
221
- "row"
222
- ]
223
- },
224
151
  "default": true
225
152
  },
226
- "ooxoo": {
153
+ {
154
+ "name": "ooxoo",
227
155
  "content": "<rect x=\"2\" y=\"2\" width=\"1\" height=\"1\" fill=\"url(#color-row)\"/>",
228
- "dependencies": {
229
- "colors": [
230
- "row"
231
- ]
232
- },
233
156
  "default": true
234
157
  }
235
- }
158
+ ]
236
159
  },
237
- "row4": {
238
- "values": {
239
- "xooox": {
160
+ {
161
+ "name": "row4",
162
+ "width": 5,
163
+ "height": 5,
164
+ "values": [
165
+ {
166
+ "name": "xooox",
240
167
  "content": "<path d=\"M1 3H0v1h1zm4 0H4v1h1z\" fill=\"url(#color-row)\"/>",
241
- "dependencies": {
242
- "colors": [
243
- "row"
244
- ]
245
- },
246
168
  "default": true
247
169
  },
248
- "xxoxx": {
170
+ {
171
+ "name": "xxoxx",
249
172
  "content": "<path d=\"M2 3H0v1h2zm3 0H3v1h2z\" fill=\"url(#color-row)\"/>",
250
- "dependencies": {
251
- "colors": [
252
- "row"
253
- ]
254
- },
255
173
  "default": true
256
174
  },
257
- "xoxox": {
175
+ {
176
+ "name": "xoxox",
258
177
  "content": "<path d=\"M0 3h1v1H0zm4 0h1v1H4zM3 3H2v1h1z\" fill=\"url(#color-row)\"/>",
259
- "dependencies": {
260
- "colors": [
261
- "row"
262
- ]
263
- },
264
178
  "default": true
265
179
  },
266
- "oxxxo": {
180
+ {
181
+ "name": "oxxxo",
267
182
  "content": "<rect x=\"1\" y=\"3\" width=\"3\" height=\"1\" fill=\"url(#color-row)\"/>",
268
- "dependencies": {
269
- "colors": [
270
- "row"
271
- ]
272
- },
273
183
  "default": true
274
184
  },
275
- "xxxxx": {
185
+ {
186
+ "name": "xxxxx",
276
187
  "content": "<rect y=\"3\" width=\"5\" height=\"1\" fill=\"url(#color-row)\"/>",
277
- "dependencies": {
278
- "colors": [
279
- "row"
280
- ]
281
- },
282
188
  "default": true
283
189
  },
284
- "oxoxo": {
190
+ {
191
+ "name": "oxoxo",
285
192
  "content": "<path d=\"M2 3H1v1h1zm2 0H3v1h1z\" fill=\"url(#color-row)\"/>",
286
- "dependencies": {
287
- "colors": [
288
- "row"
289
- ]
290
- },
291
193
  "default": true
292
194
  },
293
- "ooxoo": {
195
+ {
196
+ "name": "ooxoo",
294
197
  "content": "<rect x=\"2\" y=\"3\" width=\"1\" height=\"1\" fill=\"url(#color-row)\"/>",
295
- "dependencies": {
296
- "colors": [
297
- "row"
298
- ]
299
- },
300
198
  "default": true
301
199
  }
302
- }
200
+ ]
303
201
  },
304
- "row5": {
305
- "values": {
306
- "xooox": {
202
+ {
203
+ "name": "row5",
204
+ "width": 5,
205
+ "height": 5,
206
+ "values": [
207
+ {
208
+ "name": "xooox",
307
209
  "content": "<path d=\"M1 4H0v1h1zm4 0H4v1h1z\" fill=\"url(#color-row)\"/>",
308
- "dependencies": {
309
- "colors": [
310
- "row"
311
- ]
312
- },
313
210
  "default": true
314
211
  },
315
- "xxoxx": {
212
+ {
213
+ "name": "xxoxx",
316
214
  "content": "<path d=\"M2 4H0v1h2zm3 0H3v1h2z\" fill=\"url(#color-row)\"/>",
317
- "dependencies": {
318
- "colors": [
319
- "row"
320
- ]
321
- },
322
215
  "default": true
323
216
  },
324
- "xoxox": {
217
+ {
218
+ "name": "xoxox",
325
219
  "content": "<path d=\"M0 4h1v1H0zm4 0h1v1H4zM3 4H2v1h1z\" fill=\"url(#color-row)\"/>",
326
- "dependencies": {
327
- "colors": [
328
- "row"
329
- ]
330
- },
331
220
  "default": true
332
221
  },
333
- "oxxxo": {
222
+ {
223
+ "name": "oxxxo",
334
224
  "content": "<rect x=\"1\" y=\"4\" width=\"3\" height=\"1\" fill=\"url(#color-row)\"/>",
335
- "dependencies": {
336
- "colors": [
337
- "row"
338
- ]
339
- },
340
225
  "default": true
341
226
  },
342
- "xxxxx": {
227
+ {
228
+ "name": "xxxxx",
343
229
  "content": "<rect y=\"4\" width=\"5\" height=\"1\" fill=\"url(#color-row)\"/>",
344
- "dependencies": {
345
- "colors": [
346
- "row"
347
- ]
348
- },
349
230
  "default": true
350
231
  },
351
- "oxoxo": {
232
+ {
233
+ "name": "oxoxo",
352
234
  "content": "<path d=\"M2 4H1v1h1zm2 0H3v1h1z\" fill=\"url(#color-row)\"/>",
353
- "dependencies": {
354
- "colors": [
355
- "row"
356
- ]
357
- },
358
235
  "default": true
359
236
  },
360
- "ooxoo": {
237
+ {
238
+ "name": "ooxoo",
361
239
  "content": "<rect x=\"2\" y=\"4\" width=\"1\" height=\"1\" fill=\"url(#color-row)\"/>",
362
- "dependencies": {
363
- "colors": [
364
- "row"
365
- ]
366
- },
367
240
  "default": true
368
241
  }
369
- }
242
+ ]
370
243
  }
371
- },
372
- "colors": {
373
- "row": {
244
+ ],
245
+ "colors": [
246
+ {
247
+ "name": "row",
374
248
  "values": [
375
- "e53935",
376
- "ffb300",
249
+ "00897b",
250
+ "00acc1",
251
+ "039be5",
377
252
  "1e88e5",
253
+ "3949ab",
254
+ "43a047",
378
255
  "546e7a",
379
- "6d4c41",
380
- "00acc1",
381
- "f4511e",
382
256
  "5e35b1",
383
- "43a047",
257
+ "6d4c41",
384
258
  "757575",
385
- "3949ab",
386
- "039be5",
387
259
  "7cb342",
260
+ "8e24aa",
388
261
  "c0ca33",
389
- "fb8c00",
390
262
  "d81b60",
391
- "8e24aa",
392
- "00897b",
393
- "fdd835"
263
+ "e53935",
264
+ "f4511e",
265
+ "fb8c00",
266
+ "fdd835",
267
+ "ffb300"
394
268
  ]
395
269
  }
396
- }
270
+ ]
397
271
  }
package/src/initials.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
- "$schema": "https://www.dicebear.com/schema/definition.json",
3
- "meta": {
2
+ "$schema": "https://static.dicebear.com/schema/definition.json#",
3
+ "metadata": {
4
4
  "license": {
5
5
  "name": "CC0 1.0",
6
6
  "url": "https://creativecommons.org/publicdomain/zero/1.0/"
@@ -15,48 +15,14 @@
15
15
  }
16
16
  },
17
17
  "body": {
18
- "content": "<text x=\"50%\" y=\"50%\" font-family=\"{{options.fontFamily}}, sans-serif\" font-size=\"{{options.fontSize}}\" fill=\"{{colors.text}}\" text-anchor=\"middle\" style=\"transform: translateY(calc({{options.fontSize}}px * .356))\">{{prng.initials}}</text>",
19
- "dependencies": {
20
- "colors": ["text"]
21
- }
22
- },
23
- "attributes": {
24
- "viewBox": "0 0 100 100"
25
- },
26
- "colors": {
27
- "text": {
28
- "values": ["#000000"]
29
- }
18
+ "content": "<text x=\"50%\" y=\"50%\" font-family=\"system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', 'Liberation Sans', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'\" font-size=\"50\" fill=\"{{colors.text}}\" text-anchor=\"middle\" dy=\"17.8\">{{initials}}</text>",
19
+ "width": 100,
20
+ "height": 100
30
21
  },
31
- "additionalOptions": {
32
- "fontFamily": {
33
- "type": "string",
34
- "enum": [
35
- "Arial",
36
- "Verdana",
37
- "Helvetica",
38
- "Tahoma",
39
- "Trebuchet MS",
40
- "Times New Roman",
41
- "Georgia",
42
- "Garamond",
43
- "Courier New",
44
- "Brush Script MT",
45
- "sans-serif",
46
- "serif"
47
- ],
48
- "default": "Arial"
49
- },
50
- "fontSize": {
51
- "type": "integer",
52
- "minimum": 1,
53
- "maximum": 100,
54
- "default": 50
55
- },
56
- "fontWeight": {
57
- "type": "integer",
58
- "default": 400,
59
- "enum": [100, 200, 300, 400, 500, 600, 700, 800, 900]
22
+ "colors": [
23
+ {
24
+ "name": "text",
25
+ "values": ["000000"]
60
26
  }
61
- }
27
+ ]
62
28
  }