05 — Patterns

Structural Block

Swiss Red's third job, on top of dividers and card borders: a genuine layout element, not just a border or a rule. Outside the one block, ink and cream dominate every other surface exactly as before. Turquoise gets a smaller block of its own, documented on the Highlight page.

Red's three forms, pick one block per layout

Sidebar / nav rail

Full-height solid primary panel, 22% of the viewport wide (min 220px, max 280px), sticky. Holds the wordmark, anchor nav, toggles, an external link and the copyright. Nav links are primary-foreground at 0.75 opacity; on hover they lift to 1 and gain a 2px highlight underline. This site's sidebar is the live instance.

Hero band

Solid primary horizontal block, padding 64px by 48px, used once as an alternative to the sidebar. Never combined with it.

Bold word

One word inside a heading or paragraph in primary, at normal weight and size. Independent of the two block forms.

Hero band

Hero title.

Two structural colors, one strong accent.

<aside style="width:22%; min-width:220px; max-width:280px; background:var(--primary);
  color:var(--primary-foreground); position:sticky; top:0; height:100vh; padding:32px 28px;">
  …wordmark, nav, toggles, copyright…
</aside>

<div style="background:var(--primary); color:var(--primary-foreground); padding:64px 48px;">
  <h1>Hero title.</h1>
</div>

<p>Two structural colors, one strong <span style="color:var(--primary);">accent</span>.</p>

The tri-part segment stripe

Three equal solid segments, foreground, primary, highlight, 3px tall, as a static decorative divider or spacer at any length: a 36px marker (gap 3px), a 64px rule under the hero title (gap 4px), a 140px closing flourish (gap 6px). The one named exception to "Red and Turquoise never touch," scoped to this pattern only. Always three equal segments in this exact order. Static and decorative only, used a handful of times per page.

36px · gap 3px
64px · gap 4px
140px · gap 6px
<div style="display:flex; gap:3px; width:36px;" aria-hidden="true">
  <div style="height:3px; flex:1; background:var(--foreground);"></div>
  <div style="height:3px; flex:1; background:var(--primary);"></div>
  <div style="height:3px; flex:1; background:var(--highlight);"></div>
</div>

Hover hierarchy

Wherever a hover uses an accent color to signal interactivity, Red is the only color permitted to carry that real signal. Turquoise never signals on its own; it may only layer in as decoration alongside Red's or ink's feedback. Most controls hover via ink and muted-foreground shifts only. The one named exception, dual-accent hover: the Accent button and the Interactive card swap Red for Turquoise on hover. The two colors are never visible on the element simultaneously, and the carve-out must not spread beyond these two patterns.

Destructive Red carries the real signal
Default
Hover
Nav link Turquoise flourish, layered
DefaultSection
HoverSection
Accent button Dual-accent exception
Default
Hover
Interactive card Dual-accent exception

Hovered

Red at rest, Turquoise on hover.

Turquoise's own block

Parallel to Red's block but kept clearly secondary: a content-sized callout panel that may recur, one second-moment panel later in the page, one closing band near the end. Each capped around 15% of viewport height, never adjacent to Red's block, combined footprint visibly smaller than Red's. Details and demos on the Highlight page.