tapuz
Tokens

Spacing

Spacing tokens control padding sizes across five steps from extra-small to extra-large. Apply them as classes or reference them as CSS variables.

Use tokens in code

Single class
<section className="tpz-p-m">Medium padded section</section>
Multiple classes
<div className="tpz-p-s">
  <h2>Small padded card</h2>
</div>
Using CSS variables
padding: var(--tpz-padding-medium);
gap: var(--tpz-padding-small);
margin-bottom: var(--tpz-padding-large);
Inline style
<div style={{ padding: "var(--tpz-padding-large)" }}>
  Large padded container
</div>

Change token values using the Engine

Every project has its own Tokens Engine. Changes are saved to draft automatically and take effect instantly. Use Publish Live to display the changes in the deployed site.
Read more about the engine

CSS variableClassValueDescription
--tpz-padding-extra-small
tpz-p-xs4pxExtra small padding
--tpz-padding-small
tpz-p-s8pxSmall padding
--tpz-padding-medium
tpz-p-m
16 px
Medium padding
--tpz-padding-large
tpz-p-l24pxLarge padding
--tpz-padding-extra-large
tpz-p-xl40pxExtra large padding

Change token values using the Editor

Spacing category is part of a tokens features and will display in your editor after enabling the tokens from the Tokens Features dashboard tab or via your project Tokens Engine. In the editor, open the Spacing panel to set padding values in any of the padding sizes. You can set one size for all elements using, for example, the extra small padding class, across your entire project by simply selecting a size and adjusting its value. Read more about the editors here:Live Editor|Local Editor

https://yoursite.com
Open editor
XS
S
M
L
XL
tpz-p-m
16
px ▾
tpz-p-xs
4
px
tpz-p-s
8
px
padding: 16px

Full spacing tokens

Class
Var
Padding
--tpz-padding-extra-small
tpz-p-xs

Extra small padding

--tpz-padding-small
tpz-p-s

Small padding

--tpz-padding-medium
tpz-p-m

Medium padding

--tpz-padding-large
tpz-p-l

Large padding

--tpz-padding-extra-large
tpz-p-xl

Extra large padding