tapuz
Tokens

Forms

Form tokens control the appearance of inputs across all states: default, hover, focus, error, and success. Apply them as a single compound class or reference individual CSS variables.

Use tokens in code

Input classes
<input
  type="email"
  className="tpz-inpt-bg tpz-inpt-brdr-clr tpz-inpt-brdr-w tpz-inpt-brdr-sty tpz-inpt-bdr-r"
  placeholder="your@email.com"
/>
Using CSS variables
<input
  type="email"
  style={{ borderRadius: "var(--tpz-form-input-border-radius)", borderStyle: "var(--tpz-form-input-border-style)" }}
  placeholder="your@email.com"
/>
Group of vars as inline style
// background and border-color use classes instead (they have states).
const formStyle = {
  borderRadius: "var(--tpz-form-input-border-radius)",
  borderWidth: "var(--tpz-form-input-border-width)",
  borderStyle: "var(--tpz-form-input-border-style)",
};

<input type="email" style={formStyle} placeholder="your@email.com" />

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-form-input-border-color
tpz-inpt-brdr-clr#334155Border color, default
--tpz-form-input-border-radius
tpz-inpt-bdr-r
0.5rem
Input corner radius
--tpz-form-input-background
tpz-inpt-bgtransparentInput background
--tpz-form-error-border-color
tpz-frm-err-brdr-clr#ef4444Error border color

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 Forms 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
Input
States
bdr-r
3
px
border-color
background
your@email.com

Full form tokens

Class
Var
Inputs
--tpz-form-input-background
tpz-inpt-bg

Input background

--tpz-form-input-border-color
tpz-inpt-brdr-clr

Input border color

--tpz-form-input-border-width
tpz-inpt-brdr-w

Input border width

--tpz-form-input-border-style
tpz-inpt-brdr-sty

Input border style

--tpz-form-input-border-radius
tpz-inpt-bdr-r

Input border radius

Validation
--tpz-form-error-border-color
tpz-frm-err-brdr-clr

Form error color

--tpz-form-success-border-color
tpz-frm-ok-brdr-clr

Form success color

Messages
--tpz-form-message-radius
tpz-frm-msg-r

Form messages border radius

Error Message
--tpz-form-message-error-background
tpz-frm-msg-err-bg

Error message background color

--tpz-form-message-error-color
tpz-frm-msg-err-clr

Error message color

Success Message
--tpz-form-message-success-background
tpz-frm-msg-ok-bg

Success message background color

--tpz-form-message-success-color
tpz-frm-msg-ok-clr

Success message color