プレビュー
HTML
<header>
<h1>Inbox</h1>
<button type="button">New</button>
</header>
CSS
:root {
--ink: #241c16;
--paper: #fffaf1;
--accent: #d4552b;
--accent-2: #4338ca;
--on-accent: #fff;
--muted: #6a6156;
--line: #d7ccb8;
--chip: #efe6d6;
}
header {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
color: var(--ink);
}
h1 { margin: 0; font-size: 1.1rem; }
button {
padding: 0.3rem 0.7rem;
border: 0;
border-radius: 999px;
background: var(--accent);
color: var(--on-accent);
font: inherit;
}
Tailwind
<style>
:root {
--ink: #241c16;
--paper: #fffaf1;
--accent: #d4552b;
--accent-2: #4338ca;
--on-accent: #fff;
--muted: #6a6156;
--line: #d7ccb8;
--chip: #efe6d6;
}
</style>
<header class="flex flex-wrap items-center justify-between gap-[0.5rem] text-[var(--ink)]">
<h1 class="m-0 text-[1.1rem]">Inbox</h1>
<button class="p-[0.3rem_0.7rem] [border:0] rounded-full bg-[var(--accent)] text-[var(--on-accent)] [font:inherit]" type="button">New</button>
</header>