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 values in engine

From your /dashboard on tapuz.io, open any project and click Manage tokens to launch the tapuz engine. Changes are saved automatically and take effect instantly. Undo/redo is available throughout the session.

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 values via editor

Open the editor locally from any project page by typing /?tapuz-edit OR via the project slot in your /dashboard in tapuz.io and go to the Spacing tab. Change any values and watch the preview in real time. You can undo/redo any change. When you are ready, click Save to make your changes permanent. For online editing read here.

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