kitbash Sign in Connect agent
Components

Mark and standfirst

A large orange mark, a heavy tight title, a big grey standfirst and two orange pills, rising in one after another at load.

Part of the style

Charcoal Tile Directory

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --paper: #334493;
  --card: #3b4d9a;
  --card-hi: #4456a0;
  --well: #111461;
  --ink: #fff2f1;
  --ink-soft: #fbbcba;
  --ink-faint: #5d70b2;
  --tile: #fff2f1;
  --tile-ink: #334493;
  --tile-soft: #5d70b2;
  --tile-well: #fee4e3;
  --on-accent: #fff2f1;
  --line: rgba(255, 242, 241, 0.08);
  --line-strong: rgba(255, 242, 241, 0.22);
  --glass: rgba(51, 68, 147, 0.82);
  --skeleton: #475aa2;
  --accent: #c4706f;
  --accent-press: #af5f5f;
}
</style>

<section class="hero">
  <div class="hero__inner">
    <svg class="hero__mark hero__item" viewBox="0 0 40 40" role="img" aria-label="Oddment">
      <path d="M12 6h18a6 6 0 0 1 6 6v16a6 6 0 0 1-6 6H12L4 25.5v-11Z" fill="var(--accent)"/>
      <circle cx="13" cy="20" r="3.4" fill="var(--paper)"/>
      <path d="M21 15h9M21 20h9M21 25h5" stroke="var(--paper)" stroke-width="2.6" stroke-linecap="round"/>
    </svg>
    <h1 class="hero__title hero__item">Oddment</h1>
    <p class="hero__lede hero__item">Handpicked objects, odd furniture, glazed things and printed matter, tagged and shelved for collectors, makers and the merely curious.</p>
    <div class="hero__actions hero__item">
      <a class="hero__pill" href="#">Suggest</a>
      <a class="hero__pill" href="#">Open a shelf</a>
    </div>
    <p class="hero__count hero__item"><span class="hero__dot" aria-hidden="true"></span>412 objects shelved, 9 added this week</p>
  </div>
</section>

<style>
  .hero {
    padding: clamp(72px, 12vw, 140px) var(--edge) var(--section-space);
  }
  .hero__inner {
    width: min(100%, var(--page-width));
    margin: 0 auto;
  }
  .hero__mark {
    width: clamp(72px, 10vw, 104px);
    height: auto;
    margin-bottom: var(--space-l);
  }
  .hero__title {
    margin: 0 0 var(--space-m);
    font-family: var(--font-display);
    font-size: var(--display-l);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: var(--track-display);
  }
  .hero__lede {
    max-width: 30em;
    margin: 0 0 var(--space-l);
    color: var(--ink);
    font-size: clamp(18px, 2.2vw, var(--text-l));
    line-height: 1.34;
  }
  .hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-s);
  }
  .hero__pill {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: var(--radius-round);
    background: var(--accent);
    color: var(--on-accent);
    font-size: var(--text-m);
    font-weight: 600;
    text-decoration: none;
    transition: transform var(--quick) var(--ease-press), background-color var(--quick) var(--ease-press);
  }
  .hero__pill:hover { background: var(--accent-press); }
  .hero__pill:active { transform: scale(0.96); }
  .hero__pill:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
  .hero__count {
    display: flex;
    align-items: center;
    gap: var(--space-s);
    margin: var(--space-xl) 0 0;
    color: var(--ink-soft);
    font-size: var(--text-s);
  }
  .hero__dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-round);
    background: var(--accent);
    animation: hero-blink 2.4s var(--ease-std) infinite;
  }
  .hero__item {
    animation: hero-enter 700ms var(--ease) both;
    animation-delay: calc(var(--order, 0) * 90ms + 120ms);
  }
  .hero__count.hero__item { animation-name: hero-enter; }
  @keyframes hero-enter {
    from { opacity: 0; transform: translateY(16px); }
  }
  @keyframes hero-blink {
    50% { opacity: 0.25; }
  }
  @media (prefers-reduced-motion: reduce) {
    .hero__item, .hero__dot { animation: none; }
  }
</style>

<script>
(() => {
  for (const hero of document.querySelectorAll('.hero')) {
    hero.querySelectorAll('.hero__item').forEach((item, order) => item.style.setProperty('--order', order));
  }
})();
</script>

Similar components

Hero with card feed

Hero with card feed

Device hero

Device hero

Hero

Hero

Centred hero with foil word

Centred hero with foil word

Spinning coin hero

Spinning coin hero

Huge line over a photograph

Huge line over a photograph

Opening line

Opening line

Table hero

Table hero