プレビュー
HTML
<label>
Genre
<select>
<option>simple</option>
<option selected>editorial</option>
<option>dense</option>
</select>
</label>
CSS
:root {
--ink: #241c16;
--paper: #fffaf1;
--accent: #d4552b;
--accent-2: #4338ca;
--on-accent: #fff;
--muted: #6a6156;
--line: #d7ccb8;
--chip: #efe6d6;
}
label {
display: grid;
gap: 0.4rem;
min-width: min(100%, 14rem);
font-size: 0.85rem;
font-weight: 700;
}
select {
min-height: 2.5rem;
padding: 0 0.7rem;
border: 1px solid var(--line);
border-radius: 0.7rem;
background: var(--paper);
font: inherit;
}
Tailwind
<style>
:root {
--ink: #241c16;
--paper: #fffaf1;
--accent: #d4552b;
--accent-2: #4338ca;
--on-accent: #fff;
--muted: #6a6156;
--line: #d7ccb8;
--chip: #efe6d6;
}
</style>
<label class="grid gap-[0.4rem] min-w-[min(100%,_14rem)] text-[0.85rem] font-bold">
Genre
<select class="min-h-[2.5rem] p-[0_0.7rem] [border:1px_solid_var(--line)] rounded-[0.7rem] bg-[var(--paper)] [font:inherit]">
<option>simple</option>
<option selected>editorial</option>
<option>dense</option>
</select>
</label>