kitbash Sign in Connect agent
Components

Scan-weight index

Dark band with a summary in bold narrow capitals between two red step blocks, then large links in one scanline face at three settings (hairlines, beads, swollen rows), each with a bar arrow of matching weight. Hover snaps a link to thin rows and pushes its arrow on.

Part of the style

Scanline Red

7 parts that belong together, with their tokens, type and rules.

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --red: #fff9e7;
  --dark: #18003a;
  --glow: rgba(255, 249, 231, 0.95);
}
</style>

<nav class="channels" aria-label="What is in the almanac">
  <p class="channels__summary">Static Almanac is a yearbook of things heard on shortwave after midnight: voices reading numbers, clocks that never stop, weather maps sent as sound, and the hiss in between.</p>
  <ol class="channels__list">
    <li class="channels__item channels__item--thin">
      <a class="channels__link" href="#">
        Numbers
        <svg class="channels__arrow" viewBox="0 0 48 30" aria-hidden="true">
          <path d="M2 15h44M33 11h9M29 7h8M25 3h7M33 19h9M29 23h8M25 27h7" />
        </svg>
      </a>
    </li>
    <li class="channels__item channels__item--dots">
      <a class="channels__link" href="#">
        Time signals
        <svg class="channels__arrow" viewBox="0 0 48 30" aria-hidden="true">
          <path d="M2 15h44M33 11h9M29 7h8M25 3h7M33 19h9M29 23h8M25 27h7" />
        </svg>
      </a>
    </li>
    <li class="channels__item channels__item--heavy">
      <a class="channels__link" href="#">
        Weather by fax
        <svg class="channels__arrow" viewBox="0 0 48 30" aria-hidden="true">
          <path d="M2 15h44M33 11h9M29 7h8M25 3h7M33 19h9M29 23h8M25 27h7" />
        </svg>
      </a>
    </li>
  </ol>
</nav>

<style>
  .channels {
    padding: var(--space-m) var(--gutter) var(--space-m) var(--edge);
    background: var(--dark);
    color: var(--red);
  }

  /* The summary is bracketed by two red step blocks that hang in the margin, one above and one below. */
  .channels__summary {
    position: relative;
    max-width: var(--measure);
    margin: 0;
    padding-block: calc(var(--tick-3) + var(--space-s));
    line-height: 1.42;
    text-transform: uppercase;
    text-wrap: pretty;
  }
  .channels__summary::before,
  .channels__summary::after {
    content: "";
    position: absolute;
    left: calc(-1 * var(--step-offset));
    width: var(--tick-w);
    height: var(--tick-3);
    background: var(--red);
  }
  .channels__summary::before {
    top: 0;
  }
  .channels__summary::after {
    bottom: 0;
  }

  .channels__list {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  /* One face, three settings of its scan axis: hairlines, beads, swollen rows. The arrow gets heavier with it. */
  .channels__item {
    --channels-scan: var(--scan-thin);
    --channels-stroke: 0.06rem;
  }
  .channels__item--dots {
    --channels-scan: var(--scan-dots);
    --channels-stroke: 0.2rem;
  }
  .channels__item--heavy {
    --channels-scan: var(--scan-heavy);
    --channels-stroke: 0.3rem;
  }

  .channels__link {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 0.5em;
    min-height: var(--tap);
    padding-block: 0.16em;
    color: inherit;
    font-family: var(--font-scan);
    font-size: var(--display-link);
    font-weight: 400;
    font-variation-settings: "BLED" var(--bleed-off), "SCAN" var(--channels-scan);
    line-height: 1.2;
    text-decoration: none;
    text-shadow: 0 0 0.1rem var(--glow), 0 0 0.1rem var(--glow);
    text-transform: uppercase;
    transition: font-variation-settings var(--time-snap) var(--ease-snap);
  }
  .channels__arrow {
    flex: none;
    width: 0.9em;
    height: 0.56em;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: var(--channels-stroke);
    filter: drop-shadow(0 0 0.08rem var(--glow));
    transition: stroke-width var(--time-snap) var(--ease-snap), translate var(--time-snap) var(--ease-snap);
  }

  /* Hover tunes every link to the same thin setting and pushes the arrow on, in hard steps. */
  .channels__link:hover,
  .channels__link:focus-visible {
    font-variation-settings: "BLED" var(--bleed-off), "SCAN" var(--scan-hover);
    text-shadow: none;
  }
  .channels__link:hover .channels__arrow,
  .channels__link:focus-visible .channels__arrow {
    stroke-width: 0.08rem;
    translate: 0.35em 0;
    filter: none;
  }
  .channels__link:focus-visible {
    outline: var(--rule-double) solid var(--red);
    outline-offset: 0.2em;
  }

  @media (prefers-reduced-motion: reduce) {
    .channels__link,
    .channels__arrow {
      transition-duration: 0s;
    }
    .channels__link:hover .channels__arrow,
    .channels__link:focus-visible .channels__arrow {
      translate: none;
    }
  }
</style>

Similar components

Ledger

Ledger

Ruled trade list

Ruled trade list

Ruled lists

Ruled lists

Contents with buttons

Contents with buttons

Table of contents with progress

Table of contents with progress

News entry

News entry

News

News

Stockist list

Stockist list