Yarn
The yarn icon represents a length of thread or fiber used for knitting, crochet, or sewing.
Exports at 24 × 24 px
Code
Yarn in your framework
In any framework. Customize it above, and the code follows.
export const YarnIcon = (props: React.SVGProps<SVGSVGElement>) => (
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 512 512" {...props}>
<path fill="currentColor" d="M338.6 27.83c-8.1-.03-14.8 2.23-20.9 6.37c-19.1 12.88-32.9 49.62-39.4 103.4l10.7 9c15.1-43.5 29.9-88.7 57.2-118.14c-2.7-.42-5.2-.63-7.6-.63m27.3 6.7C338.2 60.14 321.3 109.5 303.8 159l10.8 9.1c11.2-24 22.3-49.1 35.1-71.07c11.5-19.85 24.5-37.4 41.2-48.43c-9.1-6.1-17.4-10.75-25-14.07m40.8 25.68c-15.2 7.85-28.7 24.06-41 45.09c26.3-16.06 44.7-24.41 59.7-29.18c-3.3-3.05-6.8-6.16-10.6-9.33c-2.7-2.31-5.4-4.49-8.1-6.58m33.4 30.48c-19 4.43-42.7 14.21-91.3 46.91c-3.3 6.7-6.4 13.5-9.6 20.3c39.6-19 81.7-41.1 119.1-43.4c-4.3-7.3-10.3-15.29-18.2-23.81m24.8 41.71c-6 0-12.5.9-19.4 2.4c-7.4 9-12.5 21.3-15 33.7c-1.5 7.1-2 14.3-1.9 20.7c18.1-10.2 30.1-21.1 35.1-32.4c3.4-7.5 4.3-15.3 2.1-24.4zm-45 9.9c-9.4 3.4-19.3 7.5-29.4 11.9c-10.4 20.1-14.8 39.9-15.2 57.2c13.2-4.2 25.1-8.7 35.7-13.4c-1.2-10-.6-21.4 1.8-33.1c1.5-7.6 3.9-15.2 7.1-22.6M269.8 154l-19.3 23l84.2 70.7l19.3-23zm96.3 11.3c-11.8 5.5-23.6 11.1-35.3 16.4l26.9 22.5c.9-12.4 3.6-25.5 8.4-38.9m-127.2 25.5l-50.1 59.7l84.3 70.7l50.1-59.7zm178.3 24.6c-10.4 4.5-21.9 8.7-34.2 12.6c8.2.9 18.7 2.4 29.4 4.8c11.2 2.5 22.4 6.2 30.3 10.6c7.9 4.5 11.8 9.1 12.4 13.7v.1c.8 6.3-.4 10.8-3.2 15.2s-7.6 8.7-14.1 12.8c-13.2 8-33.1 14.5-53.7 21c-20.5 6.6-41.8 13.1-58.8 22.9c-17 9.9-30.6 24.7-30.3 45.1c.2 19.1 11.8 35.5 27.1 49.2s34.8 25.3 54.2 34.9c38.8 19.1 77.2 30.3 77.2 30.3l5-17.2s-37.2-10.9-74.2-29.3c-18.5-9.1-36.9-20.2-50.2-32.1c-13.3-12-20.9-24.3-21.1-36c-.2-12.8 7.1-21 21.3-29.3c14.3-8.2 34.7-14.8 55.3-21.3s41.4-13 57.6-22.9c8-4.9 15.1-10.8 19.9-18.5c4.9-7.6 7.1-17.1 5.8-27.1c-1.6-12.5-10.8-21.2-21.3-27.2c-10.2-5.8-22.4-9.5-34.4-12.3m-239.9 48.9l-19.3 23l84.2 70.7l19.3-23zm-40.6 36.3c-13.2 4.2-25.2 8.7-35.7 13.4c1.2 10 .6 21.4-1.83 33.1c-1.55 7.6-3.88 15.3-7.14 22.6c9.47-3.4 19.37-7.5 29.47-11.9c10.4-20.1 14.8-39.9 15.2-57.2m17.6 7.2c-.9 12.4-3.6 25.5-8.4 38.9c11.8-5.5 23.6-11.1 35.2-16.4l-5.2-4.4zm-70.85 15c-18.08 10.2-30.14 21.1-35.17 32.4c-3.35 7.5-4.27 15.3-2.07 24.4c6.27.1 13.1-.8 20.37-2.4c7.37-9 12.44-21.3 14.96-33.7c1.47-7.1 2.03-14.3 1.91-20.7m113.95 21.1c-11.2 24-22.3 49.1-35.1 71.1c-11.5 19.8-24.5 37.3-41.1 48.4c9 6.1 17.3 10.7 24.9 14.1c27.7-25.6 44.6-75 62.1-124.5zm-24.6 10.2c-39.6 19-81.77 41.1-119.05 43.4c4.28 7.3 10.29 15.3 18.15 23.8c19.08-4.4 42.7-14.3 91.3-46.9c3.3-6.7 6.4-13.5 9.6-20.3m50.2 11.3c-15.1 43.5-29.9 88.7-57.2 118.1c11.6 1.9 20.5-.3 28.5-5.7c19.1-12.9 32.9-49.6 39.4-103.4zm-76.7 41.3c-26.3 16.1-44.7 24.4-59.73 29.1c3.35 3.1 6.88 6.2 10.67 9.4c2.75 2.3 5.46 4.5 8.06 6.6c15.2-7.9 28.7-24 41-45.1"/>
</svg>
);Other libraries
Yarn in 8 more libraries
Each library draws it its own way. Open one to compare.
Game Icons
More like it
Icons that share its tags, in the same style.
Search Game Icons
Skip the copy and paste. With Pro, your AI agent finds and installs any Game Icons icon from a prompt.
Get ProTags
Browse by tag
Yarn is tagged textile, fabric and sewing. Related tags follow; each opens its icons from every library.
Pricing
Game Icons MCP, with Pro
Ask for Yarn or any of 4,123 Game Icons icons and your agent installs it. The MCP comes with every Pro plan, with 6,000+ blocks and 14 premium templates. The icons stay free.
4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.
- Secure checkout via Stripe
- Code lives in your repo
- Keep what you've shipped if you cancel
- License terms
FAQ
Frequently asked questions
What the Yarn icon means and where it's used, then how to install, style, label and license it.
The yarn icon represents a length of thread or fiber used for knitting, crochet, or sewing. It symbolizes textile production, crafting, and material creation.
The yarn icon appears in software related to crafting, such as Ravelry, knitting and crochet patterns like Moogly, and textile design tools.
From a UX perspective, the yarn icon communicates warmth, texture, and creativity, guiding users through crafting and textile-related activities.
Yarn is one of 4,123 icons in Game Icons, made by GameIcons and released under CC BY 3.0. It is drawn on a 512 × 512 grid.
Sign in (it's free), then open Get icon, Install with shadcn CLI, and pick your package manager to copy the command. It adds YarnIcon to components/icons/game-icons-yarn.tsx: one file, a size prop (24 by default) and every SVG prop, with no icon package.
Copy it as React (from Get icon, or the Code section): a typed YarnIcon component you paste into your project, with no package to install. Only the icons you import reach your bundle. It works in Next.js and any React app.
Open Get icon, then Copy as code, and pick Vue, Svelte, Angular, Solid or Preact; the Code section shows each one too. Every version is one self-contained component with the SVG inside, and SVG and data URL copies are there for plain HTML and CSS.
With Pro, the shadcn.io MCP server lets Claude Code, Cursor or any MCP client find the Yarn icon, or any of 4,123 Game Icons icons, and install it from a prompt.
It's drawn in currentColor, so it takes the text color wherever you use it: a class like text-primary recolors it. To bake a color in, set one in Customize before you copy.
Set width and height on the component, or a class like size-6. It's drawn on a 512 × 512 grid, so it stays sharp at any size. Customize also sets the size it exports at, its padding and rotation.
Yes. It follows the text color, so with text-foreground (or any theme token) it changes with your light and dark themes. The icon is a vector, so it needs no separate dark asset.
Next to a visible label it's decoration: add aria-hidden="true" so screen readers skip it. Standing alone, as in an icon button, give the button a name instead, like aria-label="Yarn", so screen readers say what it does.
Yes. YarnIcon passes every SVG prop to the svg element, so <YarnIcon aria-hidden="true" /> works, and so do role="img" with aria-label, or a title child, when it carries meaning on its own.
Yes. Open Get icon, then Download file: SVG for code or design tools like Figma; PNG, WebP or JPEG at 512px; or an ICO favicon with 16, 32 and 48px inside. Each one uses what you set in Customize.
Yes, with credit: CC BY 3.0 asks you to credit the author (GameIcons) where you use the icons. The full terms are in the license, linked on this page.
Yes. CC BY 3.0 asks you to credit the author where you use the icons, for example "Icons by GameIcons, CC BY 3.0" on an about or credits page.
Yes. Copying and downloading it is free, and the shadcn CLI install only needs a free account.
8 other libraries draw an icon called Yarn. The Other libraries section on this page shows each one, so you can compare them and open the one that fits your style.
Its tags are textile, fabric and sewing. Each tag page lists the icons that carry it from every library, which is the quickest way to find a match for Yarn in another set.
4.9 out of 5 from 150+ developers
Install Yarn from a prompt
MCP, 6,000+ blocks and 14 premium templates in every Pro plan. The icons stay free.
Get Pro