Dense Select
Tight gaps and mono type
Preview
HTML
<label>Sort
<select>
<option>New</option>
<option>Old</option>
</select>
</label>
CSS
:root {
--ink: #e7eaf1;
--paper: #141820;
--accent: #7aa2ff;
--accent-2: #9b8cff;
--on-accent: #10131a;
--muted: #8b93a7;
--line: #2c3342;
--chip: #1d2330;
}
label {
display: grid;
gap: 0.3rem;
color: var(--ink);
font-family: ui-monospace, monospace;
font-size: 0.78rem;
}
select {
padding: 0.28rem 0.55rem;
border: 1px solid var(--line);
border-radius: 0.25rem;
background: var(--paper);
color: inherit;
font: inherit;
}
Tailwind
<style>
:root {
--ink: #e7eaf1;
--paper: #141820;
--accent: #7aa2ff;
--accent-2: #9b8cff;
--on-accent: #10131a;
--muted: #8b93a7;
--line: #2c3342;
--chip: #1d2330;
}
</style>
<label class="grid gap-[0.3rem] text-[var(--ink)] font-[ui-monospace,_monospace] text-[0.78rem]">Sort
<select class="p-[0.28rem_0.55rem] [border:1px_solid_var(--line)] rounded-[0.25rem] bg-[var(--paper)] text-inherit [font:inherit]">
<option>New</option>
<option>Old</option>
</select>
</label>