gentleface

Gentleface › Shapes › diamond

diamond icon

Diamond: diamond, rhombus, lozenge, diamond suit. 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 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 { DiamondIcon } from '@gentleface/react'; (setup).

Meaning

Use it for
diamond, rhombus, lozenge, diamond suit
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
  • released in 0.1.0
  • 20 px drawn, 24 px drawn
Since
version 0.1.0

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