gentleface

Gentleface › Shapes › diamond

diamond icon

Diamond: diamond, rhombus, lozenge. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.

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="M8.207 13.5C8.012 13.695 7.776 13.793 7.5 13.793C7.224 13.793 6.988 13.695 6.793 13.5L1.5 8.207C1.305 8.012 1.207 7.776 1.207 7.5C1.207 7.224 1.305 6.988 1.5 6.793L6.793 1.5C6.988 1.305 7.224 1.207 7.5 1.207C7.776 1.207 8.012 1.305 8.207 1.5L13.5 6.793C13.695 6.988 13.793 7.224 13.793 7.5C13.793 7.776 13.695 8.012 13.5 8.207L8.207 13.5ZM2.207 7.5L7.5 12.793L12.793 7.5L7.5 2.207L2.207 7.5Z"/></svg>
React
// Gentleface "diamond" (line-round), MIT. https://gentleface.com/icons/diamond
import type { SVGProps } from 'react';

export function DiamondIcon(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="M8.207 13.5C8.012 13.695 7.776 13.793 7.5 13.793C7.224 13.793 6.988 13.695 6.793 13.5L1.5 8.207C1.305 8.012 1.207 7.776 1.207 7.5C1.207 7.224 1.305 6.988 1.5 6.793L6.793 1.5C6.988 1.305 7.224 1.207 7.5 1.207C7.776 1.207 8.012 1.305 8.207 1.5L13.5 6.793C13.695 6.988 13.793 7.224 13.793 7.5C13.793 7.776 13.695 8.012 13.5 8.207L8.207 13.5ZM2.207 7.5L7.5 12.793L12.793 7.5L7.5 2.207L2.207 7.5Z" />
    </svg>
  );
}
Vue
Vue: see /icons/diamond.md
Svelte
Svelte: see /icons/diamond.md
HTML img
HTML img: see /icons/diamond.md
CSS
CSS: see /icons/diamond.md
Data URL
Data URL: see /icons/diamond.md
Sprite
Sprite: see /icons/diamond.md
SwiftUI
SwiftUI: see /icons/diamond.md
Compose
Compose: see /icons/diamond.md
Android XML
Android XML: see /icons/diamond.md
Flutter
Flutter: see /icons/diamond.md

Each SVG is 16 × 16 with fill="currentColor". Keep it at 16 px or an exact multiple (32, 48) on whole pixels: a fractional size or position blurs it. 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.

Meaning

Use it for
diamond, rhombus, lozenge
Alternatives
  • gem: a faceted jewel for premium or value (gem)
Not for
  • gem (use gem): the rhombus shape (shapes), not a cut stone
  • keyframe (use keyframe): the plain diamond shape (rhombus), not the timeline marker
Tags
diamond, rhombus, lozenge, shape, polygon, geometry, decision
Category
Shapes
Component name
DiamondIcon
History
  • added

More shapes icons

For agents

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

Feedback