Cupcake
The cupcake icon represents a sweet dessert, often associated with celebrations or treats.
Exports at 24 × 24 px
Code
Cupcake in your framework
In any framework. Customize it above, and the code follows.
export const CupcakeIcon = (props: React.SVGProps<SVGSVGElement>) => (
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 72 72" fill="none" stroke="currentColor" {...props}>
<path fill="none" stroke="#000" strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="m34.134 16.5l1.732-1m-8 10l-1.732-1m10.732 11l-1.732-1M45.5 26.866l-1-1.732m-10 2.732l1-1.732m6-7.268l-1-1.732m-17 18.732l-1-1.732M29 40h2m16.5-3.134l1-1.732M41.134 39.5l1.732-1"/><path fill="#a57939" stroke="#a57939" strokeMiterlimit="10" strokeWidth="2" d="M59.031 43.629a2 2 0 1 0-2-3.464L36 40l-21.01.165a2.15 2.15 0 0 0-2.732.732a2.15 2.15 0 0 0 .732 2.732L36 57Z"/><path fill="#92d3f5" d="M56 46c-4 0-8 13-8 21H24c0-8-4-21-8-21h5l3 2l3-2l3 2l3-2l3 2l3-2l3 2l3-2l3 2l3-2Z"/><path fill="#ffa7c0" stroke="#ffa7c0" strokeMiterlimit="10" strokeWidth="2" d="M50 42c3.846-1.099 6-3 6-7c0-2-3-4-3-4s-1.914-1.958-1.357-3.204C52 27 20 27.161 20 28c0 1-2 2-2 2s-3 0-3 4c0 7 6.864 7.466 13 9c4 1 5-1 10-1c4 0 5 2 12 0Z"/><path fill="#ffa7c0" stroke="#ffa7c0" strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="M24.052 20.66c-2.276 0-4.552 2.46-4.552 4.31c0 2.206 1.138 5.413 10.241 5.413l10.242.103c10.241 0 12.517-2.103 12.517-4.31s-3.414-3.206-3.414-3.206C47.86 22 46.828 21 47.948 18.349c-.086-2.269-6.376-4.273-6.804-7.39a1.4 1.4 0 0 0-.21-.611L39 5c-.126 6.663-12.672 7.832-12.672 12.245c0 0 0 3.414-2.276 3.414"/><path fill="#61b2e4" stroke="#61b2e4" strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="m34.134 16.5l1.732-1"/><path fill="#61b2e4" stroke="#d22f27" strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="m27.866 25.5l-1.732-1"/><path fill="#61b2e4" stroke="#5c9e31" strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="m36.866 35.5l-1.732-1M45.5 26.866l-1-1.732"/><path fill="#61b2e4" stroke="#fcea2b" strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="m34.5 27.866l1-1.732"/><path fill="#61b2e4" stroke="#8967aa" strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="m41.5 18.866l-1-1.732"/><path fill="#5c9e31" stroke="#61b2e4" strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="m23.5 35.866l-1-1.732"/><path fill="#61b2e4" stroke="#e27022" strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="M29 40h2"/><path fill="#61b2e4" stroke="#d22f27" strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="m47.5 36.866l1-1.732"/><path fill="#61b2e4" stroke="#fcea2b" strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="m41.134 39.5l1.732-1"/><g fill="none" stroke="#000" strokeLinecap="round" strokeLinejoin="round" strokeWidth="2"><path d="M39 5c-.126 6.663-12.672 7.832-12.672 12.245c0 2.207 3.413 2.207 5.69 2.207m9.102-8.827c0 3.31 6.828 5.517 6.828 7.724s-4.49 4.634-11.379 4.31M24.052 20.66c-2.276 0-4.552 2.46-4.552 4.31c0 2.206 1.138 5.413 10.241 5.413m10.242.104c10.241 0 12.517-2.104 12.517-4.31s-3.414-3.207-3.414-3.207M56 46c-4 0-8 13-8 21H24c0-8-4-21-8-21"/><path d="m21 46l2.168 1.445a1.63 1.63 0 0 0 1.664 0l1.336-.89a1.63 1.63 0 0 1 1.664 0l1.336.89a1.63 1.63 0 0 0 1.664 0l1.336-.89a1.63 1.63 0 0 1 1.664 0l1.336.89a1.63 1.63 0 0 0 1.664 0l1.336-.89a1.63 1.63 0 0 1 1.664 0l1.336.89a1.63 1.63 0 0 0 1.664 0l1.336-.89a1.63 1.63 0 0 1 1.664 0l1.336.89a1.63 1.63 0 0 0 1.664 0L51 46M18 30s-3 0-3 4c0 3 3 8 9 8m33.031-1.835a2 2 0 1 1 2 3.464M14.99 40.165a2.15 2.15 0 0 0-2.732.732a2.15 2.15 0 0 0 .732 2.732M53 31s3 1 3 4s-2 7-6 7"/></g>
</svg>
);Other libraries
Cupcake in 8 more libraries
Each library draws it its own way. Open one to compare.
OpenMoji
More like it
Icons that share its tags, in the same style.
Search OpenMoji
Skip the copy and paste. With Pro, your AI agent finds and installs any OpenMoji icon from a prompt.
Get ProTags
Browse by tag
Cupcake is tagged food, dessert, sweet and 3 more. Related tags follow; each opens its icons from every library.
Pricing
OpenMoji MCP, with Pro
Ask for Cupcake or any of 4,481 OpenMoji 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 Cupcake icon means and where it's used, then how to install, style, label and license it.
The cupcake icon represents a sweet dessert, often associated with celebrations or treats. It is commonly used to symbolize a tasty and indulgent food.
In real-world applications, this icon appears in software or platforms related to food delivery, recipe websites, or bakery shops. For example, it might be used in a mobile app for ordering desserts or in a website for a cake decorating business.
From a UX perspective, the cupcake icon communicates a sense of indulgence and pleasure. It helps users quickly understand that a certain feature or option is related to sweet treats.
Cupcake is one of 4,481 icons in OpenMoji, made by OpenMoji and released under CC BY-SA 4.0. It is drawn on a 72 × 72 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 CupcakeIcon to components/icons/openmoji-cupcake.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 CupcakeIcon 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 Cupcake icon, or any of 4,481 OpenMoji icons, and install it from a prompt.
It's multicolor, so it keeps its own colors.
Set width and height on the component, or a class like size-6. It's drawn on a 72 × 72 grid, so it stays sharp at any size. Customize also sets the size it exports at, its padding and rotation.
Yes. It keeps its own colors in light and dark mode, so check it against both backgrounds. 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="Cupcake", so screen readers say what it does.
Yes. CupcakeIcon passes every SVG prop to the svg element, so <CupcakeIcon 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 conditions: CC BY-SA 4.0 asks you to credit the author (OpenMoji), and icons you change must use the same license. The full terms are in the license, linked on this page.
Yes. CC BY-SA 4.0 asks you to credit OpenMoji, and icons you change must be shared under the same license.
Yes. Copying and downloading it is free, and the shadcn CLI install only needs a free account.
8 other libraries draw an icon called Cupcake. 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 food, dessert, sweet, treat, baking and pastry. Each tag page lists the icons that carry it from every library, which is the quickest way to find a match for Cupcake in another set.
OpenMoji draws many icons in several styles: Light next to the default. Open the library and pick a style above the grid to see Cupcake's siblings in it.
4.9 out of 5 from 150+ developers
Install Cupcake from a prompt
MCP, 6,000+ blocks and 14 premium templates in every Pro plan. The icons stay free.
Get Pro