kitbash Sign in Connect agent
Components

Matted diff feature

Numbered eyebrow, headline and lead, then a dark review window with a red and green diff set on a painted mat, and a right column of feature items.

Part of the style

Matted Dark Console

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --night: #000000;
  --night-raised: #020001;
  --night-panel: #0e0205;
  --night-deep: #020202;
  --line: #1c070e;
  --line-strong: #3b1523;
  --ink: #fdfff3;
  --ink-soft: #d8ff00;
  --ink-dim: #6d8200;
  --white: #fdfff3;
  --on-white: #000000;
  --mat: #5b2538;
  --mat-light: #fdfff3;
  --scrim: rgba(0, 0, 0, 0.4);
  --signal: #8c715c;
  --signal-wash: rgba(116, 90, 70, 0.12);
  --coral: #c8c3a2;
  --flare: #a9a171;
  --coral-wash: rgba(200, 195, 162, 0.1);
  --amber: #8b835c;
  --cobalt: #745a46;
}
</style>

<section class="feature">
  <header class="feature__head">
    <p class="feature__eyebrow">01 Ferrow Review</p>
    <h2 class="feature__title">Read every plan before it reads your bill</h2>
    <p class="feature__lead">Ferrow reads each change set against what is really running, flags drift and cost, and leaves one clear comment where your team already looks.</p>
  </header>

  <div class="feature__body">
    <figure class="feature__mat">
      <img class="feature__picture" src="assets/mat-harbor.jpg" alt="A hazy painted harbour with two sailboats under a pale sun" width="1200" height="599" loading="lazy">
      <div class="feature__window">
        <div class="feature__bar">
          <span class="feature__lang">TF</span>
          <span class="feature__path">modules/edge/balancer.tf</span>
          <span class="feature__delta"><span class="is-del">-3</span> <span class="is-add">+11</span></span>
          <span class="feature__viewed">Mark viewed</span>
        </div>
        <ol class="feature__code">
          <li><span class="feature__ln">21</span>resource "aws_lb_listener" "https" {</li>
          <li><span class="feature__ln">22</span>  port     = 443</li>
          <li class="is-del"><span class="feature__ln">23</span>- default_action { target = var.legacy_pool }</li>
          <li class="is-add"><span class="feature__ln">23</span>+ default_action { target = aws_lb_target_group.blue.arn }</li>
          <li class="is-add"><span class="feature__ln">24</span>+ drain_seconds = 30</li>
          <li><span class="feature__ln">25</span>}</li>
        </ol>
        <div class="feature__reply">
          <span class="feature__avatar" aria-hidden="true"></span>
          <div>
            <p class="feature__who">ferrow-bot <span class="feature__chip">bot</span> <span class="feature__when">checked now</span></p>
            <p class="feature__said">Verified. The old pool drains in 30 s and no region loses its health check during the swap.</p>
          </div>
        </div>
      </div>
      <div class="feature__strip" aria-hidden="true"></div>
    </figure>

    <ul class="feature__list">
      <li><button class="feature__item is-active" type="button"><span class="feature__name">Reads what is running</span><span class="feature__desc">Plans are checked against live state, not only the diff, so drift shows up before the merge.</span></button></li>
      <li><button class="feature__item" type="button"><span class="feature__name">Talks to your agents</span><span class="feature__desc">Comments are written so a coding agent can pick them up and push the fix.</span></button></li>
      <li><button class="feature__item" type="button"><span class="feature__name">Learns your house rules</span><span class="feature__desc">Approve or dismiss once; the next review remembers.</span></button></li>
      <li><button class="feature__item" type="button"><span class="feature__name">Costs on every change</span><span class="feature__desc">A monthly figure next to each plan, in the currency your finance team uses.</span></button></li>
    </ul>
  </div>
</section>

<style>
  .feature { padding: var(--section-space) var(--edge); }
  .feature__head { max-width: 52rem; margin-bottom: var(--space-xl); }
  .feature__eyebrow { margin: 0 0 var(--space-m); color: var(--signal); font: 400 12px/1.5 var(--font-mono); text-transform: uppercase; }
  .feature__title { margin: 0 0 var(--space-l); color: var(--ink); font: 500 var(--display-s)/var(--leading-tight) var(--font-display); letter-spacing: -0.02em; }
  .feature__lead { margin: 0; color: var(--ink-soft); font-size: var(--text-l); line-height: 1.4; }

  .feature__body { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
  .feature__mat {
    position: relative;
    margin: 0;
    padding: clamp(20px, 3.4vw, 44px) clamp(16px, 3vw, 40px) 0;
    border-radius: var(--radius-hair);
    background: var(--mat);
    overflow: hidden;
  }
  .feature__picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.6) brightness(0.62) sepia(0.25);
  }
  .feature__window {
    position: relative;
    border: var(--rule) solid var(--line-strong);
    border-bottom: 0;
    border-radius: var(--radius-window) var(--radius-window) 0 0;
    background: var(--night-raised);
    box-shadow: var(--window-shadow);
    font-size: var(--text-s);
  }
  .feature__bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px var(--space-m);
    border-bottom: var(--rule) solid var(--line);
    background: var(--night-panel);
    border-radius: var(--radius-window) var(--radius-window) 0 0;
    white-space: nowrap;
    overflow: hidden;
  }
  .feature__lang { padding: 0 4px; border-radius: var(--radius-hair); background: var(--cobalt); color: var(--white); font: 500 10px/16px var(--font-mono); }
  .feature__path { color: var(--ink); font-family: var(--font-mono); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
  .feature__delta { font-family: var(--font-mono); font-size: 12px; }
  .feature__delta .is-del { color: var(--coral); }
  .feature__delta .is-add { color: var(--signal); }
  .feature__viewed { margin-left: auto; padding: 2px 8px; border: var(--rule) solid var(--line-strong); border-radius: var(--radius-chip); color: var(--ink-dim); font-size: var(--text-xs); }
  .feature__code { margin: 0; padding: var(--space-s) 0; list-style: none; font: 400 12px/1.9 var(--font-mono); color: var(--ink-soft); }
  .feature__code li { display: flex; padding-right: var(--space-m); white-space: pre; overflow: hidden; text-overflow: ellipsis; }
  .feature__code li.is-del { background: var(--coral-wash); color: var(--coral); }
  .feature__code li.is-add { background: var(--signal-wash); color: var(--signal); }
  .feature__ln { flex: none; width: 44px; padding-right: 12px; color: var(--ink-dim); text-align: right; }
  .feature__reply { display: flex; gap: 12px; margin: var(--space-s) var(--space-m) 0; padding: var(--space-m); border: var(--rule) solid var(--line); border-bottom: 0; border-radius: var(--radius-window) var(--radius-window) 0 0; background: var(--night); }
  .feature__avatar { flex: none; width: 24px; height: 24px; border-radius: var(--radius-chip); background: var(--signal); box-shadow: inset 0 0 0 7px var(--night); outline: 1.5px solid var(--signal); outline-offset: -1.5px; }
  .feature__who { margin: 0 0 6px; color: var(--ink); font-weight: 500; }
  .feature__chip { margin-left: 4px; padding: 0 5px; border: var(--rule) solid var(--line-strong); border-radius: var(--radius-chip); color: var(--ink-dim); font: 400 var(--text-xs)/1.5 var(--font-mono); }
  .feature__when { color: var(--ink-dim); font-weight: 400; font-size: var(--text-xs); margin-left: 4px; }
  .feature__said { margin: 0; color: var(--ink); font-size: var(--text-m); line-height: 1.45; }
  .feature__strip {
    position: relative;
    height: var(--strip);
    margin: 0 calc(clamp(16px, 3vw, 40px) * -1);
    background: linear-gradient(90deg,
      var(--signal) 0 2%, var(--line-strong) 2% 30%, var(--cobalt) 30% 34%, var(--night-panel) 34% 60%,
      var(--flare) 60% 66%, var(--mat-light) 66% 100%);
  }

  .feature__list { display: grid; gap: var(--space-l); margin: 0; padding: var(--space-l) 0 0; list-style: none; }
  .feature__item {
    display: grid;
    gap: 6px;
    width: 100%;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
  }
  .feature__name {
    justify-self: start;
    color: var(--ink);
    font-size: var(--text-m);
    font-weight: 500;
    text-decoration: underline dashed var(--ink-dim);
    text-underline-offset: 5px;
    transition: text-decoration-color var(--quick) var(--ease);
  }
  .feature__item.is-active .feature__name, .feature__item:hover .feature__name { text-decoration-color: transparent; }
  .feature__desc { color: var(--ink-dim); font-size: var(--text-m); line-height: 1.45; transition: color var(--quick) var(--ease); }
  .feature__item.is-active .feature__desc { color: var(--ink-soft); }
  .feature__item:focus-visible { outline: var(--rule) solid var(--signal); outline-offset: 4px; }

  @media (max-width: 60rem) {
    .feature__body { grid-template-columns: 1fr; }
  }
</style>

<script>
  (() => {
    document.querySelectorAll('.feature').forEach((root) => {
      const items = [...root.querySelectorAll('.feature__item')];
      items.forEach((item) => item.addEventListener('click', () => {
        items.forEach((other) => other.classList.toggle('is-active', other === item));
      }));
    });
  })();
</script>

Similar components

Window glimpse and statement

Window glimpse and statement

Centred statement

Centred statement

Black half, photo half

Black half, photo half

Tilting statement

Tilting statement

Night Room Statement

Night Room Statement

Statement

Statement

Dark ask panel

Dark ask panel

Filling statement

Filling statement