kitbash Sign in Connect agent
Components

Insights

Rows of serif essay titles with an outlined season pill and a small dark Read the article button, closed by a wide outlined View all insights button.

Part of the style

Cut-Out Playhouse

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --page: #d89a98;
  --paper: #eeaaa8;
  --ink: #000000;
  --ink-soft: #1e1316;
  --ink-faint: #5f4141;
  --shadow: rgba(0, 0, 0, 0.22);
  --cut-cream: #d29593;
  --cut-steel: #7b5655;
  --cut-coal: #010000;
  --marker: #927271;
  --cut-ochre: #8a7271;
  --cut-moss: #716161;
  --cut-sky: #966969;
  --cut-rust: #7a5b5a;
  --cut-skin: #bba8a7;
  --cut-plum: #7d5352;
}
</style>

<section class="insights" aria-labelledby="insights-heading">
  <h2 class="insights__heading" id="insights-heading">Insights</h2>
  <ul class="insights__list">
    <li class="insights__row">
      <a class="insights__title" href="#">What a chorus knows that a soloist forgets</a>
      <span class="insights__tag">Season 27–28</span>
      <a class="insights__button" href="#" aria-label="Read the article: What a chorus knows that a soloist forgets">Read the article</a>
    </li>
    <li class="insights__row">
      <a class="insights__title" href="#">Rehearsing in a building that leaks</a>
      <span class="insights__tag">Backstage</span>
      <a class="insights__button" href="#" aria-label="Read the article: Rehearsing in a building that leaks">Read the article</a>
    </li>
    <li class="insights__row">
      <a class="insights__title" href="#">Eleven ways to stage the weather</a>
      <span class="insights__tag">Season 27–28</span>
      <a class="insights__button" href="#" aria-label="Read the article: Eleven ways to stage the weather">Read the article</a>
    </li>
  </ul>
  <a class="insights__all" href="#">View all insights</a>
</section>

<style>
  .insights {
    padding: var(--space-l) var(--edge) var(--space-xl);
    background: var(--paper);
    color: var(--ink-soft);
  }
  .insights__heading {
    margin: 0;
    padding-bottom: var(--space-s);
    border-bottom: var(--hairline) solid var(--ink-soft);
    font-size: var(--text-s);
    font-weight: 400;
  }
  .insights__list {
    margin: 0 0 var(--space-m);
    padding: 0;
    list-style: none;
  }
  .insights__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 12rem auto;
    align-items: center;
    column-gap: var(--space-m);
    padding: var(--space-m) 0;
    border-bottom: var(--hairline) solid var(--ink-soft);
  }
  .insights__title {
    display: flex;
    align-items: center;
    min-height: var(--tap);
    color: var(--ink-soft);
    font-family: var(--font-serif);
    font-size: var(--serif-m);
    line-height: 1;
    letter-spacing: var(--tracking-serif);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
    text-decoration-color: transparent;
    transition: text-decoration-color var(--slow) ease, color var(--slow) ease;
  }
  .insights__title:hover,
  .insights__title:focus-visible {
    color: var(--ink);
    text-decoration-color: currentColor;
    outline: none;
  }
  .insights__tag {
    justify-self: start;
    padding: 0.1rem 0.5rem 0.15rem;
    border: var(--hairline) solid var(--ink-soft);
    border-radius: var(--radius-pill);
    font-size: var(--text-s);
    line-height: 1.3;
    white-space: nowrap;
  }
  .insights__button {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    padding: 0 var(--space-m);
    border-radius: var(--radius-button);
    background: var(--ink-soft);
    color: var(--paper);
    font-size: var(--text-s);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--slow) ease;
  }
  .insights__button:hover,
  .insights__button:focus-visible { background: var(--ink); }
  .insights__all {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.5rem;
    border: var(--hairline) solid var(--ink-soft);
    border-radius: var(--radius-button);
    color: var(--ink-soft);
    text-decoration: none;
    transition: background-color var(--slow) ease, border-color var(--slow) ease;
  }
  .insights__all:hover,
  .insights__all:focus-visible { background: var(--page); border-color: var(--ink); }

  @media (max-width: 48rem) {
    .insights__row {
      grid-template-columns: 1fr;
      row-gap: var(--space-m);
      padding: var(--space-l) 0;
    }
    .insights__title { font-size: var(--serif-l); line-height: 1.02; }
    .insights__tag { grid-row: 1; font-size: var(--text-m); }
    .insights__button { display: none; }
  }
</style>

Similar components

Ray lab

Ray lab

Table of contents with progress

Table of contents with progress

Investment ledger

Investment ledger

Entry columns

Entry columns

Ringed services

Ringed services

Service rows and cards

Service rows and cards

Ruled trade list

Ruled trade list

Services list

Services list