kitbash Sign in Connect agent
Components

Before you come

A ruled question list in the grotesk under a thin serif title; answers open in place and a round plus turns into a cross.

Part of the style

Thermal Spectrum Letters

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --ink: #fff2f1;
  --ink-soft: #e8aeac;
  --paper: #334493;
  --night: #fff3f2;
  --night-raised: #ffe2e0;
  --night-text: #5568ac;
  --line-night: #efc2c0;
  --heat-5: #a95858;
  --kelvin-mid: #8f6462;
  --heat-6: #8d5772;
  --kelvin-low: #935f79;
  --heat-7: #a95858;
  --blush: #8c6665;
  --heat-2: #99627e;
  --violet: #edb5d0;
  --heat-1: #86556e;
  --kelvin-high: #756c70;
  --heat-3: #a95858;
  --heat-4: #8d5772;
}
</style>

<section class="faq">
  <header class="faq__head">
    <h2 class="faq__title">Before you come</h2>
    <p class="faq__text">Anything not answered here, ask the crew at the gasholder gate.</p>
  </header>
  <div class="faq__list">
    <details class="faq__item" open>
      <summary class="faq__question">Will the cameras film me?<span class="faq__toggle" aria-hidden="true"></span></summary>
      <p class="faq__answer">They see heat, not faces. What reaches the wall is a warm shape among other warm shapes, and nothing is recorded after the doors close.</p>
    </details>
    <details class="faq__item">
      <summary class="faq__question">How warm is the hall?<span class="faq__toggle" aria-hidden="true"></span></summary>
      <p class="faq__answer">Around fourteen degrees at doors and close to twenty by midnight. Keep your coat; the cloakroom is free.</p>
    </details>
    <details class="faq__item">
      <summary class="faq__question">Can I bring children?<span class="faq__toggle" aria-hidden="true"></span></summary>
      <p class="faq__answer">Yes, on Ember night until nine. Under twelves come in free with a Candle or Tungsten pass.</p>
    </details>
    <details class="faq__item">
      <summary class="faq__question">Is the old gasworks step-free?<span class="faq__toggle" aria-hidden="true"></span></summary>
      <p class="faq__answer">Every room is on one floor, with a ramp at the north gate and quiet seats along the projection wall.</p>
    </details>
  </div>
</section>

<style>
  .faq {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: var(--gap);
    padding: var(--section-space) var(--edge);
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
  }
  .faq__title {
    margin: 0 0 var(--space-m);
    font-family: var(--font-serif);
    font-weight: 200;
    font-size: var(--serif-m);
    line-height: 1.02;
    letter-spacing: -0.02em;
  }
  .faq__text {
    margin: 0;
    max-width: 22em;
    color: var(--ink-soft);
    font-size: var(--text-s);
  }
  .faq__list {
    border-bottom: var(--rule) solid var(--ink);
  }
  .faq__item {
    border-top: var(--rule) solid var(--ink);
  }
  .faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-m);
    min-height: 64px;
    padding: var(--space-s) 0;
    font-size: var(--text-l);
    font-weight: 550;
    cursor: pointer;
    list-style: none;
  }
  .faq__question::-webkit-details-marker {
    display: none;
  }
  .faq__question:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
  }
  .faq__toggle {
    position: relative;
    flex: none;
    width: var(--tap);
    height: var(--tap);
    border: var(--rule) solid var(--ink);
    border-radius: var(--radius-round);
    transition: transform var(--t-lift) var(--ease), background-color var(--t-colour) ease;
  }
  .faq__toggle::before,
  .faq__toggle::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: var(--rule);
    background: var(--ink);
    transform: translate(-50%, -50%);
  }
  .faq__toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
  }
  .faq__item[open] .faq__toggle {
    transform: rotate(45deg);
    background-color: var(--heat-5);
  }
  .faq__answer {
    margin: 0;
    max-width: 38em;
    padding: 0 0 var(--space-m);
    color: var(--ink-soft);
  }

  @media (max-width: 52rem) {
    .faq {
      grid-template-columns: 1fr;
    }
    .faq__question {
      font-size: var(--text-m);
    }
  }
</style>

Similar components

Information accordion

Information accordion

Question rows

Question rows

Questions

Questions

Good-to-know list

Good-to-know list

Question slips

Question slips

Question wheel

Question wheel

Numbered questions

Numbered questions

Pill questions

Pill questions