Dense Card
Tight gaps and mono type
Preview
HTML
<article>
<h1>Dense</h1>
<p>Tight gaps and mono type.</p>
</article>
CSS
:root {
--ink: #e7eaf1;
--paper: #141820;
--accent: #7aa2ff;
--accent-2: #9b8cff;
--on-accent: #10131a;
--muted: #8b93a7;
--line: #2c3342;
--chip: #1d2330;
}
article {
display: grid;
gap: 0.28rem;
max-width: 16rem;
padding: 0.6rem 0.7rem;
border: 1px solid var(--line);
border-radius: 0.25rem;
background: var(--paper);
color: var(--ink);
font-family: ui-monospace, monospace;
}
h1, p { margin: 0; }
h1 {
font-size: 1.15rem;
font-weight: 700;
letter-spacing: 0;
text-transform: none;
}
p { color: var(--muted); font-size: 0.78rem; }
Tailwind
<style>
:root {
--ink: #e7eaf1;
--paper: #141820;
--accent: #7aa2ff;
--accent-2: #9b8cff;
--on-accent: #10131a;
--muted: #8b93a7;
--line: #2c3342;
--chip: #1d2330;
}
</style>
<article class="grid gap-[0.28rem] max-w-[16rem] p-[0.6rem_0.7rem] [border:1px_solid_var(--line)] rounded-[0.25rem] bg-[var(--paper)] text-[var(--ink)] font-[ui-monospace,_monospace]">
<h1 class="m-0 text-[1.15rem] font-bold tracking-[0] normal-case">Dense</h1>
<p class="m-0 text-[var(--muted)] text-[0.78rem]">Tight gaps and mono type.</p>
</article>