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 only classes.
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 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-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 token values using the Editor

In the editor, open the Forms panel to set input style in every state and validation styles including validation messages. You can set, for example, one error message style for all your forms across your entire project by simply choosing a style and clicking Publish. Read more about the editors here:Live Editor|Local Editor

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