Change field style, fonts and custom CSS
Set the field style, font, size, spacing and width, then fine-tune with custom CSS per form or store-wide, and custom scripts on Pro+.
Step by step
-
Pick a field style
In Design, click a tile under Field style. Each tile shows a normal field and a selected one in your theme's colours.
Field style -
Set the font and size
Under Text, Font is set to Inherit from theme by default. Change it on Pro, and pick a Font size of Small, Medium or Large.
Font -
Set spacing and width
Choose Compact or Comfortable spacing between fields. Set Width to Fit section or Narrow.
Spacing -
Open the CSS tab
Scroll to Custom CSS and scripts and keep the CSS tab open. Click a quick style like Pill buttons to add its CSS to the box.
CSS tab -
Style any part from the preview
Click Pick from preview, then click any part of the form. Its selector is added to the box, ready for your styles.
Pick from preview -
Add CSS to every form
For styles that should apply to all your forms, go to Settings, open Custom CSS and turn on Add custom CSS to all forms.
Field styles
- Outline: a thin border on every side. Works with any theme.
- Filled: soft grey boxes, no border. Calm and modern.
- Line: just a line underneath. Minimal, for editorial themes.
- Floating label: the label sits inside the box. Saves space on long forms.
- Pill: fully rounded boxes. Playful, and matches rounded buttons.
Text, spacing and width
Font offers Inherit from theme plus a short list of web fonts: Assistant, Jost, Archivo, Cormorant Garamond and Bricolage Grotesque. Font size changes the size of all text in the form. Spacing sets the gap between fields. Width set to Fit section uses the width of the section the form is in, and Narrow keeps it slim, which suits sign-ups and popups.
Custom CSS for one form
On Pro, the CSS tab gives you:
- Quick styles: ready-made rules such as Pill buttons, Gradient button, Bigger labels, Soft card shadow, Hide required stars, Spaced-out title and Wider form. Click one, then edit the values.
- Style a part: chips for Form, Card, Title, Intro, Labels, Inputs, Choices, Buttons, Submit, Errors and Thank-you. Each adds the right selector, like
.tf-submitfor the submit button. - Pick from preview: click a part of the form instead of guessing its class.
The preview updates as you type. The line under the box counts your rules and warns about mistakes, like a { that is never closed, or position: fixed, which can cover your store on phones. Tab adds spaces and Ctrl+Z undoes.
Your CSS is scoped to this form only. If you need a hook for CSS in your theme files instead, add a class in Extra class on the form. Most stores don’t need it.
Store-wide CSS
Settings › Custom CSS has one box for rules that apply to every TidyForms form on your storefront, also on Pro. Every class starts with .tf-, so it never touches the rest of your theme. Per-form CSS stays in each form’s Design step.
Custom scripts on Pro+
The Scripts tab runs your own code when people view, answer or send a form, for tag managers, ad pixels and chat tools. Turn on Run my scripts on the store, then start from a recipe or an event.
Code uses tidyforms.on(event, fn) with the events view, start, answer, step, error and submit, and tidyforms.set('Label', value) to fill a field. In Try it, a log shows each event as it fires. Scripts never run in your admin, and a script that keeps failing is paused and we email you.
Tip: Only add scripts you trust. Test them in Try it before you publish.
Related
Questions
Can my CSS break my theme?
No. Form CSS only applies to that one form, and store-wide CSS only to TidyForms forms. Neither can restyle your theme or the admin.
Which plan do I need?
Field style, size, spacing and width are on every plan. Fonts and custom CSS need Pro. Custom scripts need Pro+.
Why was part of my CSS removed?
Imports and style or script tags are taken out. Paste plain CSS only, and pick fonts in Design under Font.
Still stuck?
Email hello@tidyforms.app with your store URL and a screenshot. A person on the team replies, usually within hours. Or click through it yourself in the live demo.