tapuz
Tokens

Palettes

Palette tokens control your app's color scheme.

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 token values using the Engine

Every project has its own Tokens Engine. The active selected palette you choose in the editor will be displayed in the 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 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 token values using the Editor

In the editor, open the Palettes panel to create themes and edit their colors. The active selected theme is the one that will be displayed as the current palette in the engine and the one that will be displayed in your project. You can change a whole theme by simply selecting it and clicking Publish. Read more about the editors here:Live Editor|Local Editor

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