# Icon stroke width?

**URL:** <https://community.weweb.io/t/icon-stroke-width/21561>\
**Category:** How do I?\
**Created:** [August 25, 2026, 11:52am UTC](https://community.weweb.io/t/icon-stroke-width/21561 "2026-08-25T11:52:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![WilliamB](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/williamb/32/9253_2.png) [@WilliamB](https://community.weweb.io/u/WilliamB)\
**Post date:** [August 25, 2026, 11:52am UTC](https://community.weweb.io/t/icon-stroke-width/21561/1 "2026-08-25T11:52:45Z")

</div>

Hi,

Quick question: is there a way to control the stroke width of icons?

I’m using Lucid Icons, and I tried stroke-width : 1px in the CSS area but it’s not doing anything.

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![jptrinh](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/jptrinh/32/1493_2.png) [@jptrinh](https://community.weweb.io/u/jptrinh)\
**Post date:** [August 26, 2026, 4:26am UTC](https://community.weweb.io/t/icon-stroke-width/21561/2 "2026-08-26T04:26:40Z")

</div>

Hey @WilliamB  
The custom css field will target the wrapper of the svg. A quick hack to solve it is to make the stroke-width prop inherited for the svg.  
You can add it to an style tag:

```auto
<style>
.svg-width > svg {
    stroke-width: inherit;
}
</style>

```

 ![CleanShot 2026-08-26 at 13.24.36@2x](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/3X/7/b/7b48789117a8bc3de022f3e0da561cb02422973d.png)

 ![CleanShot 2026-08-26 at 13.24.54@2x](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/3X/6/5/65ed12a6cec5fc4130785cdf5637adadefd46b46.png)

---

<div class="post-metadata">

**Author:** ![WilliamB](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/williamb/32/9253_2.png) [@WilliamB](https://community.weweb.io/u/WilliamB)\
**Post date:** [August 26, 2026, 7:48am UTC](https://community.weweb.io/t/icon-stroke-width/21561/3 "2026-08-26T07:48:03Z")

</div>

Hello @jptrinh,

Thank you for your reply.

For some reason, it didn’t work on my end even though I reproduced exactly what you showed.

I ended up using this instead to target all the icons of my app :

```css
<style>
.ww-icon svg {
stroke-width: 1.5;
}
</style>

```

---

<div class="post-metadata">

**Author:** ![jptrinh](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/jptrinh/32/1493_2.png) [@jptrinh](https://community.weweb.io/u/jptrinh)\
**Post date:** [August 26, 2026, 8:34am UTC](https://community.weweb.io/t/icon-stroke-width/21561/4 "2026-08-26T08:34:05Z")

</div>

Oh i think that’s because i had added a class to my svg indeed 😅
