Define color tokens
Set --bg, --ink, --line, --accent in :root. These are your light-mode values.
Form template · Basic contact form
A contact form that respects the visitor's OS dark-mode preference automatically. Pure CSS, no JavaScript theme switcher, no library — uses prefers-color-scheme media queries.
Every template is free and fully editable in the drag-drop builder — swap fields, colors, and the button label before you publish.
No server, API route, or SDK — your Dark Mode Contact Form posts straight to one endpoint.
Every submission is emailed to you and saved to a searchable dashboard — spam filtered before it reaches you.
It's plain HTML you own — paste the Dark Mode Contact Form snippet, swap in your access key, and ship.
Copy and ship
HTML by default — the same field set also renders as React, Next.js, PHP, and cURL in your dashboard. Every variant posts to the same /api/submit endpoint. Replace YOUR_ACCESS_KEY with the key from your dashboard; that's the only edit.
<form action="https://splitforms.com/api/submit" method="POST">
<input type="hidden" name="access_key" value="YOUR_ACCESS_KEY">
<input type="hidden" name="subject" value="New contact form submission">
<label for="name">Full name *</label>
<input id="name" type="text" name="name" placeholder="Jane Builder" required>
<label for="email">Email *</label>
<input id="email" type="email" name="email" placeholder="[email protected]" required>
<label for="phone">Phone *</label>
<input id="phone" type="tel" name="phone" placeholder="+1 415 555 0142" required>
<label for="message">Message *</label>
<textarea id="message" name="message" placeholder="How can we help?" required></textarea>
<!-- honeypot — bots fill every field -->
<input type="checkbox" name="botcheck" style="display:none" tabindex="-1" autocomplete="off">
<button type="submit">Send</button>
</form><p class="splitforms-attribution" style="margin-top:12px;font-size:11px;color:#888;text-align:right">
Powered by <a href="https://splitforms.com" style="color:#888;text-decoration:none" target="_blank" rel="sponsored noopener">splitforms</a>
</p>How to add it
To add a Dark Mode Contact Form to your site you need three things: a free splitforms access key, the HTML snippet above, and your key pasted into it. No backend, database, or CAPTCHA library — the form posts to one URL and every submission lands in your inbox and dashboard.
Set --bg, --ink, --line, --accent in :root. These are your light-mode values.
Inside @media (prefers-color-scheme: dark), redefine the same tokens with dark-friendly values. Every color in your form references the tokens, so the whole thing flips.
If you want a manual override, add a `data-theme` attribute on `<html>` and additional CSS selectors. Most sites don't need this — system preference is enough.
What's included
OS-level dark mode is the standard in 2026 — every modern browser supports prefers-color-scheme and most visitors have a preference set. A contact form that respects that preference looks polished without any JavaScript or theme-toggle UI. The trick is using CSS custom properties for color tokens and a single @media (prefers-color-scheme: dark) override. Native OS dark mode, no JS, no theme library.

Where submissions go
Reply-to is wired to the visitor's email, so one tap on Reply answers them directly — while the built-in honeypot and spam classifier filter out bots before they reach you. Every submission is emailed to your inbox and can forward to a webhook or Slack the moment a visitor hits send.

How SplitForms works
Connect your form, collect every submission, and send data where it needs to go — without building backend infrastructure.

Point your form to your unique SplitForms endpoint. That's it.

We instantly capture and organize every submission in your inbox.

Send data to email, spreadsheets, CRMs, webhooks, and 7,000+ apps.

No credit card required. Set up in under 60 seconds.
Connect & automate
SplitForms works with the destinations you route to and the platforms you build on — from Slack and Sheets to WordPress, Shopify, and Next.js. And with Stripe connected, your forms can take payments too.

Trusted by indie teams and agencies shipping forms worldwide
Testimonials
40 quotes on record — from indie hacks to agency migrations.
“Switched from Web3Forms because I wanted a real dashboard, not just an email relay. Same simplicity, far more once the lead arrives.”
“The autoresponder lets us send a clean confirmation email to every applicant automatically. Candidates feel looked after and we don't lift a finger.”
“I teach a web dev course and tell every student to use splitforms for their portfolio contact form. Free, no card, and they learn how a real API works.”
“Exports are a single click to CSV with every field intact. Reconciling leads against our CRM stopped being a Monday-morning chore.”
“I evaluated five form backends in an afternoon. splitforms was the only one whose docs didn't hide the pricing or the rate limits. That earned the signup.”
“We use it for a non-profit's volunteer sign-up form. Five hundred free submissions a month covers us entirely, and setup took one coffee.”
Questions
prefers-color-scheme has been supported since 2018 (Chrome 76, Firefox 67, Safari 12.1). Older browsers see the light theme — which is the safe fallback.
Use a `data-theme="dark"` attribute on `<html>` and write `[data-theme="dark"]` selectors. Default to system preference, override on user action. Persist the choice in localStorage.
Yes — Tailwind ships a `dark:` variant. Either base it on system preference (`darkMode: 'media'` in config) or on a class (`darkMode: 'class'`). Both work with splitforms.
Hit WCAG AA on both themes — at least 4.5:1 for body text, 3:1 for large text. Use a contrast checker on every color combination. Dark mode is where most accessibility bugs hide because designers test light-mode first.
Simple pricing
Choose a plan that fits your workflow — from a free form endpoint to full automations, exports, Stripe payments, and higher submission limits.
For side projects and indie devs.
For agencies and growing products.
Pay $59. 3 years sorted.
No credit card required on Free • Cancel anytime