Custom Styling
Learn how to style your form blocks using custom CSS classes.
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
- Click on the block you want to style in the editor canvas.
- In the properties drawer on the right, look for the CSS Classes field.
- specific any Tailwind utiliy classes.
- The preview will update instantly.
Common Examples
1. Styling Inputs
Make inputs look modern with rounded corners and a subtle border:
css1w-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:
css1w-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:
css1text-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).
- Add margin bottom:
mb-4 - Add padding:
p-4 - Center text:
text-center
How is this guide?