tapuz
Tokens

Buttons

Button tokens control border radius, font size tiers, font weight, and optional drop shadow. Apply them as classes or reference them as CSS variables.

Use tokens in code

Single class
<button className="tpz-btn-sty">Primary action</button>
Multiple classes
<button className="tpz-btn-sty tpz-btn-shd tpz-btn-fnt-sz-main">
  Primary action
</button>
Using CSS variables
<button style={{ borderRadius: "var(--tpz-button-border-radius)", fontSize: "var(--tpz-button-font-size-base)" }}>
  Primary action
</button>
Group of vars as inline style
const buttonStyle = {
  borderRadius: "var(--tpz-button-border-radius)",
  fontSize: "var(--tpz-button-font-size-base)",
  fontWeight: "var(--tpz-button-font-weight)",
};

<button style={buttonStyle}>Primary action</button>

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-button-font-size-main
tpz-btn-fnt-sz-main15pxMain button font size
--tpz-button-border-radius
tpz-btn-bdr-r
0.75rem
Button border radius
--tpz-button-font-weight
tpz-btn-fnt-wgtnormalButton font weight
--tpz-button-shadow-blur
tpz-btn-shd-blur16pxShadow blur radius

Change token values using the Editor

In the editor, open the Buttons panel to set button font size and weight, border radius and shadow. You can set a border radius value for all buttons across your entire project by simply selecting it and clicking Publish. Read more about the editors here:Live Editor|Local Editor

https://yoursite.com
Open editor
Style
Shadow
bdr-r
8
px ▾
fnt-sz-base ▾
Normal
Get started

Full button tokens

Class
Var
Style
--tpz-button-border-radius
tpz-btn-bdr-r

Button border radius

--tpz-button-font-size-main
tpz-btn-fnt-sz-main

Font size (type: main)

--tpz-button-font-size-base
tpz-btn-fnt-sz-base

Font size (type: base)

--tpz-button-font-size-sub
tpz-btn-fnt-sz-sub

Font size (type: sub)

--tpz-button-font-weight
tpz-btn-fnt-wgt

Button font weight

Shadow
tpz-btn-shd

Button shadow

--tpz-button-shadow-distance

Shadow offset distance

--tpz-button-shadow-blur

Shadow blur radius

--tpz-button-shadow-color

Shadow color