kitbash Connect agent
Components

Rates list

Price list in the reading column: scattered heading, a centred line of copy, then rows of a capital name, a dotted leader that turns to spray, a price and a note. Each row is a link that clears on hover or focus.

Part of the style

Ink Bleed Serif

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --page: #ffffff;
  --ink: #040608;
  --paper: #ffffff;
  --paper-soft: rgba(255, 255, 255, 0.6);
}
</style>

<section class="rates">
  <svg class="rates__defs" width="0" height="0" aria-hidden="true" focusable="false">
    <filter id="rates-heading" x="-10%" y="-25%" width="120%" height="150%" color-interpolation-filters="sRGB">
      <feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="1" seed="5" />
      <feDisplacementMap in="SourceGraphic" scale="22" xChannelSelector="R" yChannelSelector="G" />
    </filter>
    <filter id="rates-grain" x="-5%" y="-25%" width="110%" height="150%" color-interpolation-filters="sRGB">
      <feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="1" seed="3" />
      <feDisplacementMap in="SourceGraphic" scale="11" xChannelSelector="R" yChannelSelector="G" />
    </filter>
  </svg>

  <h2 class="rates__title">Rates</h2>
  <p class="rates__lede">Every ticket comes with a towel, a locker key and all the barley tea you can drink.</p>

  <ul class="rates__list">
    <li class="rates__row">
      <a class="rates__link" href="#">
        <span class="rates__line rates__ink">
          <span class="rates__name">Morning soak</span>
          <span class="rates__leader"></span>
          <span class="rates__price">$14</span>
        </span>
        <span class="rates__note rates__ink">Two hours in the main hall before noon. The quietest water.</span>
      </a>
    </li>
    <li class="rates__row">
      <a class="rates__link" href="#">
        <span class="rates__line rates__ink">
          <span class="rates__name">The long afternoon</span>
          <span class="rates__leader"></span>
          <span class="rates__price">$22</span>
        </span>
        <span class="rates__note rates__ink">Come at one, leave when the lamps go on. Sauna included.</span>
      </a>
    </li>
    <li class="rates__row">
      <a class="rates__link" href="#">
        <span class="rates__line rates__ink">
          <span class="rates__name">Cedar tub, for four</span>
          <span class="rates__leader"></span>
          <span class="rates__price">$60</span>
        </span>
        <span class="rates__note rates__ink">The small room upstairs, ninety minutes, door closed.</span>
      </a>
    </li>
  </ul>
</section>

<style>
  .rates {
    padding: var(--space-m) var(--edge) var(--section-space);
  }
  .rates__defs {
    position: absolute;
  }

  .rates__title {
    margin: 0;
    font: inherit;
    font-size: var(--text-l);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-display);
    text-align: center;
    filter: url("#rates-heading");
  }
  .rates__lede {
    max-width: var(--measure);
    margin: var(--space-l) auto;
    line-height: var(--leading-tight);
    text-align: center;
    text-wrap: balance;
  }

  .rates__list {
    max-width: var(--measure);
    margin: 0 auto;
    padding: 0;
    list-style: none;
  }
  .rates__link {
    display: grid;
    gap: var(--space-s);
    padding: var(--space-m) 0;
    color: inherit;
    text-decoration: none;
  }
  .rates__link:focus-visible {
    outline: var(--rule) solid var(--ink);
    outline-offset: var(--rule);
  }

  /* A row sits scattered, dotted leader included, until it is pointed at. */
  .rates__ink {
    filter: url("#rates-grain");
  }
  .rates__link:hover .rates__ink,
  .rates__link:focus-visible .rates__ink {
    filter: none;
  }

  .rates__line {
    display: flex;
    align-items: baseline;
    gap: var(--space-s);
    text-transform: uppercase;
  }
  .rates__leader {
    flex: 1;
    min-width: var(--space-m);
    border-bottom: var(--rule) dotted var(--ink);
  }
  .rates__price {
    font-variant-numeric: tabular-nums;
  }

  /* On small screens the notes stay sharp and the heading takes the light scatter. */
  @media (max-width: 44rem) {
    .rates__title {
      filter: url("#rates-grain");
    }
    .rates__note {
      filter: none;
    }
  }
</style>

Similar components

Formats and sample

Formats and sample

Question wheel

Question wheel

Statement with pictures

Statement with pictures

Holding sheet

Holding sheet

Haze hero

Haze hero

Inquiry form

Inquiry form

Reed ribbon

Reed ribbon

Lens hero

Lens hero