kitbash Sign in Connect agent
Components

Appeal

Centred call to action between two ticked rules: a dotted-outline slab heading with a hatched shade, one heavy sentence and an underlined link.

Part of the style

Wood Type Playbill

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

Preview

Code
<style>
/* Goes after the pack's base.css */
@import url("https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;800&family=Newsreader:opsz,wght@6..72,400;6..72,600&display=swap");
:root {
  --page: #f15b29;
  --ink: #1d0c0b;
  --ink-mid: rgba(29, 12, 11, 0.8);
  --ink-soft: rgba(29, 12, 11, 0.5);
  --paper: #fd997b;
  --night: #592221;
  --poster-cream: #fd8f6d;
  --poster-cobalt: #7f0601;
  --poster-dusk: #b67064;
  --poster-red: #b46662;
  --hot: #a86d69;
  --plum: #180505;
  --tile-brick: #280607;
  --poster-lemon: #ad7472;
  --tile-olive: #987775;
  --poster-mint: #a37e7c;
  --tile-forest: #612a28;
  --tile-leaf: #ad6c68;
  --poster-neon: #a66b78;
  --poster-heather: #847174;
  --tile-violet: #7f0601;
  --tile-sky: #b46662;
  --font-display: "Newsreader", "Iowan Old Style", "Times New Roman", serif;
  --font-text: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
}
</style>

<section class="appeal">
  <div class="appeal__inner">
    <h2 class="appeal__heading" aria-label="Join the club">
      <svg class="appeal__type" viewBox="0 0 750 66" preserveAspectRatio="none" aria-hidden="true" focusable="false">
        <defs>
          <pattern id="appeal-hatch" width="3.2" height="3.2" patternUnits="userSpaceOnUse" patternTransform="rotate(28)">
            <rect class="appeal__hatch-line" width="1.1" height="3.2" />
          </pattern>
        </defs>
        <text class="appeal__shade" x="7" y="63.4" textLength="741.4" lengthAdjust="spacingAndGlyphs">JOIN THE CLUB</text>
        <text class="appeal__face" x="1" y="60" textLength="741.4" lengthAdjust="spacingAndGlyphs">JOIN THE CLUB</text>
      </svg>
    </h2>
    <p class="appeal__text">When you join Holler Press, you keep the presses turning, the ink cheap and the door open to anyone with something to say.</p>
    <a class="appeal__link" href="#">Become a member</a>
  </div>
</section>

<style>
  .appeal {
    padding: 0 var(--edge) var(--section-space);
  }
  .appeal__inner {
    display: grid;
    justify-items: center;
    gap: var(--space-l);
    padding: var(--space-xl) 0;
    text-align: center;
  }

  /* Rules made of short upright ticks, not a plain dotted border. */
  .appeal__inner::before,
  .appeal__inner::after {
    content: "";
    width: 100%;
    height: calc(var(--rule-thick) + 1px);
    background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px);
  }
  .appeal__inner::before {
    margin-bottom: var(--space-l);
  }
  .appeal__inner::after {
    margin-top: var(--space-l);
  }

  .appeal__heading {
    width: min(100%, 40rem);
    margin: 0 0 var(--space-s);
  }
  /* The slab is drawn at 100px in a box as tall as its capitals, then pulled to the width and height the layout gives it. */
  .appeal__type {
    display: block;
    width: 100%;
    aspect-ratio: 750 / calc(66 * var(--display-stretch));
    overflow: visible;
    font: 900 100px var(--font-display);
  }
  .appeal__face,
  .appeal__shade {
    stroke: var(--ink);
    stroke-width: 1.5px;
    stroke-dasharray: 1.5 2;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
  }
  .appeal__face {
    fill: var(--page);
  }
  .appeal__shade {
    fill: url(#appeal-hatch);
  }
  .appeal__hatch-line {
    fill: var(--ink);
  }

  .appeal__text {
    max-width: 54rem;
    margin: 0;
    font-size: var(--text-l);
    font-weight: 800;
    line-height: 1.2;
    text-wrap: balance;
  }
  .appeal__link {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    color: inherit;
    font-weight: 800;
    text-decoration: underline 2px currentColor;
    text-underline-offset: 0.22em;
    transition: text-decoration-color var(--time) var(--ease);
  }
  .appeal__link:hover,
  .appeal__link:focus-visible {
    text-decoration-color: transparent;
  }
  .appeal__link:focus-visible {
    outline: var(--rule-thick) solid var(--ink);
    outline-offset: 4px;
  }

  @media (prefers-reduced-motion: reduce) {
    .appeal__link {
      transition-duration: 0s;
    }
  }
</style>

Similar components

Visit strip

Visit strip

Catchphrase and tickets

Catchphrase and tickets

Two-way choice

Two-way choice

Closing call and horizon

Closing call and horizon

Cut-out shape feature

Cut-out shape feature

Black closer

Black closer

Drifting wall call

Drifting wall call

Coin rain call

Coin rain call