Replies: 1 comment 9 replies
-
The process of creating custom avatar styles definitely needs to be simplified. The first step in the right direction was made this week with the release of the DiceBear CLI. This makes it very easy to create and compile new avatar style projects.
However, the way from SVG files to TypeScript files is still quite complicated and time-consuming. This is definitely something I would like to improve. Currently I also import SVG files via copy and paste. It's really not fun. Your idea should be quite easy to implement. I'll take a closer look at it this weekend. My long term wish would be a Figma plugin that then also takes over colors and positions from the avatar parts. If the Figma document follows a fixed structure, no more rework in the TypeScript files would be necessary. At least in theory. |
Beta Was this translation helpful? Give feedback.
-
I was playing with this repo a few weeks ago. I was trying to use my own art to generate avatar. It was fun but took a lot of time, the most tedious part was having to manually copy, paste, configure all the SVGs into files under the
/src/paths
directory. It would be really nice if there's a way to auto-generate these files based on a file structure and provided SVG file names.If there's a way to just drop all my SVG exports from Figma into different layers/subdirectories under something like a
src/files
directory. Where the script will recursively scan all the files and auto generate thosepaths/....ts
files. The only complicated one I see is something liketop.ts
in the/vatars-avataaars-sprites
package.I think if we can auto generate the
paths/
files we can greatly improve the workflow of importing new avatar libraries.src/paths/accessories.ts
How are you importing these SVGs into dicebear? What's the most efficient way to import a Figma project? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions