UNPKG

@dicebear/dylan

Version:

Avatar style for DiceBear

22 lines (21 loc) 6.91 kB
/** * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma. * * Plugin: https://www.figma.com/community/plugin/1005765655729342787 * File: https://www.figma.com/design/rjF7B4FgtEB3FC8ruNuUGf/%40dicebear%2Fdylan */ import { escape } from '@dicebear/core'; export const hair = { plain: (components, colors) => `<path d="M17.34 30.1s.5 6.2 1.86 5.62 2.73-11.1 2.73-11.1 15.58-7.21 37.2 0c0 0 .19 9.54 1.56 9.93 1.34.4 2.64-4.37 2.64-4.37S63.6 8.45 40.32 8.56c-22.1.1-22.98 21.54-22.98 21.54" fill="${escape.xml(`${colors.hair}`)}"/>`, wavy: (components, colors) => `<path d="M18.49 30.45s.13 3.91 1.44 3.8c1.3-.1 3.05-12.59 3.05-12.59s18.07 4.66 33.19-.65c0 0 1.72 13.2 3.34 13.07 1.38-.12 2.4-3.57 2.4-3.57 0 .02 4.47-8.58-.62-17.85-7.93-14.45-29.74-11.22-35.44-.21 0 0-5.9-.94-8.3 6.35-2.38 7.29.94 11.67.94 11.67" fill="${escape.xml(`${colors.hair}`)}"/>`, shortCurls: (components, colors) => `<path d="m19.08 30.44 1.58 4.38 1.06-9.52s2.27 1.27 3.44-.26.16-3.47.16-3.47 1.8.55 3.3-.79c1.88-1.68 1.27-3.47 1.27-3.47s1.7 1.9 4.5 1.1c2.77-.8 3.14-2.76 3.14-2.76s.56 2.18 3.4 2.12 3.2-2 3.2-2 0 2.42 2.43 3.13 3.43-1.24 3.43-1.24-.9 2.37.66 3.74c1.44 1.26 3.5.35 3.5.35s-.73 2.3.77 3.62c1.6 1.41 3.48.6 3.48.6l.77 8.34 1.8-3.8s1.4-.13 2.72.15c0 0 2.58-2.79 1.15-5.9S61.2 21.9 61.2 21.9s1.95-3.05.13-5.65-4.94-1.95-4.94-1.95 1.18-3.52-1.68-5.27-5.92.46-5.92.46-.1-3.7-3.2-4.16C42.31 4.85 40.99 8 40.99 8s-1.36-2.9-4.15-2.44-3.32 3.54-3.32 3.54-2.42-2.56-4.82-1.13-1.8 4.51-1.8 4.51-2.98-2.24-5.32-.23-.14 5.1-.14 5.1-3.87-1.12-5.04 1.8 1.66 4.95 1.66 4.95-5.35 1.16-2.82 7.33c0 .03.6-.24 2.02-.58 1.42-.36 1.8-.4 1.8-.4z" fill="${escape.xml(`${colors.hair}`)}"/>`, parting: (components, colors) => `<path d="M19.51 30.42c16.36-4.9 20.13-15.57 20.13-15.57S51.18 29.46 60.6 30.5c0-.01.85-.03 2.57.15 0 0-3.22-21.28-23.36-20.56S18.19 30.61 18.19 30.61l1.32-.2z" fill="${escape.xml(`${colors.hair}`)}"/>`, spiky: (components, colors) => `<path d="m21.33 33.18 2.52-10.73 8.65 2.8 1.5-4.54 9.34 4.35 2.12-4.6 6.96 5.07 5.55-2.34 1.22 10.75 7.74-8.28-3.9-2.32.83-7.38-3.27.2-1.02-6.95-4.1 2.53-3.86-5.2-3.63 2.12-9.1-4.3-1.01 3.59-7.17-1.48v3.8h-9.21l1.64 4.22-8.4 3.16 4.5 2.95-4.5 4.22z" fill="${escape.xml(`${colors.hair}`)}"/>`, roundBob: (components, colors) => `<path d="M26.74 18.86s9.68 6.45 29.03 4.64c0 0-3.58 42.43 6.9 42.63s13.77-27.55 5.19-45.05C57.99.92 21.5-1.3 12.03 22.29c-9.47 23.6-.7 44.46 5.93 44.9 12.3.8 8.78-48.33 8.78-48.33" fill="${escape.xml(`${colors.hair}`)}"/>`, longCurls: (components, colors) => `<path d="M25.51 20.1c-.23.95-.21 2.72 0 3.67s1.46 1.17 2.44 1.15c1.01-.01 1.75-.93 2.22-1.83q.87-1.7 1.16-3.59c-.09 1.82.42 4.03 2.15 4.6 1.2.37 2.53-.25 3.34-1.2a10 10 0 0 0 1.6-3.39c-.1 1.13-.2 2.3.16 3.36.35 1.07 1.27 2.05 2.4 2.1.92.03 1.76-.53 2.4-1.2a7 7 0 0 0 1.8-3.93c-.54 2 1.15 4.27 3.21 4.34s3.9-2.1 3.48-4.13c.31 1.57 1.44 3.04 3 3.43 1.54.41 3.41-.58 3.68-2.16a16 16 0 0 0-.79 8.68c.17.92.5 1.91 1.32 2.33s2.1-.36 1.76-1.2a16.8 16.8 0 0 0-3.86 10.6c0 1.3.2 2.7 1.12 3.6.92.91 2.78.9 3.29-.3-1.68 1.32-2.76 6.96-2.81 9.1-.04 1.95 0 4 .94 5.7s2.98 2.98 4.83 2.37c2.1-.7 3.73-6.6 3.35-8.79-.32.2-.21.75.1.95.33.2.75.14 1.12.03a5.1 5.1 0 0 0 3.5-3.88 5.1 5.1 0 0 0-1.87-4.88c.06.62 1.02.5 1.5.1A7.2 7.2 0 0 0 74.39 38c-.33-.95-1.13-1.97-2.12-1.79 1.32-.17 1.98-1.72 2-3.05.06-3.83-2.17-8.5-6-8.3.96-2.2.86-5.1-.71-6.93-2.54-2.96-4.1-2.55-6.48-2.19A6.5 6.5 0 0 0 59.1 9.2a6.5 6.5 0 0 0-6.74-1C51.3 6 48.84 4.77 46.42 4.4a6 6 0 0 0-3.17.2c-1 .41-1.83 1.33-1.88 2.4a8.56 8.56 0 0 0-11.19-.16c-.55.5-.97 1.5-.3 1.84 0 0-6.66-1.62-9.49 2.62s-1.13 5.79-1.13 5.79-6.92.28-6.78 3.95 1.27 4.24 1.27 4.24-6.01-1.72-7.29 1.79c-1.04 2.82 1.79 4.42 1.79 4.42 0-.05-5.4 2.22-4.24 7.6.75 3.5 3.4 4.1 3.4 4.1s-2.41 6.6-.15 9 5.22.42 5.22.42-1.41 7.2 1.84 8.33 5.36-2.12 5.36-2.12-2.12 6.07 2.54 5.5c4.66-.55 7.46-9.6 3.4-13.68-.01 0 2.1-3.96 1.4-7.35s-3.25-5.79-3.25-5.79 1.98-1.12 1.7-3.94c-.3-2.82-3.26-4.38-3.26-4.38s3.4-3.1 3.53-9.18" fill="${escape.xml(`${colors.hair}`)}"/>`, buns: (components, colors) => `<path d="M59.48 13.61s4.16-4.36 7.25-.75c3.29 3.86-2.45 7.15-2.45 7.15 0 .05 6.05 12.66 3.62 11.58-2.12-.94-7.86 3.25-7.86 3.25l-3.2-17.41-30.5.75-5.83 16.38c.05 0-3.5-3.86-6.1-2.73s-.63-5.66 3.5-12.62c0 0-5-3.01-2.53-6.21 3-3.92 7.06-.47 7.06-.47s7.53-5.27 19.39-5.27 17.69 6.4 17.69 6.4" fill="${escape.xml(`${colors.hair}`)}"/><path d="m20.38 9.89-8.61 10.98c-.33.42-.41 1 0 1.41.35.35 1.08.43 1.41 0l8.61-10.98c.33-.42.41-1 0-1.41-.35-.35-1.08-.43-1.41 0m39.04.58q4.98 7.08 10.28 13.9c.33.43 1.06.34 1.4 0 .44-.42.34-1 .01-1.41a356 356 0 0 1-9.97-13.5c-.73-1.04-2.47-.05-1.73 1z" fill="${escape.xml(`${colors.hair}`)}"/>`, bangs: (components, colors) => `<path d="m23.63 27.26 32.94-.95 1.16 32.12 13.57-.19s10.17-16.35-3.2-37.07C53.77-1.04 16.07 7.11 9.3 28.77c-6.11 19.5 1.92 30.04 1.92 30.04l13.76.19-1.36-31.75z" fill="${escape.xml(`${colors.hair}`)}"/>`, fluffy: (components, colors) => `<path d="M20.23 32.43s13.74 23.53 3.86 28.24C12.83 66.03 2.59 50.96 3.9 39.72s10.94-16.35 10.94-16.35-.58-9.5 9.2-15.04 16.64.44 16.64.44 8.06-5.9 15.5-1.37c7.46 4.53 7.26 14.68 7.26 14.68s13.74-.56 13.65 16.47c-.08 15.17-10.03 22.94-16.8 21.6-10.48-2.07 1.24-29.22 1.24-29.22s-14.4 1.04-20.14-9.75c0 0-4 5.95-9.7 8.62a32 32 0 0 1-11.46 2.64z" fill="${escape.xml(`${colors.hair}`)}"/>`, flatTop: (components, colors) => `<path d="M19.07 30.47s1.63 6 2.49 5.81c2.1-.36 4.15-17.25 4.15-17.25l30.03-.32s1.64 17.06 3.18 17.06 3.37-5.22 3.37-5.22 1.22-19.9-.27-21.9C59.7 5.58 20.28 5.12 19 9.9s.06 20.58.06 20.58z" fill="${escape.xml(`${colors.hair}`)}"/>`, shaggy: (components, colors) => `<path d="m64.3 39.49.46-.41.1-.09c.12-.1-.13.1-.02.02l.24-.17q.5-.35 1.06-.62l.26-.12.05-.02.05-.02.58-.21q.6-.18 1.2-.28c.52-.08.85-.76.7-1.23-.18-.56-.67-.8-1.23-.7a9.3 9.3 0 0 0-4.87 2.43c-.38.36-.4 1.06 0 1.4.4.36 1 .4 1.4 0zm-51.8-1.16.14.01c-.27-.02-.11-.01-.04 0l.3.05.52.14.28.09.12.05c.02 0 .22.09.06.02-.14-.1 0-.04.03-.03l.15.06.26.13.47.3.27.22q.47.38.83.83c.33.4 1.07.37 1.41 0 .4-.43.36-.98 0-1.4a7.3 7.3 0 0 0-4.84-2.53c-.52-.06-1.02.5-1 1 .03.59.44.94 1 1" fill="${escape.xml(`${colors.hair}`)}"/><path d="M75.32 50.46c-.64-2.77-3.29-4.28-3.29-4.28a13.2 13.2 0 0 1-.21 10.87c.21-3.4-2.98-4.69-2.98-4.69 0 11.29-10.44 13.85-10.44 13.85 4.05-5.97 2.13-11.08 2.13-11.08-2.13 2.77-5.54 2.34-5.54 2.34 4.9-3.84 4.69-11.08 4.69-11.08l-3.62 2.34c4.05-7.46.43-19.39.43-19.39l-1.5 4.7-7.45-6.83-.43 4.05-9.6-6.18 2.14 6.82L26 21.67c.01 0-5.32 11.29.86 23.65 0 0-4.05-.64-5.97-4.69 0 0 .85 11.29 8.1 15.98-.04 0-1.96 2.34-6.65-2.13 0 0-.43 8.95 7.88 14.06 0 0-10 .64-14.06-13.21 0 0-3.84.64-2.34 7.03 0 0-5.97-2.13-4.26-10.44 0 0-1.57-.81-3.64 4.93 0 0-3.76-28.24 10.67-42.64C30.29.58 57.75 4.05 67.55 16.34c12.19 15.29 7.77 34.11 7.77 34.11" fill="${escape.xml(`${colors.hair}`)}"/>`, };