FormSync

Custom Styling

Learn how to style your form blocks using custom CSS classes.

Ask ChatGPT

Styling Blocks

Every block in the FormSync editor has a CSS Classes field in its properties panel. You can use this field to add any valid Tailwind CSS classes to customize the appearance of the block.

How to Add Styles

  1. Click on the block you want to style in the editor canvas.
  2. In the properties drawer on the right, look for the CSS Classes field.
  3. specific any Tailwind utiliy classes.
  4. The preview will update instantly.

Common Examples

1. Styling Inputs

Make inputs look modern with rounded corners and a subtle border:

css
1w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent

2. Styling Buttons

Create a primary call-to-action button:

css
1w-full px-6 py-3 text-white bg-blue-600 hover:bg-blue-700 rounded-md shadow-md transition-colors font-semibold

3. Styling Headings

Center and enlarge a main heading:

css
1text-3xl font-bold text-center text-gray-800 mb-6

Layouts

You can also use grid or flex classes to control layout if you wrap elements (note: currently blocks are stacked vertically, but you can control margins and padding).

How is this guide?

Custom Styling | FormSync