A cupcake with icing and a cherry, for bakeries, birthdays, desserts and treats. On a 24×24 grid in stroke, two-tone, duotone and fill, free under MIT.
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M12 9H7C4.7909 9 3 10.7909 3 13C3 13.5523 3.4477 14 4 14H5M12 9H17C19.2091 9 21 10.7909 21 13C21 13.5523 20.5523 14 20 14H19M12 9V6M19 14H15M19 14L17.284 20.8638C17.1171 21.5315 16.5171 22 15.8288 22H14M15 14H9M15 14L14 22M9 14H5M9 14L10 22M5 14L6.716 20.8638C6.8829 21.5315 7.4829 22 8.1712 22H10M10 22H14"/>
<path d="M13 2C13 2.5523 12.5523 3 12 3C11.4477 3 11 2.5523 11 2C11 1.4477 11.4477 1 12 1C12.5523 1 13 1.4477 13 2Z" fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" stroke="none"/>
</svg>Also called
What someone searching for this drawing would have typed instead. These are the words the browser's search matches on.
- muffin
- cake
- dessert
- bakery
- frosting
- birthday
- sweet
Related icons
Closest to cupcake first: its name counts most, then what people search for it by, then the rest of the Food & Drink shelf.
FAQ
Answered from cupcake's own facts: its shelf, the styles it was drawn in, its siblings and its dates.
- What is the cupcake icon for?
- A cupcake with icing and a cherry, for bakeries, birthdays, desserts and treats. It is filed under Food & Drink in Keyline Icons, drawn on the same 24×24 grid as the rest of the set. People look for it as muffin, cake, dessert, bakery, frosting, birthday and sweet, and the browser's search matches all of those.
- What styles does the cupcake icon come in?
- All four: stroke, two-tone, duotone and fill. They are drawn from the same geometry, so swapping style never moves anything.
- Is there a square or circle version of cupcake?
- No. cupcake is drawn as a bare glyph, and the set has no boxed variant of it.
- What other icons go with cupcake?
- cake, donut, croissant, apple, avocado and banana, and 12 more, all shown below. Closest to cupcake first: its name counts most, then what people search for it by, then the rest of the Food & Drink shelf.
- How do I import cupcake in React?
- <Cupcake /> is the component, and the style decides the module: stroke from "@keyline-icons/react", two-tone from "@keyline-icons/react/two-tone", duotone from "@keyline-icons/react/duotone" and fill from "@keyline-icons/react/fill". It takes the usual SVG props plus a size, so <Cupcake size={16} /> and className="size-4" both work, and there is no provider or theme to set up.
- Where is the cupcake SVG?
- icons/stroke/cupcake.svg, icons/two-tone/cupcake.svg, icons/duotone/cupcake.svg and icons/fill/cupcake.svg in the repository, normalised: no wrapper, no ids and no classes to strip out. The tabs above hand you the same drawing as SVG or JSX without the download, and neither needs an install.
- When was cupcake added to the set?
- Added 24 Nov 2026. It ships in v3.0.0, so an install at that version or later has it.
Questions about the set rather than about this drawing are answered where they belong. The home page covers what the set is, how the three styles differ, why some icons come boxed and where the Figma file is; installing the set in a shadcn/ui project covers the React package, the CLI and using an icon without React. The MIT licence is stated in the footer of every page.