# Margins not applied in component variants

**URL:** <https://community.penpot.app/t/margins-not-applied-in-component-variants/10468>\
**Category:** Help us improve Penpot\
**Tags:** bug, variants, margins\
**Created:** [March 31, 2026, 9:24pm UTC](https://community.penpot.app/t/margins-not-applied-in-component-variants/10468 "2026-03-31T21:24:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dylan](https://dub1.discourse-cdn.com/flex017/user_avatar/community.penpot.app/dylan/32/8603_2.png) [@Dylan](https://community.penpot.app/u/Dylan)\
**Post date:** [March 31, 2026, 9:24pm UTC](https://community.penpot.app/t/margins-not-applied-in-component-variants/10468/1 "2026-03-31T21:24:10Z")

</div>

Bug: Margins not applied in component variants.

There is a bug with margins and variants. When you enter a value in the margin fields of a component variant and then use that component, the margin fields appear empty. The values set in the variant are not applied but, the number are showing in the main variant component. Im using version 14 on a on premise installation.

---

<div class="post-metadata">

**Author:** ![carolina.portugal](https://dub1.discourse-cdn.com/flex017/user_avatar/community.penpot.app/carolina.portugal/32/36_2.png) [@carolina.portugal](https://community.penpot.app/u/carolina.portugal)\
**Post date:** [April 1, 2026, 10:03am UTC](https://community.penpot.app/t/margins-not-applied-in-component-variants/10468/2 "2026-04-01T10:03:40Z")

</div>

Hello @Dylan can you send the file to support@penpot.app?

---

<div class="post-metadata">

**Author:** ![Dylan](https://dub1.discourse-cdn.com/flex017/user_avatar/community.penpot.app/dylan/32/8603_2.png) [@Dylan](https://community.penpot.app/u/Dylan)\
**Post date:** [April 2, 2026, 5:33pm UTC](https://community.penpot.app/t/margins-not-applied-in-component-variants/10468/3 "2026-04-02T17:33:58Z")

</div>

Thank you for your response. Unfortunately, I can’t share the file because it is a private file belonging to my client. I will try to create a sample file this weekend where the bug also occurs and share that instead.
