A compact signup form that surfaces consent progressively to reduce early friction.
HTML
<form class="signup-consent">
<input type="email" placeholder="Work email">
<label class="signup-consent__check">
<input type="checkbox">
<span>I agree to terms</span>
</label>
<button type="submit">Create account</button>
</form>CSS
.signup-consent {
width: 200px;
padding: 0.85rem;
border-radius: 18px;
background: #ffffff;
display: grid;
gap: 0.45rem;
box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}
.signup-consent input[type="email"] {
padding: 0.45rem 0.5rem;
border-radius: 10px;
border: 1px solid #e5e7eb;
font-size: 12px;
}
.signup-consent__check {
display: flex;
gap: 0.35rem;
font-size: 11px;
color: #6b7280;
align-items: center;
}
.signup-consent button {
padding: 0.45rem;
border-radius: 999px;
border: none;
background: #6366f1;
color: #ffffff;
font-size: 12px;
cursor: pointer;
}
@media (prefers-color-scheme: dark) {
.signup-consent {
background: #020617;
}
.signup-consent input {
background: #020617;
color: #e5e7eb;
border-color: #374151;
}
.signup-consent__check {
color: #9ca3af;
}
}Notes
- Consent appears without visual dominance
- Compact and conversion-safe
- Suitable for SaaS onboarding
Preview styles shown. Production customization recommended.
Browse More UI Components
Explore hundreds of reusable HTML & CSS UI components built for modern web projects.
Discover buttons, cards, loaders, animations, layouts, and more all with live previews and clean, copy-paste code.
