# line-weight icon

Line weight. Gentleface icon, drawn on the 16 px pixel grid. Free, MIT licensed. Page: https://gentleface.com/icons/line-weight

- Category: Design
- Use it for: line weight, stroke width, border width, stroke weight, line width, line thickness
- Tags: line weight, stroke width, stroke weight, border width, thickness, line width, stroke, border, thick, thin, figma, design tool, ui design
- Family: line-color, line-style
- Component name: LineWeightIcon
- Added: 2026-10-19

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

The SVG of every style: https://gentleface.com/icons/line-weight.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="M2.144 2.856C2.048 2.759 2 2.641 2 2.5C2 2.359 2.048 2.241 2.144 2.144C2.241 2.048 2.359 2 2.5 2L13.5 2C13.641 2 13.759 2.048 13.856 2.144C13.952 2.241 14 2.359 14 2.5C14 2.641 13.952 2.759 13.856 2.856C13.759 2.952 13.641 3 13.5 3L2.5 3C2.359 3 2.241 2.952 2.144 2.856ZM2.293 7.707C2.098 7.512 2 7.276 2 7C2 6.724 2.098 6.488 2.293 6.293C2.488 6.098 2.724 6 3 6L13 6C13.276 6 13.512 6.098 13.707 6.293C13.902 6.488 14 6.724 14 7C14 7.276 13.902 7.512 13.707 7.707C13.512 7.902 13.276 8 13 8L3 8C2.724 8 2.488 7.902 2.293 7.707ZM13.561 11.439C13.854 11.732 14 12.086 14 12.5C14 12.914 13.854 13.268 13.561 13.561C13.268 13.854 12.914 14 12.5 14L3.5 14C3.086 14 2.732 13.854 2.439 13.561C2.146 13.268 2 12.914 2 12.5C2 12.086 2.146 11.732 2.439 11.439C2.732 11.146 3.086 11 3.5 11L12.5 11C12.914 11 13.268 11.146 13.561 11.439Z"/></svg>
```

### React

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

export function LineWeightIcon(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="M2.144 2.856C2.048 2.759 2 2.641 2 2.5C2 2.359 2.048 2.241 2.144 2.144C2.241 2.048 2.359 2 2.5 2L13.5 2C13.641 2 13.759 2.048 13.856 2.144C13.952 2.241 14 2.359 14 2.5C14 2.641 13.952 2.759 13.856 2.856C13.759 2.952 13.641 3 13.5 3L2.5 3C2.359 3 2.241 2.952 2.144 2.856ZM2.293 7.707C2.098 7.512 2 7.276 2 7C2 6.724 2.098 6.488 2.293 6.293C2.488 6.098 2.724 6 3 6L13 6C13.276 6 13.512 6.098 13.707 6.293C13.902 6.488 14 6.724 14 7C14 7.276 13.902 7.512 13.707 7.707C13.512 7.902 13.276 8 13 8L3 8C2.724 8 2.488 7.902 2.293 7.707ZM13.561 11.439C13.854 11.732 14 12.086 14 12.5C14 12.914 13.854 13.268 13.561 13.561C13.268 13.854 12.914 14 12.5 14L3.5 14C3.086 14 2.732 13.854 2.439 13.561C2.146 13.268 2 12.914 2 12.5C2 12.086 2.146 11.732 2.439 11.439C2.732 11.146 3.086 11 3.5 11L12.5 11C12.914 11 13.268 11.146 13.561 11.439Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "line-weight" (line-round), MIT. https://gentleface.com/icons/line-weight -->
<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="M2.144 2.856C2.048 2.759 2 2.641 2 2.5C2 2.359 2.048 2.241 2.144 2.144C2.241 2.048 2.359 2 2.5 2L13.5 2C13.641 2 13.759 2.048 13.856 2.144C13.952 2.241 14 2.359 14 2.5C14 2.641 13.952 2.759 13.856 2.856C13.759 2.952 13.641 3 13.5 3L2.5 3C2.359 3 2.241 2.952 2.144 2.856ZM2.293 7.707C2.098 7.512 2 7.276 2 7C2 6.724 2.098 6.488 2.293 6.293C2.488 6.098 2.724 6 3 6L13 6C13.276 6 13.512 6.098 13.707 6.293C13.902 6.488 14 6.724 14 7C14 7.276 13.902 7.512 13.707 7.707C13.512 7.902 13.276 8 13 8L3 8C2.724 8 2.488 7.902 2.293 7.707ZM13.561 11.439C13.854 11.732 14 12.086 14 12.5C14 12.914 13.854 13.268 13.561 13.561C13.268 13.854 12.914 14 12.5 14L3.5 14C3.086 14 2.732 13.854 2.439 13.561C2.146 13.268 2 12.914 2 12.5C2 12.086 2.146 11.732 2.439 11.439C2.732 11.146 3.086 11 3.5 11L12.5 11C12.914 11 13.268 11.146 13.561 11.439Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "line-weight" (line-round), MIT. https://gentleface.com/icons/line-weight -->
<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="M2.144 2.856C2.048 2.759 2 2.641 2 2.5C2 2.359 2.048 2.241 2.144 2.144C2.241 2.048 2.359 2 2.5 2L13.5 2C13.641 2 13.759 2.048 13.856 2.144C13.952 2.241 14 2.359 14 2.5C14 2.641 13.952 2.759 13.856 2.856C13.759 2.952 13.641 3 13.5 3L2.5 3C2.359 3 2.241 2.952 2.144 2.856ZM2.293 7.707C2.098 7.512 2 7.276 2 7C2 6.724 2.098 6.488 2.293 6.293C2.488 6.098 2.724 6 3 6L13 6C13.276 6 13.512 6.098 13.707 6.293C13.902 6.488 14 6.724 14 7C14 7.276 13.902 7.512 13.707 7.707C13.512 7.902 13.276 8 13 8L3 8C2.724 8 2.488 7.902 2.293 7.707ZM13.561 11.439C13.854 11.732 14 12.086 14 12.5C14 12.914 13.854 13.268 13.561 13.561C13.268 13.854 12.914 14 12.5 14L3.5 14C3.086 14 2.732 13.854 2.439 13.561C2.146 13.268 2 12.914 2 12.5C2 12.086 2.146 11.732 2.439 11.439C2.732 11.146 3.086 11 3.5 11L12.5 11C12.914 11 13.268 11.146 13.561 11.439Z" />
</svg>
```

### HTML img

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

### CSS

```css
/* Gentleface "line-weight" (line-round), MIT. https://gentleface.com/icons/line-weight. Takes the text color. */
.icon-line-weight {
  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='M2.144 2.856C2.048 2.759 2 2.641 2 2.5C2 2.359 2.048 2.241 2.144 2.144C2.241 2.048 2.359 2 2.5 2L13.5 2C13.641 2 13.759 2.048 13.856 2.144C13.952 2.241 14 2.359 14 2.5C14 2.641 13.952 2.759 13.856 2.856C13.759 2.952 13.641 3 13.5 3L2.5 3C2.359 3 2.241 2.952 2.144 2.856ZM2.293 7.707C2.098 7.512 2 7.276 2 7C2 6.724 2.098 6.488 2.293 6.293C2.488 6.098 2.724 6 3 6L13 6C13.276 6 13.512 6.098 13.707 6.293C13.902 6.488 14 6.724 14 7C14 7.276 13.902 7.512 13.707 7.707C13.512 7.902 13.276 8 13 8L3 8C2.724 8 2.488 7.902 2.293 7.707ZM13.561 11.439C13.854 11.732 14 12.086 14 12.5C14 12.914 13.854 13.268 13.561 13.561C13.268 13.854 12.914 14 12.5 14L3.5 14C3.086 14 2.732 13.854 2.439 13.561C2.146 13.268 2 12.914 2 12.5C2 12.086 2.146 11.732 2.439 11.439C2.732 11.146 3.086 11 3.5 11L12.5 11C12.914 11 13.268 11.146 13.561 11.439Z'/%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='M2.144 2.856C2.048 2.759 2 2.641 2 2.5C2 2.359 2.048 2.241 2.144 2.144C2.241 2.048 2.359 2 2.5 2L13.5 2C13.641 2 13.759 2.048 13.856 2.144C13.952 2.241 14 2.359 14 2.5C14 2.641 13.952 2.759 13.856 2.856C13.759 2.952 13.641 3 13.5 3L2.5 3C2.359 3 2.241 2.952 2.144 2.856ZM2.293 7.707C2.098 7.512 2 7.276 2 7C2 6.724 2.098 6.488 2.293 6.293C2.488 6.098 2.724 6 3 6L13 6C13.276 6 13.512 6.098 13.707 6.293C13.902 6.488 14 6.724 14 7C14 7.276 13.902 7.512 13.707 7.707C13.512 7.902 13.276 8 13 8L3 8C2.724 8 2.488 7.902 2.293 7.707ZM13.561 11.439C13.854 11.732 14 12.086 14 12.5C14 12.914 13.854 13.268 13.561 13.561C13.268 13.854 12.914 14 12.5 14L3.5 14C3.086 14 2.732 13.854 2.439 13.561C2.146 13.268 2 12.914 2 12.5C2 12.086 2.146 11.732 2.439 11.439C2.732 11.146 3.086 11 3.5 11L12.5 11C12.914 11 13.268 11.146 13.561 11.439Z'/%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='M2.144 2.856C2.048 2.759 2 2.641 2 2.5C2 2.359 2.048 2.241 2.144 2.144C2.241 2.048 2.359 2 2.5 2L13.5 2C13.641 2 13.759 2.048 13.856 2.144C13.952 2.241 14 2.359 14 2.5C14 2.641 13.952 2.759 13.856 2.856C13.759 2.952 13.641 3 13.5 3L2.5 3C2.359 3 2.241 2.952 2.144 2.856ZM2.293 7.707C2.098 7.512 2 7.276 2 7C2 6.724 2.098 6.488 2.293 6.293C2.488 6.098 2.724 6 3 6L13 6C13.276 6 13.512 6.098 13.707 6.293C13.902 6.488 14 6.724 14 7C14 7.276 13.902 7.512 13.707 7.707C13.512 7.902 13.276 8 13 8L3 8C2.724 8 2.488 7.902 2.293 7.707ZM13.561 11.439C13.854 11.732 14 12.086 14 12.5C14 12.914 13.854 13.268 13.561 13.561C13.268 13.854 12.914 14 12.5 14L3.5 14C3.086 14 2.732 13.854 2.439 13.561C2.146 13.268 2 12.914 2 12.5C2 12.086 2.146 11.732 2.439 11.439C2.732 11.146 3.086 11 3.5 11L12.5 11C12.914 11 13.268 11.146 13.561 11.439Z'/%3E%3C/svg%3E
```

### Sprite

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

### SwiftUI

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

struct LineWeightIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 2.144, y: 2.856))
        p.addCurve(to: CGPoint(x: 2, y: 2.5), control1: CGPoint(x: 2.048, y: 2.759), control2: CGPoint(x: 2, y: 2.641))
        p.addCurve(to: CGPoint(x: 2.144, y: 2.144), control1: CGPoint(x: 2, y: 2.359), control2: CGPoint(x: 2.048, y: 2.241))
        p.addCurve(to: CGPoint(x: 2.5, y: 2), control1: CGPoint(x: 2.241, y: 2.048), control2: CGPoint(x: 2.359, y: 2))
        p.addLine(to: CGPoint(x: 13.5, y: 2))
        p.addCurve(to: CGPoint(x: 13.856, y: 2.144), control1: CGPoint(x: 13.641, y: 2), control2: CGPoint(x: 13.759, y: 2.048))
        p.addCurve(to: CGPoint(x: 14, y: 2.5), control1: CGPoint(x: 13.952, y: 2.241), control2: CGPoint(x: 14, y: 2.359))
        p.addCurve(to: CGPoint(x: 13.856, y: 2.856), control1: CGPoint(x: 14, y: 2.641), control2: CGPoint(x: 13.952, y: 2.759))
        p.addCurve(to: CGPoint(x: 13.5, y: 3), control1: CGPoint(x: 13.759, y: 2.952), control2: CGPoint(x: 13.641, y: 3))
        p.addLine(to: CGPoint(x: 2.5, y: 3))
        p.addCurve(to: CGPoint(x: 2.144, y: 2.856), control1: CGPoint(x: 2.359, y: 3), control2: CGPoint(x: 2.241, y: 2.952))
        p.closeSubpath()
        p.move(to: CGPoint(x: 2.293, y: 7.707))
        p.addCurve(to: CGPoint(x: 2, y: 7), control1: CGPoint(x: 2.098, y: 7.512), control2: CGPoint(x: 2, y: 7.276))
        p.addCurve(to: CGPoint(x: 2.293, y: 6.293), control1: CGPoint(x: 2, y: 6.724), control2: CGPoint(x: 2.098, y: 6.488))
        p.addCurve(to: CGPoint(x: 3, y: 6), control1: CGPoint(x: 2.488, y: 6.098), control2: CGPoint(x: 2.724, y: 6))
        p.addLine(to: CGPoint(x: 13, y: 6))
        p.addCurve(to: CGPoint(x: 13.707, y: 6.293), control1: CGPoint(x: 13.276, y: 6), control2: CGPoint(x: 13.512, y: 6.098))
        p.addCurve(to: CGPoint(x: 14, y: 7), control1: CGPoint(x: 13.902, y: 6.488), control2: CGPoint(x: 14, y: 6.724))
        p.addCurve(to: CGPoint(x: 13.707, y: 7.707), control1: CGPoint(x: 14, y: 7.276), control2: CGPoint(x: 13.902, y: 7.512))
        p.addCurve(to: CGPoint(x: 13, y: 8), control1: CGPoint(x: 13.512, y: 7.902), control2: CGPoint(x: 13.276, y: 8))
        p.addLine(to: CGPoint(x: 3, y: 8))
        p.addCurve(to: CGPoint(x: 2.293, y: 7.707), control1: CGPoint(x: 2.724, y: 8), control2: CGPoint(x: 2.488, y: 7.902))
        p.closeSubpath()
        p.move(to: CGPoint(x: 13.561, y: 11.439))
        p.addCurve(to: CGPoint(x: 14, y: 12.5), control1: CGPoint(x: 13.854, y: 11.732), control2: CGPoint(x: 14, y: 12.086))
        p.addCurve(to: CGPoint(x: 13.561, y: 13.561), control1: CGPoint(x: 14, y: 12.914), control2: CGPoint(x: 13.854, y: 13.268))
        p.addCurve(to: CGPoint(x: 12.5, y: 14), control1: CGPoint(x: 13.268, y: 13.854), control2: CGPoint(x: 12.914, y: 14))
        p.addLine(to: CGPoint(x: 3.5, y: 14))
        p.addCurve(to: CGPoint(x: 2.439, y: 13.561), control1: CGPoint(x: 3.086, y: 14), control2: CGPoint(x: 2.732, y: 13.854))
        p.addCurve(to: CGPoint(x: 2, y: 12.5), control1: CGPoint(x: 2.146, y: 13.268), control2: CGPoint(x: 2, y: 12.914))
        p.addCurve(to: CGPoint(x: 2.439, y: 11.439), control1: CGPoint(x: 2, y: 12.086), control2: CGPoint(x: 2.146, y: 11.732))
        p.addCurve(to: CGPoint(x: 3.5, y: 11), control1: CGPoint(x: 2.732, y: 11.146), control2: CGPoint(x: 3.086, y: 11))
        p.addLine(to: CGPoint(x: 12.5, y: 11))
        p.addCurve(to: CGPoint(x: 13.561, y: 11.439), control1: CGPoint(x: 12.914, y: 11), control2: CGPoint(x: 13.268, y: 11.146))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

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

### Compose

```kotlin
// Gentleface "line-weight" (line-round), MIT. https://gentleface.com/icons/line-weight
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 LineWeightIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "line-weight", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M2.144 2.856C2.048 2.759 2 2.641 2 2.5C2 2.359 2.048 2.241 2.144 2.144C2.241 2.048 2.359 2 2.5 2L13.5 2C13.641 2 13.759 2.048 13.856 2.144C13.952 2.241 14 2.359 14 2.5C14 2.641 13.952 2.759 13.856 2.856C13.759 2.952 13.641 3 13.5 3L2.5 3C2.359 3 2.241 2.952 2.144 2.856ZM2.293 7.707C2.098 7.512 2 7.276 2 7C2 6.724 2.098 6.488 2.293 6.293C2.488 6.098 2.724 6 3 6L13 6C13.276 6 13.512 6.098 13.707 6.293C13.902 6.488 14 6.724 14 7C14 7.276 13.902 7.512 13.707 7.707C13.512 7.902 13.276 8 13 8L3 8C2.724 8 2.488 7.902 2.293 7.707ZM13.561 11.439C13.854 11.732 14 12.086 14 12.5C14 12.914 13.854 13.268 13.561 13.561C13.268 13.854 12.914 14 12.5 14L3.5 14C3.086 14 2.732 13.854 2.439 13.561C2.146 13.268 2 12.914 2 12.5C2 12.086 2.146 11.732 2.439 11.439C2.732 11.146 3.086 11 3.5 11L12.5 11C12.914 11 13.268 11.146 13.561 11.439Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

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

### Android XML

```xml
<!-- res/drawable/ic_line_weight.xml · Gentleface "line-weight" (line-round), MIT. https://gentleface.com/icons/line-weight -->
<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="M2.144 2.856C2.048 2.759 2 2.641 2 2.5C2 2.359 2.048 2.241 2.144 2.144C2.241 2.048 2.359 2 2.5 2L13.5 2C13.641 2 13.759 2.048 13.856 2.144C13.952 2.241 14 2.359 14 2.5C14 2.641 13.952 2.759 13.856 2.856C13.759 2.952 13.641 3 13.5 3L2.5 3C2.359 3 2.241 2.952 2.144 2.856ZM2.293 7.707C2.098 7.512 2 7.276 2 7C2 6.724 2.098 6.488 2.293 6.293C2.488 6.098 2.724 6 3 6L13 6C13.276 6 13.512 6.098 13.707 6.293C13.902 6.488 14 6.724 14 7C14 7.276 13.902 7.512 13.707 7.707C13.512 7.902 13.276 8 13 8L3 8C2.724 8 2.488 7.902 2.293 7.707ZM13.561 11.439C13.854 11.732 14 12.086 14 12.5C14 12.914 13.854 13.268 13.561 13.561C13.268 13.854 12.914 14 12.5 14L3.5 14C3.086 14 2.732 13.854 2.439 13.561C2.146 13.268 2 12.914 2 12.5C2 12.086 2.146 11.732 2.439 11.439C2.732 11.146 3.086 11 3.5 11L12.5 11C12.914 11 13.268 11.146 13.561 11.439Z"/>
</vector>
```

### Flutter

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

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

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

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

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(2.144, 2.856)
      ..cubicTo(2.048, 2.759, 2, 2.641, 2, 2.5)
      ..cubicTo(2, 2.359, 2.048, 2.241, 2.144, 2.144)
      ..cubicTo(2.241, 2.048, 2.359, 2, 2.5, 2)
      ..lineTo(13.5, 2)
      ..cubicTo(13.641, 2, 13.759, 2.048, 13.856, 2.144)
      ..cubicTo(13.952, 2.241, 14, 2.359, 14, 2.5)
      ..cubicTo(14, 2.641, 13.952, 2.759, 13.856, 2.856)
      ..cubicTo(13.759, 2.952, 13.641, 3, 13.5, 3)
      ..lineTo(2.5, 3)
      ..cubicTo(2.359, 3, 2.241, 2.952, 2.144, 2.856)
      ..close()
      ..moveTo(2.293, 7.707)
      ..cubicTo(2.098, 7.512, 2, 7.276, 2, 7)
      ..cubicTo(2, 6.724, 2.098, 6.488, 2.293, 6.293)
      ..cubicTo(2.488, 6.098, 2.724, 6, 3, 6)
      ..lineTo(13, 6)
      ..cubicTo(13.276, 6, 13.512, 6.098, 13.707, 6.293)
      ..cubicTo(13.902, 6.488, 14, 6.724, 14, 7)
      ..cubicTo(14, 7.276, 13.902, 7.512, 13.707, 7.707)
      ..cubicTo(13.512, 7.902, 13.276, 8, 13, 8)
      ..lineTo(3, 8)
      ..cubicTo(2.724, 8, 2.488, 7.902, 2.293, 7.707)
      ..close()
      ..moveTo(13.561, 11.439)
      ..cubicTo(13.854, 11.732, 14, 12.086, 14, 12.5)
      ..cubicTo(14, 12.914, 13.854, 13.268, 13.561, 13.561)
      ..cubicTo(13.268, 13.854, 12.914, 14, 12.5, 14)
      ..lineTo(3.5, 14)
      ..cubicTo(3.086, 14, 2.732, 13.854, 2.439, 13.561)
      ..cubicTo(2.146, 13.268, 2, 12.914, 2, 12.5)
      ..cubicTo(2, 12.086, 2.146, 11.732, 2.439, 11.439)
      ..cubicTo(2.732, 11.146, 3.086, 11, 3.5, 11)
      ..lineTo(12.5, 11)
      ..cubicTo(12.914, 11, 13.268, 11.146, 13.561, 11.439)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

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