You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-3Lines changed: 20 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,7 @@ A visual drag-and-drop form builder plugin for [Strapi 5](https://strapi.io). Cr
21
21
-**Spam & limits** — honeypot field plus optional per-IP hourly rate limiting.
22
22
-**CAPTCHA** — optional Cloudflare Turnstile or Google reCAPTCHA v2 per form, verified server-side (fail-closed). The secret key never reaches the browser.
23
23
-**Hidden tracking fields** — capture UTM parameters, referrers or campaign IDs from the page URL into every submission.
24
+
-**Visual style editor** — a dedicated Style mode with a live Desktop/Mobile preview: accent, fonts, backgrounds, corners, field & button styles, spacing, shadow, card border and placement, plus editable colour palettes. No CSS required; changes follow draft / publish.
24
25
-**Submission inbox** — search, filter by status (new / read / archived), bulk mark-as-read / archive / delete, per-form column picker, a detail drawer with next/previous navigation, and CSV export.
25
26
-**Form preview** — preview the rendered form inside the admin before publishing.
26
27
@@ -214,6 +215,7 @@ Each rule accepts an optional **custom error message**. The same rule type canno
214
215
| Honeypot protection | Adds a hidden field to silently discard bot submissions |
215
216
| Rate limiting | Caps submissions per IP each hour (configurable max) |
216
217
| CAPTCHA | None, Cloudflare Turnstile or Google reCAPTCHA v2 — with a **Test secret key** button to validate credentials before publishing |
218
+
| Custom styles | Enables the visual **Style** editor for the form (see below) |
217
219
| Redirect URL | Where to send the visitor after a successful submit |
218
220
219
221
---
@@ -246,9 +248,24 @@ The captured value is stored with the submission and included in the CSV export.
246
248
247
249
---
248
250
249
-
## Styling the embedded form
251
+
## Styling
250
252
251
-
The embedded form renders in the host page's DOM (no shadow DOM), so you can restyle it from your own site.
253
+
### Visual style editor (no code)
254
+
255
+
Turn on **Custom styles** in the form's Settings drawer to reveal a **Style** tab next to **Fields**. It opens a dedicated editor with a live Desktop/Mobile preview:
-**Layout** — form width, spacing, card shadow, card border, card corners, and placement (Top / Center).
262
+
-**Colour palettes** are editable — add colours with the picker, remove any swatch; they're saved with the form. **Reset to default theme** restores everything.
263
+
264
+
Everything resolves to a small set of `--sfb-*` CSS variables applied to both the preview and the public form, so the preview matches production. Style changes follow the normal **draft / publish** flow — they go live when you publish.
265
+
266
+
### Overriding styles from your own site
267
+
268
+
The embedded form renders in the host page's DOM (no shadow DOM), so you can also restyle it from your own site.
252
269
253
270
**CSS variables** (the recommended, stable API):
254
271
@@ -321,7 +338,7 @@ Pull requests are welcome. For major changes please open an issue first to discu
0 commit comments