kitbash Sign in Connect agent
Components

Three movements

A white card with three outlined mini dials whose needles move in different ways on the same beat: a snap with a bounce, an eased sway and an even sweep, each with a name and a one-line note.

Part of the style

Quiet Instrument

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --page: #f1f1f1;
  --card: #ffffff;
  --ink: #171717;
  --ink-mid: rgba(23, 23, 23, 0.7);
  --ink-soft: #8b8b8b;
  --ink-faint: #787878;
  --chip: #ececec;
  --emboss: #dddddd;
  --night: #151515;
  --graphite: #3d3d3d;
  --on-dark: #f8f8f8;
  --mint-soft: #eaeaea;
  --face-paper: #f6f6f6;
  --face-paper-ink: #3f3f3f;
  --face-glacier: #c9c9c9;
  --face-glacier-ink: #4e4e4e;
  --face-harbour-ink: #ededed;
  --chrome-light: #ffffff;
  --chrome: #e4e4e4;
  --chrome-dark: #a1a1a1;
  --lume: #a78113;
  --mint: #908468;
  --aqua: #977d44;
  --lume-ice: #978660;
  --mint-ink: #241900;
  --face-court: #8e7742;
  --green: #7c652f;
  --deep: #8c6a02;
  --deep-dark: #755906;
  --lume-lime: #908468;
  --face-court-ink: #948a73;
  --face-harbour: #a78113;
}
</style>

<section class="modes">
  <div class="modes__card">
    <h2 class="modes__title">Three ways to feel a beat.</h2>
    <p class="modes__text">Snap to every click, sway like brass on a spring, or glide through the bar without a sound.</p>

    <ul class="modes__list">
      <li class="modes__item">
        <svg class="modes__dial modes__dial--click" viewBox="0 0 200 200" aria-hidden="true" focusable="false">
          <defs>
            <rect id="modes-marker" class="modes__marker" x="96.5" y="5" width="7" height="21" rx="3.5" />
            <g id="modes-ring">
              <circle class="modes__ticks" cx="100" cy="100" r="87" pathLength="360" />
              <use href="#modes-marker" />
              <use href="#modes-marker" transform="rotate(30 100 100)" />
              <use href="#modes-marker" transform="rotate(60 100 100)" />
              <use href="#modes-marker" transform="rotate(90 100 100)" />
              <use href="#modes-marker" transform="rotate(120 100 100)" />
              <use href="#modes-marker" transform="rotate(150 100 100)" />
              <use href="#modes-marker" transform="rotate(180 100 100)" />
              <use href="#modes-marker" transform="rotate(210 100 100)" />
              <use href="#modes-marker" transform="rotate(240 100 100)" />
              <use href="#modes-marker" transform="rotate(270 100 100)" />
              <use href="#modes-marker" transform="rotate(300 100 100)" />
              <use href="#modes-marker" transform="rotate(330 100 100)" />
            </g>
          </defs>
          <use href="#modes-ring" />
          <line class="modes__needle" x1="100" y1="118" x2="100" y2="20" />
          <circle class="modes__pivot" cx="100" cy="100" r="4" />
        </svg>
        <span class="modes__name">Click</span>
        <span class="modes__note">Snaps on the beat</span>
      </li>
      <li class="modes__item">
        <svg class="modes__dial modes__dial--swing" viewBox="0 0 200 200" aria-hidden="true" focusable="false">
          <use href="#modes-ring" />
          <line class="modes__needle" x1="100" y1="118" x2="100" y2="20" />
          <circle class="modes__pivot" cx="100" cy="100" r="4" />
        </svg>
        <span class="modes__name">Swing</span>
        <span class="modes__note">Sways like a pendulum</span>
      </li>
      <li class="modes__item">
        <svg class="modes__dial modes__dial--glide" viewBox="0 0 200 200" aria-hidden="true" focusable="false">
          <use href="#modes-ring" />
          <line class="modes__needle" x1="100" y1="118" x2="100" y2="20" />
          <circle class="modes__pivot" cx="100" cy="100" r="4" />
        </svg>
        <span class="modes__name">Glide</span>
        <span class="modes__note">One turn for every bar</span>
      </li>
    </ul>
  </div>
</section>

<style>
  .modes {
    padding: calc(var(--gutter) / 2) var(--edge);
  }
  .modes__card {
    display: grid;
    justify-items: center;
    padding: var(--card-pad) var(--card-pad-s);
    border-radius: var(--radius-card);
    background: var(--card);
    text-align: center;
  }
  .modes__title {
    margin: 0 0 var(--space-s);
    font-size: var(--head-s);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: var(--tracking-head);
    text-wrap: balance;
  }
  .modes__text {
    max-width: 30rem;
    margin: 0;
    font-size: var(--text-l);
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-wrap: balance;
  }
  .modes__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 12.5rem));
    justify-content: center;
    gap: clamp(0.75rem, 4vw, 3rem);
    width: 100%;
    margin: var(--space-l) 0 0;
    padding: 0;
    list-style: none;
  }
  .modes__item {
    display: grid;
    justify-items: center;
  }
  .modes__dial {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: var(--space-s);
  }
  .modes__ticks {
    fill: none;
    stroke: color-mix(in srgb, var(--ink-faint) 45%, transparent);
    stroke-width: 9;
    stroke-dasharray: 1.1 4.9;
    stroke-dashoffset: 0.55;
  }
  .modes__marker {
    fill: var(--card);
    stroke: color-mix(in srgb, var(--ink-faint) 55%, var(--card));
    stroke-width: 1.4;
  }
  .modes__needle {
    stroke: var(--ink);
    stroke-width: 2.6;
    stroke-linecap: round;
    transform-origin: 100px 100px;
  }
  .modes__pivot {
    fill: var(--card);
    stroke: var(--ink);
    stroke-width: 2;
  }
  .modes__name {
    font-size: var(--text-l);
    font-weight: 500;
    letter-spacing: -0.01em;
  }
  .modes__note {
    color: var(--ink-mid);
    font-size: var(--text-s);
    line-height: 1.3;
    text-wrap: balance;
  }

  /* One needle per temperament: a snap with a little bounce, an eased sway, an even sweep. */
  .modes__dial--click .modes__needle {
    animation: modes-click calc(var(--beat) * 2) var(--ease-spring) infinite;
  }
  .modes__dial--swing .modes__needle {
    animation: modes-swing var(--beat) var(--ease-swing) infinite alternate;
  }
  .modes__dial--glide .modes__needle {
    animation: modes-glide calc(var(--beat) * 4) linear infinite;
  }
  @keyframes modes-click {
    0%,
    36% {
      transform: rotate(32deg);
    }
    50%,
    86% {
      transform: rotate(-32deg);
    }
    100% {
      transform: rotate(32deg);
    }
  }
  @keyframes modes-swing {
    from {
      transform: rotate(-32deg);
    }
    to {
      transform: rotate(32deg);
    }
  }
  @keyframes modes-glide {
    to {
      transform: rotate(360deg);
    }
  }

  @media (max-width: 40rem) {
    .modes__card {
      padding-inline: var(--space-s);
      border-radius: var(--radius-window);
    }
    .modes__name {
      font-size: var(--text-m);
    }
    .modes__note {
      font-size: var(--text-xs);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .modes__dial .modes__needle {
      animation: none;
    }
    .modes__dial--click .modes__needle {
      transform: rotate(32deg);
    }
    .modes__dial--swing .modes__needle {
      transform: rotate(12deg);
    }
    .modes__dial--glide .modes__needle {
      transform: rotate(48deg);
    }
  }
</style>

Similar components

Feature cells

Feature cells

Work cards

Work cards

Project panes

Project panes

Card rail

Card rail

Dispatches

Dispatches

Colour cards

Colour cards

Colour specimen

Colour specimen

Edition slips

Edition slips