# An issue with the stroke alignment using Plugin API

**URL:** <https://community.penpot.app/t/an-issue-with-the-stroke-alignment-using-plugin-api/8780>\
**Category:** Help us improve Penpot\
**Tags:** plugins\
**Created:** [May 19, 2025, 2:45pm UTC](https://community.penpot.app/t/an-issue-with-the-stroke-alignment-using-plugin-api/8780 "2025-05-19T14:45:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![a-ng-d](https://dub1.discourse-cdn.com/flex017/user_avatar/community.penpot.app/a-ng-d/32/11021_2.png) [@a-ng-d](https://community.penpot.app/u/a-ng-d)\
**Post date:** [May 19, 2025, 2:45pm UTC](https://community.penpot.app/t/an-issue-with-the-stroke-alignment-using-plugin-api/8780/1 "2025-05-19T14:45:20Z")

</div>

Hi Penpot community,

I’m building a plugin that manages color palette, and I’m struggling with the Boards I generate using the Plugin API.

As you can see in the attachment, the strokes are set to “inner” (sorry for the French word “intérieur”, it actually means “inner”), but they appear to be put on “center” on the canvas. When I put the strokes on “outer”, then “inner”, the issue is resolved.

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/penpot/original/2X/b/bfee03f05fb8260875880987d2f073d2e283014b.png)

Here is the code snippet I used to configure the strokes:

```auto
shape.strokes = [
      {
        strokeColor: '#000000',
        strokeOpacity: 0.05,
        strokeAlignment: 'inner',
        strokeWidth: 1,
      },
    ]

```

Here is another picture to illustrate the issue:

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/penpot/original/2X/0/085d1c2fe882506493bbce34d5ccc3530d55ff28.png)

The Boards are pretty complex, with a lot of flexible items, depending on the number of color shades.  
I can share my document if you need a deeper investigation.

---

<div class="post-metadata">

**Author:** ![myfunnyandy](https://dub1.discourse-cdn.com/flex017/user_avatar/community.penpot.app/myfunnyandy/32/54_2.png) [@myfunnyandy](https://community.penpot.app/u/myfunnyandy)\
**Post date:** [May 21, 2025, 2:06pm UTC](https://community.penpot.app/t/an-issue-with-the-stroke-alignment-using-plugin-api/8780/2 "2025-05-21T14:06:25Z")

</div>

It looks like you’ve found a bug 😮

I’ve added it to our issue tracker, we’ll fix it eventually ([Taiga](https://tree.taiga.io/project/penpot/issue/11132)).

Thanks for the report!

---

<div class="post-metadata">

**Author:** ![a-ng-d](https://dub1.discourse-cdn.com/flex017/user_avatar/community.penpot.app/a-ng-d/32/11021_2.png) [@a-ng-d](https://community.penpot.app/u/a-ng-d)\
**Post date:** [May 22, 2025, 1:40pm UTC](https://community.penpot.app/t/an-issue-with-the-stroke-alignment-using-plugin-api/8780/3 "2025-05-22T13:40:41Z")

</div>

I’m making Pepot struggle with my generated documentation haha 😂

Thanks for having reported this bug @myfunnyandy 😄
