# Using theme variables in template hubl code not working for padding

**URL:** <https://community.hubspot.com/t/using-theme-variables-in-template-hubl-code-not-working-for-padding/99791>\
**Category:** CMS Development\
**Created:** [February 8, 2024, 6:50pm UTC](https://community.hubspot.com/t/using-theme-variables-in-template-hubl-code-not-working-for-padding/99791 "2024-02-08T18:50:17Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![alyssamwilie](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/alyssamwilie/32/2072_2.png) [@alyssamwilie](https://community.hubspot.com/u/alyssamwilie)\
**Post date:** [February 9, 2024, 4:33pm UTC](https://community.hubspot.com/t/using-theme-variables-in-template-hubl-code-not-working-for-padding/99791/5 "2024-02-09T16:33:57Z")

</div>

When adding HubL values to an object you should not use the brackets at all.

```lia-code-sample
padding={
 'top': theme.site_layout.section_top_bottom,
 'bottom': theme.site_layout.section_top_bottom,
 'left': theme.site_layout.body_padding,
 'right': theme.site_layout.body_padding
}

```

---

_[View the full topic](https://community.hubspot.com/t/using-theme-variables-in-template-hubl-code-not-working-for-padding/99791)._
