kitbash Sign in Connect agent
Components

Sky panel with tabs

A painted sky behind a frosted three-tab bar; a white document window sits in the sky and changes with the tab.

Part of the style

Sky Pill App Window

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --paper: #ff48a4;
  --surface: #fca5c8;
  --ink: #121212;
  --ink-soft: #480523;
  --ink-faint: #b53c76;
  --line: #f3469c;
  --wash: #f86bab;
  --on-accent: #fca5c8;
  --coral-tint: #f5479e;
  --veil: rgba(255, 72, 164, 0.82);
  --accent: #de4b92;
  --accent-deep: #a71f67;
  --accent-ink: #b05f82;
  --accent-tint: #fff7fa;
  --steel: #b16d89;
  --coral: #884262;
  --go: #ac7391;
  --go-tint: #908389;
  --star: #de4b92;
}
</style>

<section class="showcase">
  <div class="showcase__inner">
    <p class="showcase__intro">Most planners forget what grows where. Mossbank remembers every bed, every tray and every delivery, and writes the next step for you in two ways.</p>
    <div class="showcase__panel">
      <div class="showcase__sky" aria-hidden="true"></div>
      <div class="showcase__tabs" role="tablist" aria-label="What the notebook does">
        <button class="showcase__tab is-active" type="button" role="tab" aria-selected="true" aria-controls="showcase-a" id="showcase-tab-a">
          <svg viewBox="0 0 20 20" width="20" height="20" aria-hidden="true"><rect x="3" y="5" width="14" height="11" rx="3" fill="none" stroke="currentColor" stroke-width="1.5"/><path d="M7 10h.01M13 10h.01M8 13h4M10 2v3" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/></svg>
          Nothing to install
        </button>
        <button class="showcase__tab" type="button" role="tab" aria-selected="false" aria-controls="showcase-b" id="showcase-tab-b">
          <svg viewBox="0 0 20 20" width="20" height="20" aria-hidden="true"><path d="M4 5h12M4 10h9M4 15h6" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/></svg>
          Morning list
        </button>
        <button class="showcase__tab" type="button" role="tab" aria-selected="false" aria-controls="showcase-c" id="showcase-tab-c">
          <svg viewBox="0 0 20 20" width="20" height="20" aria-hidden="true"><circle cx="10" cy="10" r="7" fill="none" stroke="currentColor" stroke-width="1.5"/><path d="M7 10.5l2 2 4-5" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></svg>
          Order sheet
        </button>
      </div>

      <div class="showcase__window">
        <div class="showcase__bar">
          <span class="showcase__crumb">Seedling benches <span aria-hidden="true">⌄</span></span>
          <span class="showcase__updated">Updated 3 days ago</span>
          <span class="showcase__copy">Copy link</span>
          <span class="showcase__share">Share</span>
        </div>

        <div class="showcase__pane is-active" role="tabpanel" id="showcase-a" aria-labelledby="showcase-tab-a">
          <h3 class="showcase__title">Seedling benches</h3>
          <dl class="showcase__meta">
            <dt>Created</dt><dd>Tue, 2 Mar, 06:40 → 07:05</dd>
            <dt>Bench</dt><dd><span class="showcase__flag"></span><strong>North house</strong>, rows A to F</dd>
            <dt>Sensor</dt><dd>Soil 61% · Air 17.2° · Light 9.4 h</dd>
          </dl>
          <p class="showcase__para">Nothing to plug in and nothing to calibrate: the notebook reads your existing sensors and the notes you already write, then keeps them together under each bench.</p>
        </div>

        <div class="showcase__pane" role="tabpanel" id="showcase-b" aria-labelledby="showcase-tab-b" hidden>
          <h3 class="showcase__title">Morning list, Wednesday</h3>
          <ul class="showcase__list">
            <li>Water rows A and B before 08:00, soil under 55%</li>
            <li>Prick out the basil, 3 trays, into 9 cm pots</li>
            <li>Move the chilli trays off the cold end of the bench</li>
            <li>Photograph plants 9 and 17 for the leaf-curl log</li>
          </ul>
        </div>

        <div class="showcase__pane" role="tabpanel" id="showcase-c" aria-labelledby="showcase-tab-c" hidden>
          <h3 class="showcase__title">Order sheet, week 10</h3>
          <div class="showcase__order">
            <img class="showcase__plate" src="assets/fern-plate.jpg" alt="A pressed fern specimen plate" width="120" height="178">
            <ul class="showcase__list">
              <li>Peat-free compost, 40 bags, Friday drop</li>
              <li>Moonwort and adder's tongue, 2 trays each</li>
              <li>Horticultural fleece, one 10 m roll</li>
            </ul>
          </div>
        </div>
      </div>
    </div>
  </div>
</section>

<style>
  .showcase {
    padding: var(--space-xl) var(--edge) var(--section-space);
  }
  .showcase__inner {
    max-width: var(--column);
    margin: 0 auto;
  }
  .showcase__intro {
    max-width: 52em;
    margin: 0 0 var(--space-l);
    color: var(--ink-soft);
    font-size: var(--text-m);
  }
  .showcase__panel {
    --picture: url("assets/sky-b.jpg");
    position: relative;
    overflow: hidden;
    border: var(--hairline) solid var(--line);
    border-radius: var(--radius-m);
    min-height: 560px;
    isolation: isolate;
  }
  .showcase__sky {
    position: absolute;
    inset: -40px;
    z-index: -1;
    background: var(--picture) center 0% / cover no-repeat;
    filter: blur(10px) saturate(1.25) brightness(1.12);
  }
  .showcase__tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: color-mix(in srgb, var(--steel) 88%, transparent);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
  .showcase__tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-s);
    min-height: 64px;
    padding: 0 var(--space-m);
    border: 0;
    border-left: var(--hairline) solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    font: 600 var(--text-m) / 1.2 var(--font-body);
    cursor: pointer;
    transition: color var(--quick) var(--ease), background-color var(--quick) var(--ease);
  }
  .showcase__tab:first-child {
    border-left: 0;
  }
  .showcase__tab:hover {
    color: var(--on-accent);
  }
  .showcase__tab.is-active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--on-accent);
  }
  .showcase__tab:focus-visible {
    outline: 2px solid var(--on-accent);
    outline-offset: -4px;
  }
  .showcase__window {
    position: absolute;
    left: 0;
    right: 9%;
    top: 132px;
    bottom: 0;
    padding-bottom: var(--space-xl);
    border-top-right-radius: var(--radius-m);
    background: var(--surface);
    box-shadow: var(--shadow-window);
    overflow: hidden;
  }
  .showcase__bar {
    display: flex;
    align-items: center;
    gap: var(--space-s);
    padding: var(--space-s) var(--space-m);
    font-size: var(--text-s);
  }
  .showcase__crumb {
    font-weight: 500;
  }
  .showcase__updated {
    margin-left: auto;
    color: var(--ink-faint);
  }
  .showcase__copy,
  .showcase__share {
    padding: var(--space-xs) 10px;
    border-radius: var(--radius-s);
    line-height: 1.4;
  }
  .showcase__copy {
    border: var(--hairline) solid var(--line);
  }
  .showcase__share {
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 500;
  }
  .showcase__pane {
    max-width: 640px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-l) 0;
    animation: showcase-in var(--move) var(--ease);
  }
  .showcase__pane[hidden] {
    display: none;
  }
  @keyframes showcase-in {
    from { opacity: 0; transform: translateY(12px); }
  }
  .showcase__title {
    margin: 0 0 var(--space-l);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: var(--track-tight);
  }
  .showcase__meta {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: var(--space-m) var(--space-m);
    margin: 0 0 var(--space-l);
    font-size: var(--text-s);
  }
  .showcase__meta dt {
    color: var(--ink-soft);
  }
  .showcase__meta dd {
    margin: 0;
    color: var(--ink-soft);
  }
  .showcase__meta strong {
    color: var(--ink);
    font-weight: 500;
  }
  .showcase__flag {
    display: inline-block;
    margin-right: 6px;
    vertical-align: -3px;
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: var(--star);
  }
  .showcase__para {
    margin: 0;
    padding-top: var(--space-m);
    border-top: var(--hairline) solid var(--line);
    color: var(--ink);
    font-size: var(--text-s);
    line-height: 1.7;
  }
  .showcase__list {
    margin: 0;
    padding-left: 1.1em;
    font-size: var(--text-s);
    line-height: 1.6;
  }
  .showcase__list li + li {
    margin-top: var(--space-s);
  }
  .showcase__order {
    display: flex;
    gap: var(--space-l);
    align-items: flex-start;
  }
  .showcase__plate {
    flex: none;
    width: 120px;
    height: 178px;
    border: var(--hairline) solid var(--line);
    border-radius: var(--radius-s);
    object-fit: cover;
  }

  @media (max-width: 640px) {
    .showcase__panel {
      min-height: 540px;
    }
    .showcase__tabs {
      grid-template-columns: 1fr;
    }
    .showcase__tab {
      justify-content: flex-start;
      min-height: 48px;
      border-left: 0;
      border-top: var(--hairline) solid rgba(255, 255, 255, 0.12);
    }
    .showcase__window {
      top: 168px;
      right: 0;
    }
    .showcase__updated,
    .showcase__copy {
      display: none;
    }
    .showcase__pane {
      padding: var(--space-l) var(--space-m) 0;
    }
    .showcase__meta {
      grid-template-columns: 1fr;
      gap: var(--space-xs);
    }
    .showcase__meta dd {
      margin-bottom: var(--space-s);
    }
    .showcase__plate {
      width: 80px;
      height: 118px;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .showcase__pane {
      animation: none;
    }
  }
</style>

<script>
  (() => {
    for (const root of document.querySelectorAll('.showcase')) {
      const tabs = [...root.querySelectorAll('.showcase__tab')];
      const panes = [...root.querySelectorAll('.showcase__pane')];
      const crumb = root.querySelector('.showcase__crumb');
      const choose = (index) => {
        tabs.forEach((tab, i) => {
          tab.classList.toggle('is-active', i === index);
          tab.setAttribute('aria-selected', String(i === index));
        });
        panes.forEach((pane, i) => {
          pane.hidden = i !== index;
          pane.classList.toggle('is-active', i === index);
        });
        const title = panes[index].querySelector('.showcase__title');
        if (crumb && title) crumb.firstChild.textContent = title.textContent + ' ';
      };
      tabs.forEach((tab, i) => {
        tab.addEventListener('click', () => choose(i));
        tab.addEventListener('keydown', (event) => {
          if (event.key !== 'ArrowRight' && event.key !== 'ArrowLeft') return;
          const next = (i + (event.key === 'ArrowRight' ? 1 : tabs.length - 1)) % tabs.length;
          choose(next);
          tabs[next].focus();
        });
      });
    }
  })();
</script>

Similar components

Segmented showcase

Segmented showcase

App screen showcase

App screen showcase

Exposure dial

Exposure dial

Ink switcher

Ink switcher

Showcase with progress tabs

Showcase with progress tabs

Usage calculator

Usage calculator

Panel slides

Panel slides

Collections

Collections