Control sheet
The inverted black menu: filter groups in big type, one per double column, over dark hairline boxes, with one choice active per group and a close word in the last column.
Part of the style
Hairline Column Register
6 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/hairline-column-register/control/figma.html
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/hairline-column-register/control/figma.html and pass that whole HTML document to the html_to_figma tool, so the part "Control sheet" lands as editable layers in my open Figma file. Fonts come from Google Fonts: if a face is missing in Figma, pick the closest one.
Code
<nav class="control" aria-label="Archive control">
<div class="control__lines" aria-hidden="true"><span></span><span></span><span></span><span></span><span></span><span></span><span></span></div>
<div class="control__group" role="group" aria-label="Holdings">
<h3 class="control__title">Holdings</h3>
<button class="control__item is-active" type="button" aria-pressed="true">All holdings</button>
<button class="control__item" type="button" aria-pressed="false">Seed</button>
<button class="control__item" type="button" aria-pressed="false">Frond</button>
<button class="control__item" type="button" aria-pressed="false">Pressing</button>
<button class="control__item" type="button" aria-pressed="false">Spore print</button>
<button class="control__item" type="button" aria-pressed="false">Bark</button>
<button class="control__item" type="button" aria-pressed="false">Lichen</button>
<button class="control__item" type="button" aria-pressed="false">Moss</button>
<button class="control__item" type="button" aria-pressed="false">Root</button>
</div>
<div class="control__group" role="group" aria-label="Field">
<h3 class="control__title">Field</h3>
<button class="control__item is-active" type="button" aria-pressed="true">All field</button>
<button class="control__item" type="button" aria-pressed="false">Survey</button>
<button class="control__item" type="button" aria-pressed="false">Lecture</button>
<button class="control__item" type="button" aria-pressed="false">Notebook</button>
</div>
<div class="control__group" role="group" aria-label="Desk">
<h3 class="control__title">Desk</h3>
<a class="control__item" href="#">Write to us</a>
<a class="control__item" href="#">Visiting</a>
</div>
<div class="control__end">
<button class="control__close" type="button" aria-expanded="true"><span class="control__when-open">Back to the register</span><span class="control__when-folded">Control +</span></button>
</div>
</nav>
<style>
.control {
position: relative;
display: grid;
grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
column-gap: var(--gutter);
align-items: start;
min-height: 720px;
padding: var(--edge) var(--edge) var(--section-space);
background: var(--ink);
color: var(--paper);
font-family: var(--font-display);
font-weight: var(--weight);
font-size: var(--text-xl);
line-height: var(--leading);
letter-spacing: var(--tracking);
}
.control.is-folded {
min-height: 0;
}
.control.is-folded .control__item,
.control__when-folded,
.control.is-folded .control__when-open {
display: none;
}
.control.is-folded .control__when-folded {
display: inline;
}
.control__item {
animation: control-in var(--fade) var(--ease) both;
}
.control__lines {
position: absolute;
inset: var(--edge) var(--edge) 0;
display: grid;
grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
gap: var(--gutter);
pointer-events: none;
}
.control__lines span {
border: var(--line) solid var(--rule-dark);
border-bottom: 0;
}
.control__group {
position: relative;
display: flex;
flex-direction: column;
align-items: flex-start;
grid-column: span 2;
}
.control__title {
margin: 0 0 var(--space-m);
font: inherit;
}
.control__item,
.control__close {
display: block;
min-height: 44px;
margin: 0;
padding: 0;
border: 0;
background: none;
color: inherit;
font: inherit;
letter-spacing: inherit;
text-align: left;
text-decoration: none;
white-space: nowrap;
cursor: pointer;
}
.control__item.is-active,
.control__item:hover,
.control__close:hover {
text-decoration: underline;
text-decoration-thickness: 0.06em;
text-underline-offset: 0.1em;
}
.control__item:focus-visible,
.control__close:focus-visible {
outline: var(--line) solid var(--paper);
outline-offset: 2px;
}
.control__end {
position: relative;
grid-column: 7;
}
.control__close {
white-space: normal;
}
@keyframes control-in {
from { opacity: 0; }
to { opacity: 1; }
}
@media (max-width: 64rem) {
.control__end {
grid-column: 5 / span 3;
grid-row: 2;
margin-top: var(--space-l);
}
}
@media (max-width: 40rem) {
.control {
grid-template-columns: repeat(var(--cols-phone), minmax(0, 1fr));
row-gap: var(--space-l);
min-height: 0;
}
.control__lines {
grid-template-columns: repeat(var(--cols-phone), minmax(0, 1fr));
}
.control__lines span:nth-child(n + 4) {
display: none;
}
.control__group,
.control__end {
grid-column: 1 / -1;
grid-row: auto;
margin-top: 0;
}
}
</style>
<script>
(() => {
document.querySelectorAll(".control").forEach((root) => {
root.querySelectorAll(".control__group").forEach((group) => {
const choices = group.querySelectorAll("button.control__item");
choices.forEach((choice) => {
choice.addEventListener("click", () => {
choices.forEach((other) => {
const on = other === choice;
other.classList.toggle("is-active", on);
other.setAttribute("aria-pressed", on ? "true" : "false");
});
});
});
});
const close = root.querySelector(".control__close");
close.addEventListener("click", () => {
const folded = root.classList.toggle("is-folded");
close.setAttribute("aria-expanded", folded ? "false" : "true");
});
});
})();
</script>