Newsletter-Anmeldung

Newsletter-Anmeldung: CSS-Card. Kopiere die Regeln oder den Prompt, der das Ergebnis nachbaut.

newsletterforminputctadarkgradient

Get new snippets weekly

One email, ten cards, zero fluff.

Unsubscribe any time.
CSS
.card-100 {
  width: 340px;
  padding: 26px;
  background: #0f172a;
  border-radius: 18px;
  font-family: system-ui,sans-serif;
  color: #f8fafc;
  background-image: radial-gradient(circle at 100% 0,rgba(99,102,241,.35),transparent 50%)
}
.card-100 h3 {
  margin: 0 0 4px;
  font-size: 20px
}
.card-100 p {
  margin: 0 0 16px;
  font-size: 14px;
  color: #94a3b8
}
.card-100__row {
  display: flex;
  gap: 8px
}
.card-100 input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #334155;
  border-radius: 10px;
  background: #1e293b;
  color: #f8fafc;
  font-size: 14px;
  outline: none;
  transition: border-color .15s,box-shadow .15s
}
.card-100 input::placeholder {
  color: #64748b
}
.card-100 input:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(129,140,248,.25)
}
.card-100 button {
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  background: #818cf8;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s
}
.card-100 button:hover {
  background: #a5b4fc
}
.card-100 small {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  color: #64748b
}
HTML
<form class="card-100" action="#">
  <h3>Get new snippets weekly</h3>
  <p>One email, ten cards, zero fluff.</p>
  <div class="card-100__row"><input type="email" placeholder="[email protected]" required><button type="submit">Subscribe</button></div>
  <small>Unsubscribe any time.</small>
</form>
Prompt

Erstelle eine 340px Newsletter-Anmelde-Card als Formular: Hintergrund #0f172a mit weichem indigofarbenem radialem Glow in der oberen rechten Ecke (rgba(99,102,241,.35) zu transparent bei 50%), 18px Radius, 26px Padding. 20px weißer Titel, 14px #94a3b8 Untertitel, dann eine Flex-Zeile: ein E-Mail-Input auf #1e293b mit 1px #334155 Rahmen und 10px Radius (Focus: #818cf8 Rahmen plus 3px durchscheinender indigofarbener Ring) neben einem indigofarbenen #818cf8 "Subscribe" Button mit dunklem Text, der beim Hover auf #a5b4fc aufhellt. Darunter eine 11px #64748b Notiz "Unsubscribe any time.".