@illlustrations/avatars 1.0.0

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.
Files changed (45) hide show
  1. package/AI.md +84 -0
  2. package/ARTWORK.md +34 -0
  3. package/CHANGELOG.md +21 -0
  4. package/LICENSE +11 -0
  5. package/LICENSE-ARTWORK +9 -0
  6. package/LICENSE-CODE +21 -0
  7. package/README.md +170 -0
  8. package/dist/core/index.d.ts +4 -0
  9. package/dist/core/index.js +88 -0
  10. package/dist/core/types.d.ts +83 -0
  11. package/dist/core/types.js +2 -0
  12. package/dist/internal/render.d.ts +5 -0
  13. package/dist/internal/render.js +74 -0
  14. package/dist/internal/style.d.ts +7 -0
  15. package/dist/internal/style.js +71 -0
  16. package/dist/react/index.d.ts +8 -0
  17. package/dist/react/index.js +15 -0
  18. package/dist/styles/croods-presets.json +530 -0
  19. package/dist/styles/croods.d.ts +2 -0
  20. package/dist/styles/croods.js +2 -0
  21. package/dist/svg/croods-001.svg +68 -0
  22. package/dist/svg/croods-002.svg +52 -0
  23. package/dist/svg/croods-003.svg +61 -0
  24. package/dist/svg/croods-004.svg +37 -0
  25. package/dist/svg/croods-005.svg +77 -0
  26. package/dist/svg/croods-006.svg +52 -0
  27. package/dist/svg/croods-007.svg +64 -0
  28. package/dist/svg/croods-008.svg +57 -0
  29. package/dist/svg/croods-009.svg +44 -0
  30. package/dist/svg/croods-010.svg +68 -0
  31. package/dist/svg/croods-011.svg +72 -0
  32. package/dist/svg/croods-012.svg +51 -0
  33. package/dist/svg/croods-013.svg +73 -0
  34. package/dist/svg/croods-014.svg +34 -0
  35. package/dist/svg/croods-015.svg +70 -0
  36. package/dist/svg/croods-016.svg +58 -0
  37. package/dist/svg/croods-017.svg +72 -0
  38. package/dist/svg/croods-018.svg +68 -0
  39. package/dist/svg/croods-019.svg +38 -0
  40. package/dist/svg/croods-020.svg +66 -0
  41. package/dist/svg/croods-021.svg +64 -0
  42. package/dist/svg/croods-022.svg +63 -0
  43. package/dist/svg/croods-023.svg +58 -0
  44. package/dist/svg/croods-024.svg +38 -0
  45. package/package.json +94 -0
@@ -0,0 +1,38 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 600 600" width="600" height="600" role="img" aria-labelledby="avatar-title"><title id="avatar-title">croods-024</title><defs><clipPath id="avatar-clip"><rect width="600" height="600" rx="96"/></clipPath></defs><g clip-path="url(#avatar-clip)"><rect width="600" height="600" fill="#9BF1D9"/><g transform="translate(-190 364) scale(1 1)"><svg width="980" height="620" viewBox="0 0 980 620" fill="none" xmlns="http://www.w3.org/2000/svg" x="0" y="0">
2
+ <path d="M439.612 36.0859L442.94 20.1133H518.815V37.4182L529.464 40.5242C528.503 49.3246 518.149 66.9253 484.427 66.9253C450.705 66.9253 433.4 47.9934 428.963 38.5275L439.612 36.0859Z" fill="white"/>
3
+ <path d="M646.978 298.104C645.445 280.151 644.178 246.913 644.178 235.312H585.635V258.133L598.329 338.733C598.329 346.873 598.187 359.625 600.171 371.268C610.841 433.894 625.159 491.386 625.159 555.097C625.159 567.193 630.727 569.261 627.058 581.491C624.865 588.8 632.361 592.582 637.989 586.163C639.597 590.974 645.756 591.604 649.405 587.919C653.053 584.234 660.533 571.482 665.358 548.964C669.218 530.949 662.192 488.467 658.975 474.527C652.175 367.404 649.778 330.898 646.978 298.104Z" fill="white"/>
4
+ <path d="M644.178 235.312C644.178 246.913 645.445 280.151 646.978 298.104C649.778 330.898 649.176 367.404 655.975 474.527C659.192 488.467 668.695 530.966 664.835 548.981C660.009 571.499 653.054 584.234 649.405 587.919C645.756 591.604 639.597 590.974 637.989 586.163C632.361 592.582 624.865 587.227 627.058 579.918C630.727 567.689 629.16 566.882 629.291 566.854C625.954 563 625.954 556 625.954 545.623C617.548 486.779 612.736 433.061 602.683 374.054C600.699 362.41 598.329 346.873 598.329 338.733" stroke="black" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/>
5
+ <path d="M637.901 586.681C636.206 582.351 640.951 569.786 645.47 558.867" stroke="black" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/>
6
+ <path d="M638.564 550.082C633.536 562.649 632.806 559.546 628.614 573.721" stroke="black" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/>
7
+ <path d="M632.909 507.891C633.149 511.57 635.552 519.869 638.435 526.68C641.318 533.491 638.195 545.703 638.435 550.165C638.675 554.627 643 562.847 650.448 554.392C657.897 545.938 655.734 526.68 656.695 521.278" stroke="black" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/>
8
+ <path d="M298.461 291.664C298.891 273.65 303.287 244.841 305.431 232.688L369.835 244.377C366.184 267.102 358.719 312.935 358.062 314.468C357.24 316.385 355.05 349.513 352.86 368.405C351.108 383.518 344.464 446.323 341.361 475.528C343.021 481.996 344.098 484.433 347.384 495.822C351.491 510.06 348.753 524.192 347.384 531.858C346.015 539.524 350.396 563.344 341.361 560.606C332.325 557.868 330.683 539.798 330.683 524.192C330.683 531.585 329.132 541.56 329.132 553.984C329.132 566.08 337.528 579.498 339.17 584.974C340.813 590.45 336.367 594.804 330.683 592.756C328.219 597.261 314.529 593.461 310.696 587.164C304.399 584.974 295.84 572.483 291.015 549.964C287.154 531.95 292.027 495.936 295.244 481.996C293.567 463.174 291.534 442.032 289.39 402.142C286.709 352.28 297.925 314.181 298.461 291.664Z" fill="white"/>
9
+ <path d="M305.431 232.688C303.287 244.841 298.891 273.65 298.461 291.664C297.925 314.181 286.709 352.28 289.39 402.142C291.534 442.032 293.567 463.174 295.244 481.996C292.027 495.936 287.154 531.95 291.015 549.964C295.84 572.483 304.399 584.974 310.696 587.164C314.529 593.461 328.219 597.261 330.683 592.756C336.367 594.804 340.813 590.45 339.17 584.974C337.527 579.498 329.132 566.08 329.132 553.984C329.132 541.56 330.683 531.585 330.683 524.192C330.683 539.798 332.325 557.868 341.361 560.606C350.396 563.344 346.015 539.524 347.384 531.858C348.753 524.192 351.491 510.06 347.384 495.822C344.098 484.433 343.021 481.996 341.361 475.528C344.464 446.323 351.108 383.518 352.86 368.405C355.05 349.513 357.24 316.385 358.062 314.468C358.719 312.935 366.184 267.102 369.835 244.377" stroke="black" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/>
10
+ <path d="M311.111 542.789C311.521 549.434 312.968 564.252 315.48 570.367C317.993 576.483 323.262 587.432 330.361 592.347" stroke="black" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/>
11
+ <path d="M298.855 545.168C299.265 551.812 300.713 566.63 303.225 572.746C305.737 578.862 306.615 583.568 313.74 590.112" stroke="black" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/>
12
+ <path d="M340.639 78.8693C358.327 65.3289 395.448 47.8427 410.551 42.5742C414.797 40.9343 422.366 37.8907 428.336 36.7808C428.707 37.5256 429.32 38.2345 429.644 38.5044C434.794 47.3882 453.969 65.3362 487.121 65.491C520.274 65.6458 527.974 48.7853 527.974 40.4066L529.508 39.5372L545.126 43.733C551.497 45.5212 561.801 50.4425 572.636 55.6361C583.548 60.5337 597.174 70.7299 606.401 77.7735C612.09 82.1163 627.644 98.5692 638.601 147.54L657.831 225.579C651.021 231.77 629.651 243.881 598.646 242.803C599.094 263.917 601.075 279.927 603.828 291.839C606.573 303.72 609.729 321.014 603.828 332.01C598.131 338.294 581.206 349.821 559.081 345.659C536.081 353.873 471.733 358.254 439.97 347.028C426.553 355.79 372.063 348.397 363.027 335.801C355.798 325.724 358.3 308.46 360.455 301.088L370.833 243.416C332.305 243.416 294.936 230.473 289.027 223.771C306.32 119.418 336.007 83.3013 340.639 78.8693Z" fill="#FFE900"/>
13
+ <path d="M410.551 42.5742C395.448 47.8427 358.327 65.3289 340.639 78.8693C336.007 83.3013 306.32 119.418 289.027 223.771C294.936 230.473 332.305 243.416 370.833 243.416M410.551 42.5742C415.395 52.0311 435.61 77.0104 468.905 83.4633C492.93 88.1196 520.499 82.743 530.749 73.0608C545.236 59.376 545.126 46.6389 545.126 43.733M410.551 42.5742C414.797 40.9343 422.366 37.8907 428.336 36.7808C428.707 37.5256 429.32 38.2345 429.644 38.5044M442.763 19.6406C442.763 19.6406 441.429 29.2163 439.517 36.7808C437.004 37.9859 430.697 38.5044 429.644 38.5044M517.698 36.2595C517.698 36.2595 525.417 39.6395 527.974 40.4066M598.646 242.803C629.651 243.881 651.021 231.77 657.831 225.579L638.601 147.54C627.644 98.5692 612.09 82.1163 606.401 77.7735C597.174 70.7299 583.548 60.5337 572.636 55.6361C561.801 50.4425 551.497 45.5212 545.126 43.733L529.508 39.5372L527.974 40.4066M527.974 40.4066C527.974 48.7853 520.274 65.6458 487.121 65.491C453.969 65.3362 434.794 47.3882 429.644 38.5044M518.917 21.9189L517.345 40.4066M598.646 242.803C597.752 200.632 594.829 180.212 594.829 151.207M379.369 165.493C379.369 190.995 373.448 223.425 370.833 243.416L360.455 301.088C358.3 308.46 355.798 325.724 363.027 335.801C372.063 348.397 426.553 355.79 439.97 347.028C471.733 358.254 536.081 353.873 559.081 345.659C581.206 349.821 598.131 338.294 603.828 332.01C609.729 321.014 606.573 303.72 603.828 291.839C601.075 279.927 599.094 263.917 598.646 242.803" stroke="black" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/>
14
+ <path d="M420.733 338.969C427.006 341.671 440.708 347.48 445.341 349.102" stroke="black" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/>
15
+ <path d="M569.833 336.391C565.454 341.37 560.087 345.365 555.41 346.888" stroke="black" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/>
16
+ </svg></g><g transform="translate(106 40) scale(1 1)"><svg width="380" height="380" viewBox="0 0 380 380" fill="none" xmlns="http://www.w3.org/2000/svg" x="0" y="0">
17
+ <path d="M146.228 273.987C142.454 273.987 124.319 280.864 110.371 262.611C96.3753 244.297 101.762 226.98 114.064 221.811C89.0128 175.083 111.277 127.208 142.635 109.846C184.812 86.4946 250.129 88.5265 279.265 139.355C289.147 156.593 291.891 177.212 296.15 217.774C302.517 278.412 289.768 304.182 269.658 317.411C256.629 325.982 241.322 330.309 225.25 329.229L222.15 369.171L144.956 347.521C147.764 337.983 150.162 322.071 150.162 307.031C150.162 291.99 147.885 282.594 146.228 273.987Z" fill="white"/>
18
+ <path d="M142.635 229.479C116.387 205.418 87.5004 232.683 110.371 262.611C124.319 280.864 142.454 276.64 146.228 276.64C147.885 285.247 150.162 291.99 150.162 307.031C150.162 322.071 147.85 336.503 146.228 348.619M202.984 324.288C226.923 333.368 250.702 329.881 269.658 317.411C289.768 304.182 302.517 278.412 296.15 217.774C291.891 177.212 289.147 156.593 279.265 139.355C250.129 88.5265 184.812 86.4946 142.635 109.846C111.277 127.208 87.3264 175.89 112.378 222.619" stroke="black" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/>
19
+ <path d="M223.888 332.293C223.085 345.183 222.039 359.723 222.039 368.865" stroke="black" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/>
20
+ <path d="M223.785 346.845C214.533 340.65 209.315 336.983 200.755 326.129L225.177 330.736L223.785 346.845Z" fill="black"/>
21
+ <path d="M134.806 257.105C128.278 258.055 117.928 252.79 119.338 244.749C120.649 237.277 126.662 240.165 131.863 240.162" stroke="black" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/>
22
+ <path d="M241.501 90.9999C270.93 100.275 288.932 125.261 292.501 157.001C293.246 163.634 291.827 176.766 289.966 171.16C287.895 164.921 281.969 148.501 272.001 148.501C259.577 148.501 259.669 169.501 235.501 169.501C205.903 169.501 191.067 154.467 176.139 160.743C161.211 167.02 156.985 183.677 162.442 201.125C151.789 209.444 149.751 225.163 153.668 240.501C150.435 239.592 146.05 238.127 144.729 237.704C138.126 224.372 129.806 221.64 127.501 221.001C119.519 218.79 107.001 223.001 103.501 233.001C98.7391 225.861 93.3267 216.403 89 196C85.9999 181.853 82.9996 138.5 120.997 120.739C142.609 90.7748 169.966 87.6594 182.501 85.498C191.722 83.9079 212.785 81.95 241.501 90.9999Z" fill="#FF0000" stroke="black" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/>
23
+ <path d="M241.664 130.727V134.958" stroke="white" stroke-width="4" stroke-linecap="round"/>
24
+ <path d="M123.841 146.332L126.044 149.945" stroke="white" stroke-width="4" stroke-linecap="round"/>
25
+ <path d="M167.867 110.992L169.4 114.936" stroke="white" stroke-width="4" stroke-linecap="round"/>
26
+ <path d="M199.863 147.754L201.396 151.698" stroke="white" stroke-width="4" stroke-linecap="round"/>
27
+ <path d="M229.43 105.668L230.936 110.265" stroke="white" stroke-width="4" stroke-linecap="round"/>
28
+ <path d="M113.104 173.25L117.355 175.56" stroke="white" stroke-width="4" stroke-linecap="round"/>
29
+ <path d="M107 153.875L111.812 154.365" stroke="white" stroke-width="4" stroke-linecap="round"/>
30
+ <path d="M151.929 112.305L155.608 115.445" stroke="white" stroke-width="4" stroke-linecap="round"/>
31
+ </svg></g><g transform="translate(184 127) scale(1 1)"><svg width="300" height="300" viewBox="0 0 300 300" fill="none" xmlns="http://www.w3.org/2000/svg" x="0" y="0">
32
+ <path d="M170 207.458C168.345 206.653 161.906 202.354 151.533 207.458C146.937 209.719 143.565 214.277 142 216" stroke="black" stroke-width="6" stroke-linecap="round"/>
33
+ <path d="M166.194 141.977C170.561 155.352 178.327 167.936 176.02 173.188C173.714 178.441 167.362 179.967 159.282 177.274C156.871 176.47 155.786 173.188 155.786 173.188" stroke="black" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/>
34
+ <path d="M112.778 117.927C119.906 114.383 127.945 114.226 135.876 117.897" stroke="black" stroke-width="8" stroke-linecap="round"/>
35
+ <path d="M185.926 118.453C191.277 114.403 194.7 113.194 201.765 113.416" stroke="black" stroke-width="8" stroke-linecap="round"/>
36
+ <path d="M131.158 135.472C133.527 135.033 136.859 137.07 137.682 141.509C138.506 145.949 136.126 149.045 133.757 149.484C131.389 149.923 128.056 147.887 127.233 143.448C126.409 139.008 128.789 135.912 131.158 135.472Z" fill="black" stroke="black" stroke-width="6"/>
37
+ <path d="M192.737 134.421C193.056 134.412 193.88 134.579 194.856 135.821C195.799 137.021 196.554 138.882 196.669 141.113C196.785 143.343 196.225 145.238 195.409 146.485C194.564 147.776 193.76 147.986 193.44 147.994C193.121 148.003 192.298 147.836 191.321 146.593C190.379 145.393 189.624 143.533 189.509 141.302C189.393 139.071 189.952 137.176 190.768 135.93C191.613 134.639 192.418 134.429 192.737 134.421Z" fill="black" stroke="black" stroke-width="6"/>
38
+ </svg></g></g></svg>
package/package.json ADDED
@@ -0,0 +1,94 @@
1
+ {
2
+ "name": "@illlustrations/avatars",
3
+ "version": "1.0.0",
4
+ "description": "Composable, seeded SVG avatars for JavaScript and React. Croods is the first style.",
5
+ "homepage": "https://illlustrations.co/docs",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/realvjy/illlustrations-avatars.git"
9
+ },
10
+ "bugs": {
11
+ "url": "https://github.com/realvjy/illlustrations-avatars/issues"
12
+ },
13
+ "author": "Vijay Verma (https://vjy.me)",
14
+ "type": "module",
15
+ "license": "SEE LICENSE IN LICENSE",
16
+ "keywords": [
17
+ "avatar",
18
+ "avatars",
19
+ "svg",
20
+ "react",
21
+ "croods",
22
+ "illustration",
23
+ "generator",
24
+ "seeded"
25
+ ],
26
+ "sideEffects": false,
27
+ "files": [
28
+ "dist",
29
+ "README.md",
30
+ "CHANGELOG.md",
31
+ "AI.md",
32
+ "ARTWORK.md",
33
+ "LICENSE",
34
+ "LICENSE-CODE",
35
+ "LICENSE-ARTWORK"
36
+ ],
37
+ "main": "./dist/core/index.js",
38
+ "types": "./dist/core/index.d.ts",
39
+ "exports": {
40
+ ".": {
41
+ "types": "./dist/core/index.d.ts",
42
+ "import": "./dist/core/index.js",
43
+ "default": "./dist/core/index.js"
44
+ },
45
+ "./react": {
46
+ "types": "./dist/react/index.d.ts",
47
+ "import": "./dist/react/index.js",
48
+ "default": "./dist/react/index.js"
49
+ },
50
+ "./croods": {
51
+ "types": "./dist/styles/croods.d.ts",
52
+ "import": "./dist/styles/croods.js",
53
+ "default": "./dist/styles/croods.js"
54
+ },
55
+ "./croods/presets.json": "./dist/styles/croods-presets.json",
56
+ "./svg/*.svg": "./dist/svg/*.svg",
57
+ "./package.json": "./package.json"
58
+ },
59
+ "scripts": {
60
+ "build": "node scripts/build.mjs",
61
+ "test": "npm run build && node --test tests/*.test.mjs",
62
+ "typecheck": "tsc --noEmit",
63
+ "check:package": "node scripts/check-package.mjs",
64
+ "preview": "npm run build && node scripts/preview.mjs",
65
+ "prepack": "npm run build",
66
+ "prepublishOnly": "npm test && node scripts/sync-readme.mjs --check",
67
+ "prepare:croods": "node scripts/prepare-croods.mjs",
68
+ "verify:artwork": "node scripts/verify-artwork.mjs"
69
+ },
70
+ "peerDependencies": {
71
+ "react": "^18.3.1 || ^19.0.0"
72
+ },
73
+ "peerDependenciesMeta": {
74
+ "react": {
75
+ "optional": true
76
+ }
77
+ },
78
+ "devDependencies": {
79
+ "@types/react": "^19.2.18",
80
+ "@types/react-dom": "^19.2.5",
81
+ "@xmldom/xmldom": "^0.9.12",
82
+ "jsdom": "^27.0.0",
83
+ "react": "^19.2.8",
84
+ "react-dom": "^19.2.8",
85
+ "sharp": "^0.35.4",
86
+ "typescript": "^5.5.4"
87
+ },
88
+ "engines": {
89
+ "node": ">=20.19"
90
+ },
91
+ "publishConfig": {
92
+ "access": "public"
93
+ }
94
+ }