---
url: /guide/hono/basics/stroke-width.md
description: >-
  Learn how to customize the stroke width of Lucide icons in your Hono
  applications using the strokeWidth and nonScalingStroke props.
---

# Stroke width

All icons are designed with SVG elements using strokes.
These have a default stroke width of `2px`.

The `strokeWidth` can be adjusted to create a different look of the icons.

## Adjusting stroke width with `strokeWidth` prop

```tsx
import { FolderLock } from '@lucide/hono';

const Page = () => {
  return <FolderLock strokeWidth={1} />;
};
```

## Non-scaling strokes

When adjusting the `size` prop the size of the stroke width will be relative to the size of the icon, this is the default SVG behavior. The `nonScalingStroke` prop is introduced to adjust this behavior to make the stroke width constant no matter the size of the icon.

This means that when `nonScalingStroke` is enabled and the `size` of the icons is set to `48px` the `strokeWidth` will still be `2px` on the screen.

Note `2px` is the default stroke width for a Lucide icon, this can be adjusted to all sizes.

### Adjusting stroke width with `nonScalingStroke` prop

Setting `nonScalingStroke` to `true` will make the stroke width non-scaling.

```tsx
import { RollerCoaster } from '@lucide/hono';

const Page = () => {
  return (
    <RollerCoaster
      size={96}
      nonScalingStroke
    />
  );
};
```
