# Newsletter signup (C 100)

Category: Cards  
Tags: newsletter, form, input, cta, dark, gradient  
Page: https://designforai.dev/snippet/card-100

## Prompt

Create a 340px newsletter signup card as a form: background #0f172a with a soft indigo radial glow in the top-right corner (rgba(99,102,241,.35) to transparent at 50%), 18px radius, 26px padding. 20px white title, 14px #94a3b8 subtitle, then a flex row: an email input on #1e293b with a 1px #334155 border and 10px radius (focus: #818cf8 border plus a 3px translucent indigo ring) next to an indigo #818cf8 "Subscribe" button with dark text that lightens to #a5b4fc on hover. An 11px #64748b "Unsubscribe any time." note below.

## HTML

```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="you@company.com" required><button type="submit">Subscribe</button></div>
  <small>Unsubscribe any time.</small>
</form>
```

## CSS

```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
}
```
