プレビュー
HTML
<section>
<h1>No matches</h1>
<p>Try a broader word or another type.</p>
<button type="button">Clear filters</button>
</section>
CSS
:root {
--ink: #241c16;
--paper: #fffaf1;
--accent: #d4552b;
--accent-2: #4338ca;
--on-accent: #fff;
--muted: #6a6156;
--line: #d7ccb8;
--chip: #efe6d6;
}
section {
display: grid;
justify-items: start;
gap: 0.45rem;
max-width: 18rem;
color: var(--ink);
}
h1, p { margin: 0; }
h1 { font-size: 1.15rem; }
p { color: var(--muted); }
button {
margin-top: 0.35rem;
padding: 0.4rem 0.75rem;
border: 1px solid currentColor;
border-radius: 999px;
background: transparent;
color: inherit;
font: inherit;
}
Tailwind
<style>
:root {
--ink: #241c16;
--paper: #fffaf1;
--accent: #d4552b;
--accent-2: #4338ca;
--on-accent: #fff;
--muted: #6a6156;
--line: #d7ccb8;
--chip: #efe6d6;
}
</style>
<section class="grid [justify-items:start] gap-[0.45rem] max-w-[18rem] text-[var(--ink)]">
<h1 class="m-0 text-[1.15rem]">No matches</h1>
<p class="m-0 text-[var(--muted)]">Try a broader word or another type.</p>
<button class="mt-[0.35rem] p-[0.4rem_0.75rem] [border:1px_solid_currentColor] rounded-full bg-transparent text-inherit [font:inherit]" type="button">Clear filters</button>
</section>