gentleface

Gentleface › Food & drink › cupcake

cupcake icon

Cupcake: cupcake, muffin. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.

Animated cupcake-pipe · line-round

The piping bag lifts away and pulls the frosting’s peak up into a strand. The strand breaks, and the peak drops back, leans over a little and settles.

Download SVG

Native SVG animation, with no CSS or script. It loops by itself. Inline it to take the text color: in an <img> it draws black. To play it once on hover or click, run 0.25 s to 1.6 s. Examples and helper.

Code line-round

SVG
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M1.157 6.221C1.258 5.981 1.401 5.77 1.585 5.585C1.77 5.401 1.981 5.258 2.221 5.157C2.469 5.052 2.729 5 3 5L3.16 5C3.053 4.773 3 4.523 3 4.25C3 3.987 3.059 3.74 3.177 3.51C3.287 3.296 3.441 3.11 3.639 2.952C3.824 2.805 4.035 2.693 4.272 2.615C4.505 2.538 4.747 2.5 5 2.5C5.404 2.5 5.817 2.409 6.241 2.228C6.619 2.066 6.921 1.872 7.146 1.646C7.244 1.549 7.362 1.5 7.5 1.5C7.638 1.5 7.756 1.549 7.854 1.646C8.079 1.872 8.381 2.066 8.759 2.228C9.183 2.409 9.596 2.5 10 2.5C10.253 2.5 10.495 2.538 10.728 2.615C10.965 2.693 11.176 2.805 11.361 2.952C11.559 3.11 11.713 3.296 11.823 3.51C11.941 3.74 12 3.987 12 4.25C12 4.523 11.947 4.773 11.84 5L12 5C12.271 5 12.531 5.052 12.779 5.157C13.019 5.258 13.23 5.401 13.415 5.585C13.599 5.77 13.742 5.981 13.843 6.221C13.948 6.469 14 6.729 14 7L14 7.75C14 7.909 13.971 8.062 13.912 8.21C13.849 8.371 13.756 8.512 13.634 8.634C13.512 8.756 13.371 8.849 13.21 8.912C13.113 8.951 13.014 8.976 12.912 8.99L12.071 13.196C12.024 13.43 11.908 13.622 11.724 13.773C11.54 13.924 11.328 14 11.09 14L3.91 14C3.672 14 3.46 13.924 3.276 13.773C3.092 13.622 2.976 13.43 2.929 13.196L2.088 8.99C1.986 8.976 1.887 8.951 1.79 8.912C1.629 8.849 1.488 8.756 1.366 8.634C1.244 8.512 1.151 8.371 1.088 8.21C1.029 8.062 1 7.909 1 7.75L1 7C1 6.729 1.052 6.469 1.157 6.221ZM12.927 7.927C12.976 7.878 13 7.819 13 7.75L13 7C13 6.723 12.903 6.487 12.708 6.292C12.513 6.097 12.277 6 12 6L10.5 6C10.391 6 10.293 5.969 10.207 5.907C10.121 5.844 10.06 5.761 10.026 5.658C9.982 5.527 9.991 5.4 10.053 5.276C10.115 5.153 10.211 5.069 10.342 5.026C10.591 4.943 10.768 4.827 10.874 4.678C10.958 4.561 11 4.418 11 4.25C11 4.045 10.913 3.874 10.739 3.735C10.542 3.578 10.295 3.5 10 3.5C9.459 3.5 8.915 3.382 8.366 3.147C8.038 3.007 7.749 2.844 7.5 2.658C7.251 2.844 6.962 3.007 6.634 3.147C6.085 3.382 5.541 3.5 5 3.5C4.705 3.5 4.458 3.578 4.261 3.735C4.087 3.874 4 4.045 4 4.25C4 4.418 4.042 4.561 4.126 4.678C4.232 4.827 4.409 4.943 4.658 5.026C4.761 5.06 4.844 5.121 4.907 5.207C4.969 5.293 5 5.391 5 5.5C5 5.641 4.952 5.759 4.856 5.856C4.759 5.952 4.641 6 4.5 6L3 6C2.723 6 2.487 6.097 2.292 6.292C2.097 6.487 2 6.723 2 7L2 7.75C2 7.819 2.024 7.878 2.073 7.927C2.122 7.976 2.181 8 2.25 8L12.75 8C12.819 8 12.878 7.976 12.927 7.927ZM5 13L5 9L3.11 9L3.91 13L5 13ZM9 9L6 9L6 13L9 13L9 9ZM10 9L10 13L11.09 13L11.89 9L10 9Z"/></svg>
React
// Gentleface "cupcake" (line-round), MIT. https://gentleface.com/icons/cupcake
import type { SVGProps } from 'react';

export function CupcakeIcon(props: SVGProps<SVGSVGElement>) {
  return (
    <svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
      <path d="M1.157 6.221C1.258 5.981 1.401 5.77 1.585 5.585C1.77 5.401 1.981 5.258 2.221 5.157C2.469 5.052 2.729 5 3 5L3.16 5C3.053 4.773 3 4.523 3 4.25C3 3.987 3.059 3.74 3.177 3.51C3.287 3.296 3.441 3.11 3.639 2.952C3.824 2.805 4.035 2.693 4.272 2.615C4.505 2.538 4.747 2.5 5 2.5C5.404 2.5 5.817 2.409 6.241 2.228C6.619 2.066 6.921 1.872 7.146 1.646C7.244 1.549 7.362 1.5 7.5 1.5C7.638 1.5 7.756 1.549 7.854 1.646C8.079 1.872 8.381 2.066 8.759 2.228C9.183 2.409 9.596 2.5 10 2.5C10.253 2.5 10.495 2.538 10.728 2.615C10.965 2.693 11.176 2.805 11.361 2.952C11.559 3.11 11.713 3.296 11.823 3.51C11.941 3.74 12 3.987 12 4.25C12 4.523 11.947 4.773 11.84 5L12 5C12.271 5 12.531 5.052 12.779 5.157C13.019 5.258 13.23 5.401 13.415 5.585C13.599 5.77 13.742 5.981 13.843 6.221C13.948 6.469 14 6.729 14 7L14 7.75C14 7.909 13.971 8.062 13.912 8.21C13.849 8.371 13.756 8.512 13.634 8.634C13.512 8.756 13.371 8.849 13.21 8.912C13.113 8.951 13.014 8.976 12.912 8.99L12.071 13.196C12.024 13.43 11.908 13.622 11.724 13.773C11.54 13.924 11.328 14 11.09 14L3.91 14C3.672 14 3.46 13.924 3.276 13.773C3.092 13.622 2.976 13.43 2.929 13.196L2.088 8.99C1.986 8.976 1.887 8.951 1.79 8.912C1.629 8.849 1.488 8.756 1.366 8.634C1.244 8.512 1.151 8.371 1.088 8.21C1.029 8.062 1 7.909 1 7.75L1 7C1 6.729 1.052 6.469 1.157 6.221ZM12.927 7.927C12.976 7.878 13 7.819 13 7.75L13 7C13 6.723 12.903 6.487 12.708 6.292C12.513 6.097 12.277 6 12 6L10.5 6C10.391 6 10.293 5.969 10.207 5.907C10.121 5.844 10.06 5.761 10.026 5.658C9.982 5.527 9.991 5.4 10.053 5.276C10.115 5.153 10.211 5.069 10.342 5.026C10.591 4.943 10.768 4.827 10.874 4.678C10.958 4.561 11 4.418 11 4.25C11 4.045 10.913 3.874 10.739 3.735C10.542 3.578 10.295 3.5 10 3.5C9.459 3.5 8.915 3.382 8.366 3.147C8.038 3.007 7.749 2.844 7.5 2.658C7.251 2.844 6.962 3.007 6.634 3.147C6.085 3.382 5.541 3.5 5 3.5C4.705 3.5 4.458 3.578 4.261 3.735C4.087 3.874 4 4.045 4 4.25C4 4.418 4.042 4.561 4.126 4.678C4.232 4.827 4.409 4.943 4.658 5.026C4.761 5.06 4.844 5.121 4.907 5.207C4.969 5.293 5 5.391 5 5.5C5 5.641 4.952 5.759 4.856 5.856C4.759 5.952 4.641 6 4.5 6L3 6C2.723 6 2.487 6.097 2.292 6.292C2.097 6.487 2 6.723 2 7L2 7.75C2 7.819 2.024 7.878 2.073 7.927C2.122 7.976 2.181 8 2.25 8L12.75 8C12.819 8 12.878 7.976 12.927 7.927ZM5 13L5 9L3.11 9L3.91 13L5 13ZM9 9L6 9L6 13L9 13L9 9ZM10 9L10 13L11.09 13L11.89 9L10 9Z" />
    </svg>
  );
}
Vue
Vue: see /icons/cupcake.md
Svelte
Svelte: see /icons/cupcake.md
HTML img
HTML img: see /icons/cupcake.md
CSS
CSS: see /icons/cupcake.md
Data URL
Data URL: see /icons/cupcake.md
Sprite
Sprite: see /icons/cupcake.md
SwiftUI
SwiftUI: see /icons/cupcake.md
Compose
Compose: see /icons/cupcake.md
Android XML
Android XML: see /icons/cupcake.md
Flutter
Flutter: see /icons/cupcake.md

Each icon is drawn on the 16 px grid, and most also on the 20 and 24 px grids (at 24 in three weights: light 1 px, regular 1.5 px, bold 2 px). Show the drawing made for your size, or an exact multiple of it, on whole pixels: 16 for 16 and 32 px, 20 for 20 and 40, 24 for 24 and 48. A size in between or a fractional position blurs it. The code on each icon page is the 16 px drawing, an SVG with fill="currentColor"; the icon page's downloads follow its Grid switch, and npm has the 20 and 24 px drawings too. The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. More in how to use.

With npm: import { CupcakeIcon } from '@gentleface/react'; (setup).

Meaning

Use it for
cupcake, muffin
Alternatives
  • cake: a birthday cake
Also fits
  • cake: a cupcake or muffin
Tags
cupcake
Category
Food & drink
Component name
CupcakeIcon
History
  • released in 0.2.0
  • added
  • 20 px drawn, 24 px drawn
Since
version 0.2.0

More food & drink icons

For agents

Metadata: /icons/cupcake.json · Markdown: /icons/cupcake.md · SVG: https://gentleface.com/svg/{style}/16/cupcake.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/cupcake.png