tapuz
Tokens

Palettes

Palette tokens control your app's color scheme. The active selected palette you choose in the editor will display in the engine. Any change you make to any color value in the engine will updates instantly across your entire project.

Use tokens in code

Single class
<h1 className="tpz-prm-clr">Welcome back</h1>
Multiple classes
<div className="tpz-bg-clr tpz-brdr-clr tpz-txt-clr">
  Card content
</div>
Using CSS variables
<div style={{ background: "var(--tpz-surface-color)", color: "var(--tpz-text-color)", borderColor: "var(--tpz-border-color)" }}>
  Card content
</div>
Group of vars as inline style
const paletteStyle = {
  background: "var(--tpz-surface-color)",
  color: "var(--tpz-text-color)",
  borderColor: "var(--tpz-border-color)",
};

<div style={paletteStyle}>Card content</div>

Change values in engine

From your /dashboard on tapuz.io, open any project and click Manage tokens to launch the tapuz engine. The engine displays the token values of the currently active palette only. To switch which palette is active, use the editor. Changes to token values are saved automatically and take effect instantly.

CSS variableClassColorDescription
--tpz-background-color
tpz-bg-clr
Page background
--tpz-primary-color
tpz-prm-clr
#6366f1
Primary brand color
--tpz-text-color
tpz-txt-clr
Body text color
--tpz-border-color
tpz-brdr-clr
Default border

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 Palette tab. Here you can select the active palette and edit its color values. Changes update in real time. When you are ready, click Save to make your changes permanent. For online editing read here.

https://yoursite.com
Open editor
Select palette
Ocean
Dusk

Full palette tokens

Class
Var
Brand
--tpz-primary-color
tpz-prm-clr

Primary color

--tpz-secondary-color
tpz-sec-clr

Secondary color

--tpz-accent-color
tpz-acc-clr

Accent color

Surface
--tpz-background-color
tpz-bg-clr

Page background

--tpz-surface-color
tpz-srf-clr

Card / panel surface

Text
--tpz-text-color
tpz-txt-clr

Primary text

--tpz-text-secondary-color
tpz-txt-sec-clr

Secondary text

Border
--tpz-border-color
tpz-brdr-clr

Border color