# diamond icon

Diamond. Gentleface icon, drawn on the 16 px pixel grid. Free, MIT licensed. Page: https://gentleface.com/icons/diamond

- Category: Shapes
- Use it for: diamond, rhombus, lozenge
- Tags: diamond, rhombus, lozenge, shape, polygon, geometry, decision
- Component name: DiamondIcon
- Added: 2026-10-14

## 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

## Files

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.

- line-round: https://gentleface.com/svg/line-round/16/diamond.svg · PNG https://gentleface.com/png/line-round/16/diamond.png · https://gentleface.com/png/line-round/32/diamond.png · https://gentleface.com/png/line-round/48/diamond.png
- line-soft: https://gentleface.com/svg/line-soft/16/diamond.svg · PNG https://gentleface.com/png/line-soft/16/diamond.png · https://gentleface.com/png/line-soft/32/diamond.png · https://gentleface.com/png/line-soft/48/diamond.png
- line-sharp: https://gentleface.com/svg/line-sharp/16/diamond.svg · PNG https://gentleface.com/png/line-sharp/16/diamond.png · https://gentleface.com/png/line-sharp/32/diamond.png · https://gentleface.com/png/line-sharp/48/diamond.png
- solid-round: https://gentleface.com/svg/solid-round/16/diamond.svg · PNG https://gentleface.com/png/solid-round/16/diamond.png · https://gentleface.com/png/solid-round/32/diamond.png · https://gentleface.com/png/solid-round/48/diamond.png
- solid-soft: https://gentleface.com/svg/solid-soft/16/diamond.svg · PNG https://gentleface.com/png/solid-soft/16/diamond.png · https://gentleface.com/png/solid-soft/32/diamond.png · https://gentleface.com/png/solid-soft/48/diamond.png
- solid-sharp: https://gentleface.com/svg/solid-sharp/16/diamond.svg · PNG https://gentleface.com/png/solid-sharp/16/diamond.png · https://gentleface.com/png/solid-sharp/32/diamond.png · https://gentleface.com/png/solid-sharp/48/diamond.png

The SVG of every style: https://gentleface.com/icons/diamond.json (`svg`).

## Code (line-round)

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. For another style, take its SVG from the JSON and swap the path `d`.

### SVG

```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

```tsx
// 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
<!-- Gentleface "diamond" (line-round), MIT. https://gentleface.com/icons/diamond -->
<template>
  <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>
</template>
```

### Svelte

```svelte
<!-- Gentleface "diamond" (line-round), MIT. https://gentleface.com/icons/diamond -->
<script>
  let props = $props();
</script>

<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>
```

### HTML img

```html
<!-- Gentleface "diamond" (line-round), MIT. https://gentleface.com/icons/diamond. An <img> can't take currentColor: it draws black. Inline the SVG or use the CSS mask to color it. -->
<img src="https://gentleface.com/svg/line-round/16/diamond.svg" width="16" height="16" alt="">
```

### CSS

```css
/* Gentleface "diamond" (line-round), MIT. https://gentleface.com/icons/diamond. Takes the text color. */
.icon-diamond {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath 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'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath 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'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
```

### Data URL

```text
data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath 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'/%3E%3C/svg%3E
```

### Sprite

```html
<!-- Gentleface "diamond" (line-round), MIT. https://gentleface.com/icons/diamond
     Every icon of this style in one file: https://gentleface.com/sprite/line-round.svg
     Serve it from your own origin: <use> does not load from another origin. -->
<svg width="16" height="16" aria-hidden="true"><use href="/sprite/line-round.svg#diamond"/></svg>
```

### SwiftUI

```swift
// Gentleface "diamond" (line-round), MIT. https://gentleface.com/icons/diamond
import SwiftUI

struct DiamondIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 8.207, y: 13.5))
        p.addCurve(to: CGPoint(x: 7.5, y: 13.793), control1: CGPoint(x: 8.012, y: 13.695), control2: CGPoint(x: 7.776, y: 13.793))
        p.addCurve(to: CGPoint(x: 6.793, y: 13.5), control1: CGPoint(x: 7.224, y: 13.793), control2: CGPoint(x: 6.988, y: 13.695))
        p.addLine(to: CGPoint(x: 1.5, y: 8.207))
        p.addCurve(to: CGPoint(x: 1.207, y: 7.5), control1: CGPoint(x: 1.305, y: 8.012), control2: CGPoint(x: 1.207, y: 7.776))
        p.addCurve(to: CGPoint(x: 1.5, y: 6.793), control1: CGPoint(x: 1.207, y: 7.224), control2: CGPoint(x: 1.305, y: 6.988))
        p.addLine(to: CGPoint(x: 6.793, y: 1.5))
        p.addCurve(to: CGPoint(x: 7.5, y: 1.207), control1: CGPoint(x: 6.988, y: 1.305), control2: CGPoint(x: 7.224, y: 1.207))
        p.addCurve(to: CGPoint(x: 8.207, y: 1.5), control1: CGPoint(x: 7.776, y: 1.207), control2: CGPoint(x: 8.012, y: 1.305))
        p.addLine(to: CGPoint(x: 13.5, y: 6.793))
        p.addCurve(to: CGPoint(x: 13.793, y: 7.5), control1: CGPoint(x: 13.695, y: 6.988), control2: CGPoint(x: 13.793, y: 7.224))
        p.addCurve(to: CGPoint(x: 13.5, y: 8.207), control1: CGPoint(x: 13.793, y: 7.776), control2: CGPoint(x: 13.695, y: 8.012))
        p.addLine(to: CGPoint(x: 8.207, y: 13.5))
        p.closeSubpath()
        p.move(to: CGPoint(x: 2.207, y: 7.5))
        p.addLine(to: CGPoint(x: 7.5, y: 12.793))
        p.addLine(to: CGPoint(x: 12.793, y: 7.5))
        p.addLine(to: CGPoint(x: 7.5, y: 2.207))
        p.addLine(to: CGPoint(x: 2.207, y: 7.5))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

// DiamondIcon().frame(width: 16, height: 16) fills with the foreground style. Keep it on whole points to stay crisp.
```

### Compose

```kotlin
// Gentleface "diamond" (line-round), MIT. https://gentleface.com/icons/diamond
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector.addPathNodes
import androidx.compose.ui.unit.dp

val DiamondIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "diamond", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("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"),
        fill = SolidColor(Color.Black),
    ).build()
}

// Icon(DiamondIcon, contentDescription = null) tints it with LocalContentColor.
```

### Android XML

```xml
<!-- res/drawable/ic_diamond.xml · Gentleface "diamond" (line-round), MIT. https://gentleface.com/icons/diamond -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="16dp"
    android:height="16dp"
    android:viewportWidth="16"
    android:viewportHeight="16"
    android:tint="?attr/colorControlNormal">
  <path
      android:fillColor="@android:color/white"
      android:pathData="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"/>
</vector>
```

### Flutter

```dart
// Gentleface "diamond" (line-round), MIT. https://gentleface.com/icons/diamond
import 'package:flutter/widgets.dart';

class DiamondIcon extends StatelessWidget {
  const DiamondIcon({super.key, this.size = 16, this.color});
  final double size;
  final Color? color;

  @override
  Widget build(BuildContext context) => CustomPaint(
        size: Size.square(size),
        painter: _DiamondIconPainter(color ?? IconTheme.of(context).color ?? const Color(0xFF000000)),
      );
}

class _DiamondIconPainter extends CustomPainter {
  _DiamondIconPainter(this.color);
  final Color color;

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(8.207, 13.5)
      ..cubicTo(8.012, 13.695, 7.776, 13.793, 7.5, 13.793)
      ..cubicTo(7.224, 13.793, 6.988, 13.695, 6.793, 13.5)
      ..lineTo(1.5, 8.207)
      ..cubicTo(1.305, 8.012, 1.207, 7.776, 1.207, 7.5)
      ..cubicTo(1.207, 7.224, 1.305, 6.988, 1.5, 6.793)
      ..lineTo(6.793, 1.5)
      ..cubicTo(6.988, 1.305, 7.224, 1.207, 7.5, 1.207)
      ..cubicTo(7.776, 1.207, 8.012, 1.305, 8.207, 1.5)
      ..lineTo(13.5, 6.793)
      ..cubicTo(13.695, 6.988, 13.793, 7.224, 13.793, 7.5)
      ..cubicTo(13.793, 7.776, 13.695, 8.012, 13.5, 8.207)
      ..lineTo(8.207, 13.5)
      ..close()
      ..moveTo(2.207, 7.5)
      ..lineTo(7.5, 12.793)
      ..lineTo(12.793, 7.5)
      ..lineTo(7.5, 2.207)
      ..lineTo(2.207, 7.5)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

  @override
  bool shouldRepaint(_DiamondIconPainter old) => old.color != color;
}
```
