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 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, and the editor stays in sync in real time.

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 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 Buttons 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
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