# grass icon

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

- Category: Nature & animals
- Use it for: grass, lawn, turf
- Tags: grass, lawn, turf, meadow, yard, garden, field, park, blades, mowing, landscaping, nature, green
- Component name: GrassIcon
- Added: 2026-10-29
- Since: version 0.2.0
- npm: `import { GrassIcon } from '@gentleface/react';` (@gentleface/react 0.2.0)
- Changed: 2026-10-30 (added)

## 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/grass.svg · PNG https://gentleface.com/png/line-round/16/grass.png · https://gentleface.com/png/line-round/32/grass.png · https://gentleface.com/png/line-round/48/grass.png
- line-soft: https://gentleface.com/svg/line-soft/16/grass.svg · PNG https://gentleface.com/png/line-soft/16/grass.png · https://gentleface.com/png/line-soft/32/grass.png · https://gentleface.com/png/line-soft/48/grass.png
- line-sharp: https://gentleface.com/svg/line-sharp/16/grass.svg · PNG https://gentleface.com/png/line-sharp/16/grass.png · https://gentleface.com/png/line-sharp/32/grass.png · https://gentleface.com/png/line-sharp/48/grass.png
- solid-round: https://gentleface.com/svg/solid-round/16/grass.svg · PNG https://gentleface.com/png/solid-round/16/grass.png · https://gentleface.com/png/solid-round/32/grass.png · https://gentleface.com/png/solid-round/48/grass.png
- solid-soft: https://gentleface.com/svg/solid-soft/16/grass.svg · PNG https://gentleface.com/png/solid-soft/16/grass.png · https://gentleface.com/png/solid-soft/32/grass.png · https://gentleface.com/png/solid-soft/48/grass.png
- solid-sharp: https://gentleface.com/svg/solid-sharp/16/grass.svg · PNG https://gentleface.com/png/solid-sharp/16/grass.png · https://gentleface.com/png/solid-sharp/32/grass.png · https://gentleface.com/png/solid-sharp/48/grass.png

The SVG of every style: https://gentleface.com/icons/grass.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="M10.548 11.43C11.644 9.47 13.191 8.223 15 7.5C13 9.5 12 11 12 14L15 14L15 15L1 15L1 14L4 14C4 11 3 9 1 7.5C2.808 8.223 4.354 9.469 5.45 11.427C5.29 7.609 4.733 4.466 3.5 2C6.5 5 8 9 8 14C8 8.5 9.5 4 12.5 1C11.262 3.889 10.705 7.46 10.548 11.43Z"/></svg>
```

### React

```tsx
// Gentleface "grass" (line-round), MIT. https://gentleface.com/icons/grass
import type { SVGProps } from 'react';

export function GrassIcon(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="M10.548 11.43C11.644 9.47 13.191 8.223 15 7.5C13 9.5 12 11 12 14L15 14L15 15L1 15L1 14L4 14C4 11 3 9 1 7.5C2.808 8.223 4.354 9.469 5.45 11.427C5.29 7.609 4.733 4.466 3.5 2C6.5 5 8 9 8 14C8 8.5 9.5 4 12.5 1C11.262 3.889 10.705 7.46 10.548 11.43Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "grass" (line-round), MIT. https://gentleface.com/icons/grass -->
<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="M10.548 11.43C11.644 9.47 13.191 8.223 15 7.5C13 9.5 12 11 12 14L15 14L15 15L1 15L1 14L4 14C4 11 3 9 1 7.5C2.808 8.223 4.354 9.469 5.45 11.427C5.29 7.609 4.733 4.466 3.5 2C6.5 5 8 9 8 14C8 8.5 9.5 4 12.5 1C11.262 3.889 10.705 7.46 10.548 11.43Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "grass" (line-round), MIT. https://gentleface.com/icons/grass -->
<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="M10.548 11.43C11.644 9.47 13.191 8.223 15 7.5C13 9.5 12 11 12 14L15 14L15 15L1 15L1 14L4 14C4 11 3 9 1 7.5C2.808 8.223 4.354 9.469 5.45 11.427C5.29 7.609 4.733 4.466 3.5 2C6.5 5 8 9 8 14C8 8.5 9.5 4 12.5 1C11.262 3.889 10.705 7.46 10.548 11.43Z" />
</svg>
```

### HTML img

```html
<!-- Gentleface "grass" (line-round), MIT. https://gentleface.com/icons/grass. 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/grass.svg" width="16" height="16" alt="">
```

### CSS

```css
/* Gentleface "grass" (line-round), MIT. https://gentleface.com/icons/grass. Takes the text color. */
.icon-grass {
  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='M10.548 11.43C11.644 9.47 13.191 8.223 15 7.5C13 9.5 12 11 12 14L15 14L15 15L1 15L1 14L4 14C4 11 3 9 1 7.5C2.808 8.223 4.354 9.469 5.45 11.427C5.29 7.609 4.733 4.466 3.5 2C6.5 5 8 9 8 14C8 8.5 9.5 4 12.5 1C11.262 3.889 10.705 7.46 10.548 11.43Z'/%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='M10.548 11.43C11.644 9.47 13.191 8.223 15 7.5C13 9.5 12 11 12 14L15 14L15 15L1 15L1 14L4 14C4 11 3 9 1 7.5C2.808 8.223 4.354 9.469 5.45 11.427C5.29 7.609 4.733 4.466 3.5 2C6.5 5 8 9 8 14C8 8.5 9.5 4 12.5 1C11.262 3.889 10.705 7.46 10.548 11.43Z'/%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='M10.548 11.43C11.644 9.47 13.191 8.223 15 7.5C13 9.5 12 11 12 14L15 14L15 15L1 15L1 14L4 14C4 11 3 9 1 7.5C2.808 8.223 4.354 9.469 5.45 11.427C5.29 7.609 4.733 4.466 3.5 2C6.5 5 8 9 8 14C8 8.5 9.5 4 12.5 1C11.262 3.889 10.705 7.46 10.548 11.43Z'/%3E%3C/svg%3E
```

### Sprite

```html
<!-- Gentleface "grass" (line-round), MIT. https://gentleface.com/icons/grass
     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#grass"/></svg>
```

### SwiftUI

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

struct GrassIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 10.548, y: 11.43))
        p.addCurve(to: CGPoint(x: 15, y: 7.5), control1: CGPoint(x: 11.644, y: 9.47), control2: CGPoint(x: 13.191, y: 8.223))
        p.addCurve(to: CGPoint(x: 12, y: 14), control1: CGPoint(x: 13, y: 9.5), control2: CGPoint(x: 12, y: 11))
        p.addLine(to: CGPoint(x: 15, y: 14))
        p.addLine(to: CGPoint(x: 15, y: 15))
        p.addLine(to: CGPoint(x: 1, y: 15))
        p.addLine(to: CGPoint(x: 1, y: 14))
        p.addLine(to: CGPoint(x: 4, y: 14))
        p.addCurve(to: CGPoint(x: 1, y: 7.5), control1: CGPoint(x: 4, y: 11), control2: CGPoint(x: 3, y: 9))
        p.addCurve(to: CGPoint(x: 5.45, y: 11.427), control1: CGPoint(x: 2.808, y: 8.223), control2: CGPoint(x: 4.354, y: 9.469))
        p.addCurve(to: CGPoint(x: 3.5, y: 2), control1: CGPoint(x: 5.29, y: 7.609), control2: CGPoint(x: 4.733, y: 4.466))
        p.addCurve(to: CGPoint(x: 8, y: 14), control1: CGPoint(x: 6.5, y: 5), control2: CGPoint(x: 8, y: 9))
        p.addCurve(to: CGPoint(x: 12.5, y: 1), control1: CGPoint(x: 8, y: 8.5), control2: CGPoint(x: 9.5, y: 4))
        p.addCurve(to: CGPoint(x: 10.548, y: 11.43), control1: CGPoint(x: 11.262, y: 3.889), control2: CGPoint(x: 10.705, y: 7.46))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

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

### Compose

```kotlin
// Gentleface "grass" (line-round), MIT. https://gentleface.com/icons/grass
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 GrassIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "grass", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M10.548 11.43C11.644 9.47 13.191 8.223 15 7.5C13 9.5 12 11 12 14L15 14L15 15L1 15L1 14L4 14C4 11 3 9 1 7.5C2.808 8.223 4.354 9.469 5.45 11.427C5.29 7.609 4.733 4.466 3.5 2C6.5 5 8 9 8 14C8 8.5 9.5 4 12.5 1C11.262 3.889 10.705 7.46 10.548 11.43Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

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

### Android XML

```xml
<!-- res/drawable/ic_grass.xml · Gentleface "grass" (line-round), MIT. https://gentleface.com/icons/grass -->
<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="M10.548 11.43C11.644 9.47 13.191 8.223 15 7.5C13 9.5 12 11 12 14L15 14L15 15L1 15L1 14L4 14C4 11 3 9 1 7.5C2.808 8.223 4.354 9.469 5.45 11.427C5.29 7.609 4.733 4.466 3.5 2C6.5 5 8 9 8 14C8 8.5 9.5 4 12.5 1C11.262 3.889 10.705 7.46 10.548 11.43Z"/>
</vector>
```

### Flutter

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

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

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

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

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(10.548, 11.43)
      ..cubicTo(11.644, 9.47, 13.191, 8.223, 15, 7.5)
      ..cubicTo(13, 9.5, 12, 11, 12, 14)
      ..lineTo(15, 14)
      ..lineTo(15, 15)
      ..lineTo(1, 15)
      ..lineTo(1, 14)
      ..lineTo(4, 14)
      ..cubicTo(4, 11, 3, 9, 1, 7.5)
      ..cubicTo(2.808, 8.223, 4.354, 9.469, 5.45, 11.427)
      ..cubicTo(5.29, 7.609, 4.733, 4.466, 3.5, 2)
      ..cubicTo(6.5, 5, 8, 9, 8, 14)
      ..cubicTo(8, 8.5, 9.5, 4, 12.5, 1)
      ..cubicTo(11.262, 3.889, 10.705, 7.46, 10.548, 11.43)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

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