Sentence sign-up
A newsletter form written into one sentence: an underlined field inline with the words and a bold 'Send.' that swaps in a thank-you line.
Part of the style
Bare Serif Rack
6 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/bare-serif-rack/signup/figma.html?palette=dc0dcb4a05643e06
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/bare-serif-rack/signup/figma.html?palette=dc0dcb4a05643e06 and pass that whole HTML document to the html_to_figma tool, so the part "Sentence sign-up" lands as editable layers in my open Figma file. Fonts come from Google Fonts: if a face is missing in Figma, pick the closest one.
Code
<style>
/* Goes after the pack's base.css */
:root {
--ink: #1d0d07;
--paper: #e1b37f;
--ink-muted: #967753;
--photo-ground: #d8ac79;
}
</style>
<section class="signup">
<form class="signup__form" action="#">
<p class="signup__line">
<strong class="signup__ask">Join the kiln list!</strong>
We write when a firing comes out, about four times a year. Leave an address
<label class="signup__label" for="signup-email">here</label>
<input class="signup__field" id="signup-email" type="email" name="email" placeholder="you@example.com" required autocomplete="email">
and press <button class="signup__send" type="submit">Send.</button>
</p>
<p class="signup__done" aria-live="polite"></p>
<p class="signup__fine">No spam, only pots. You can leave the list by replying with the word "unglazed".</p>
</form>
</section>
<style>
.signup {
padding: var(--edge) var(--edge) var(--section-space);
}
.signup__form {
max-width: 44em;
}
.signup__line,
.signup__done,
.signup__fine {
margin: 0;
font-size: var(--text);
line-height: var(--leading);
}
.signup__done:empty {
display: none;
}
.signup__fine {
margin-top: var(--gap);
color: var(--ink-muted);
font-size: var(--text-s);
line-height: var(--leading);
}
.signup__ask {
font-weight: 700;
}
/* The field is part of the sentence: no box, only one black underline. */
.signup__field {
width: 13em;
max-width: 100%;
height: 44px;
margin-block: -10px;
padding: 0 2px;
border: 0;
border-radius: 0;
/* The underline is drawn at the text's foot, not at the bottom of the 44 px tap box. */
background: linear-gradient(var(--ink), var(--ink)) left bottom 9px / 100% var(--line) no-repeat;
color: var(--ink);
font: 400 var(--text)/var(--leading) var(--font-body);
vertical-align: baseline;
}
.signup__field::placeholder {
color: var(--ink-muted);
font-style: italic;
}
.signup__field:focus {
outline: none;
background-size: 100% calc(var(--line) * 2);
}
.signup__send {
height: 44px;
margin-block: -10px;
padding: 0;
border: 0;
background: none;
color: var(--ink);
font: 700 var(--text)/var(--leading) var(--font-body);
cursor: pointer;
}
.signup__send:hover,
.signup__send:focus-visible {
text-decoration: underline;
text-decoration-thickness: var(--line);
}
.signup__send:focus-visible {
outline: var(--line) dotted var(--ink);
}
.signup.is-sent .signup__line {
color: var(--ink-muted);
}
</style>
<script>
(() => {
document.querySelectorAll(".signup").forEach((root) => {
const form = root.querySelector(".signup__form");
const done = root.querySelector(".signup__done");
if (!form || !done) return;
form.addEventListener("submit", (event) => {
event.preventDefault();
root.classList.add("is-sent");
done.textContent = "Thank you. We will write when the kiln cools down.";
});
});
})();
</script>