Plans with meters
Monthly/yearly segmented toggle, three hairline plan cards with a meter box each; the third card is lit with grain and a white pill.
Part of the style
Night Editor Chrome
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/night-editor-chrome/pricing/figma.html?palette=b0901b52c4313899
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/night-editor-chrome/pricing/figma.html?palette=b0901b52c4313899 and pass that whole HTML document to the html_to_figma tool, so the part "Plans with meters" 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 {
--paper: #151312;
--ink: #fffefc;
--ink-soft: rgba(255, 254, 252, 0.7);
--ink-mute: rgba(255, 254, 252, 0.45);
--ink-dark: #151312;
--surface: rgba(255, 254, 252, 0.05);
--surface-up: rgba(255, 254, 252, 0.08);
--surface-top: rgba(255, 254, 252, 0.14);
--line: rgba(255, 254, 252, 0.1);
--line-strong: rgba(255, 254, 252, 0.18);
--chrome: #1f1d1c;
--chrome-deep: #1a1817;
--sheet: #fffefc;
--sheet-ink: #737170;
--sheet-line: #e0dfdd;
--signal: #435eca;
--signal-deep: #1a2449;
--select: #6f8be0;
--ok: #838dae;
}
</style>
<section class="pricing is-yearly">
<div class="pricing__head">
<div>
<h2 class="pricing__title">Plans</h2>
<p class="pricing__lede">Start on the free desk. Every plan carries assistant credits, so the helper works from the first issue, with nothing to wire up.</p>
</div>
<div class="pricing__toggle" role="group" aria-label="Billing period">
<span class="pricing__thumb" aria-hidden="true"></span>
<button class="pricing__option" type="button" data-period="monthly" aria-pressed="false">Monthly</button>
<button class="pricing__option" type="button" data-period="yearly" aria-pressed="true">Yearly</button>
</div>
</div>
<div class="pricing__grid">
<article class="pricing__card">
<h3 class="pricing__name">Draft</h3>
<p class="pricing__blurb">Try the desk and the assistant before you send anything.</p>
<p class="pricing__price"><span class="pricing__amount">$0</span></p>
<p class="pricing__note">No card needed</p>
<div class="pricing__meter">
<div class="pricing__meter-top"><span><span class="pricing__spark" aria-hidden="true">✦</span> Credits</span><span>Once</span></div>
<span class="pricing__meter-value">400</span>
<span class="pricing__bar" style="--fill: 12%"></span>
</div>
<a class="pricing__pill" href="#">Start free</a>
<ul class="pricing__list">
<li class="pricing__item pricing__item--no">No custom sender</li>
<li class="pricing__item">One issue draft</li>
</ul>
</article>
<article class="pricing__card">
<h3 class="pricing__name">Desk</h3>
<p class="pricing__blurb">A live newsletter on your own address, sent weekly.</p>
<p class="pricing__price">
<span class="pricing__amount pricing__amount--month">$9</span><span class="pricing__amount pricing__amount--year">$7</span>
<span class="pricing__per">/ month</span>
<span class="pricing__save">Save 22%</span>
</p>
<p class="pricing__note"><span class="pricing__amount--year">Billed yearly, $84 a year</span><span class="pricing__amount--month">Billed every month</span></p>
<div class="pricing__meter">
<div class="pricing__meter-top"><span><span class="pricing__spark" aria-hidden="true">✦</span> Credits</span><span>Every month</span></div>
<span class="pricing__meter-value">1,200</span>
<span class="pricing__bar" style="--fill: 32%"></span>
</div>
<a class="pricing__pill" href="#">Start free</a>
<ul class="pricing__list">
<li class="pricing__item">Custom sender address</li>
<li class="pricing__item">5,000 readers</li>
</ul>
</article>
<article class="pricing__card pricing__card--lit">
<h3 class="pricing__name">Press</h3>
<p class="pricing__blurb">Three times the credits, sections, and every language.</p>
<p class="pricing__price">
<span class="pricing__amount pricing__amount--month">$24</span><span class="pricing__amount pricing__amount--year">$20</span>
<span class="pricing__per">/ month</span>
<span class="pricing__save">Save 17%</span>
</p>
<p class="pricing__note"><span class="pricing__amount--year">Billed yearly, $240 a year</span><span class="pricing__amount--month">Billed every month</span></p>
<div class="pricing__meter">
<div class="pricing__meter-top"><span><span class="pricing__spark" aria-hidden="true">✦</span> Credits</span><span>Every month</span></div>
<span class="pricing__meter-value">4,000</span>
<span class="pricing__bar" style="--fill: 100%"></span>
</div>
<a class="pricing__pill pricing__pill--solid" href="#">Start free</a>
<ul class="pricing__list">
<li class="pricing__item">Everything in Desk</li>
<li class="pricing__item">25,000 readers</li>
</ul>
</article>
</div>
</section>
<style>
.pricing {
padding: var(--section-space) var(--edge);
}
.pricing__head {
display: flex;
flex-wrap: wrap;
align-items: flex-end;
justify-content: space-between;
gap: var(--space-l);
margin-bottom: var(--space-xl);
}
.pricing__title {
margin: 0;
font-size: var(--text-xl);
font-weight: var(--weight-medium);
line-height: 1.1;
letter-spacing: var(--track-tight);
}
.pricing__lede {
max-width: 540px;
margin: var(--space-m) 0 0;
color: var(--ink-soft);
line-height: 1.6;
}
.pricing__toggle {
position: relative;
display: grid;
grid-template-columns: 1fr 1fr;
padding: 3px;
border: var(--rule) solid var(--line);
border-radius: var(--radius-pill);
background: var(--surface);
}
.pricing__thumb {
position: absolute;
top: 3px;
bottom: 3px;
left: 3px;
width: calc(50% - 3px);
border-radius: var(--radius-pill);
background: var(--surface-top);
transition: translate var(--time) var(--ease);
}
.pricing.is-yearly .pricing__thumb { translate: 100% 0; }
.pricing__option {
position: relative;
min-height: 44px;
padding: 0 18px;
border: 0;
border-radius: var(--radius-pill);
background: none;
color: var(--ink-soft);
font: inherit;
font-size: var(--text-s);
cursor: pointer;
transition: color var(--quick) var(--ease);
}
.pricing__option[aria-pressed="true"] { color: var(--ink); }
.pricing button:focus-visible,
.pricing a:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.pricing__grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: var(--gap);
}
.pricing__card {
position: relative;
display: flex;
flex-direction: column;
padding: var(--space-l);
border: var(--rule) solid var(--line);
border-radius: var(--radius-card);
background: var(--paper);
}
.pricing__card--lit {
background: var(--grain), radial-gradient(120% 90% at 0% 0%, var(--surface-top), var(--surface) 70%);
border-color: var(--line-strong);
}
.pricing__name {
margin: 0;
font-size: var(--text-l);
font-weight: 400;
line-height: 1.2;
}
.pricing__blurb {
margin: 6px 0 0;
min-height: 3.2em;
color: var(--ink-soft);
line-height: 1.5;
}
.pricing__price {
display: flex;
align-items: baseline;
flex-wrap: wrap;
gap: 6px;
margin: var(--space-l) 0 0;
}
.pricing__amount {
font-size: var(--text-price);
font-weight: var(--weight-medium);
line-height: 1;
letter-spacing: var(--track-tight);
}
.pricing.is-yearly .pricing__amount--month,
.pricing:not(.is-yearly) .pricing__amount--year,
.pricing:not(.is-yearly) .pricing__save { display: none; }
.pricing__per { color: var(--ink-soft); font-size: var(--text-s); }
.pricing__save {
align-self: center;
padding: 2px 8px;
border-radius: var(--radius-pill);
background: var(--surface-top);
font-size: var(--text-xs);
}
.pricing__note {
margin: 6px 0 0;
color: var(--ink-soft);
font-size: var(--text-s);
}
.pricing__meter {
display: grid;
gap: 6px;
margin-top: var(--space-l);
padding: var(--space-m);
border: var(--rule) solid var(--line);
border-radius: var(--radius-panel);
background: var(--surface);
}
.pricing__meter-top {
display: flex;
justify-content: space-between;
color: var(--ink-soft);
font-size: var(--text-xs);
}
.pricing__spark { margin-right: 4px; }
.pricing__meter-value { font-size: var(--text-l); line-height: 1.2; }
.pricing__bar {
position: relative;
height: 4px;
margin-top: 4px;
border-radius: 2px;
background: var(--surface-up);
overflow: hidden;
}
.pricing__bar::after {
content: "";
position: absolute;
inset: 0 auto 0 0;
width: var(--fill);
border-radius: inherit;
background: var(--ink-soft);
transition: width var(--time) var(--ease);
}
.pricing__card--lit .pricing__bar::after { background: var(--ink); }
.pricing__pill {
display: grid;
place-items: center;
min-height: 44px;
margin-top: var(--space-l);
border: var(--rule) solid var(--line-strong);
border-radius: var(--radius-pill);
color: var(--ink);
font-size: var(--text-s);
text-decoration: none;
transition: background-color var(--quick) var(--ease);
}
.pricing__pill:hover { background: var(--surface-up); }
.pricing__pill--solid {
border-color: var(--ink);
background: var(--ink);
color: var(--ink-dark);
}
.pricing__pill--solid:hover { background: var(--ink-soft); }
.pricing__list {
display: grid;
gap: 10px;
margin: var(--space-l) 0 0;
padding: var(--space-l) 0 0;
border-top: var(--rule) solid var(--line);
list-style: none;
}
.pricing__item {
display: flex;
gap: 10px;
font-size: var(--text-s);
}
.pricing__item::before { content: "✓"; color: var(--ink-mute); }
.pricing__item--no { color: var(--ink-soft); }
.pricing__item--no::before { content: "–"; }
@media (max-width: 900px) {
.pricing__grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
.pricing__blurb { min-height: 0; }
}
</style>
<script>
(() => {
for (const root of document.querySelectorAll('.pricing')) {
const options = root.querySelectorAll('.pricing__option');
for (const option of options) {
option.addEventListener('click', () => {
const yearly = option.dataset.period === 'yearly';
root.classList.toggle('is-yearly', yearly);
options.forEach((o) => o.setAttribute('aria-pressed', String(o === option)));
});
}
}
})();
</script>