kitbash Sign in Connect agent
Components

Workspace shelf

A grid of desk objects in grey tiles, photographs multiplied to grey that regain their colour on hover, with tiny captions.

Part of the style

Pixel Redaction Notes

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --paper: #0c2e61;
  --paper-depth: #07295c;
  --well: #244374;
  --line: #244374;
  --marker: #375583;
  --ink: #feffff;
  --ink-soft: #eff6ff;
  --ink-faint: #738cb3;
  --dot: rgba(254, 255, 255, 0.5);
}
</style>

<section class="workspace">
  <div class="workspace__inner">
    <h2 class="workspace__label">Workspace</h2>
    <p class="workspace__text">Things on and around the desk this year. Hover to see them in colour.</p>
    <ul class="workspace__grid">
      <li class="workspace__item">
        <a class="workspace__tile" href="#">
          <img class="workspace__img" src="assets/lamp.jpg" alt="An old glass lamp bowl on a narrow stem" width="683" height="800" loading="lazy">
        </a>
        <p class="workspace__caption"><span class="workspace__name">Reading lamp</span> <span class="workspace__meta">glass, c. 300</span></p>
      </li>
      <li class="workspace__item">
        <a class="workspace__tile" href="#">
          <img class="workspace__img" src="assets/chair.jpg" alt="A plain wooden side chair with a leather seat" width="682" height="800" loading="lazy">
        </a>
        <p class="workspace__caption"><span class="workspace__name">Desk chair</span> <span class="workspace__meta">oak, 1904</span></p>
      </li>
      <li class="workspace__item">
        <a class="workspace__tile" href="#">
          <img class="workspace__img" src="assets/clock.jpg" alt="A dark mantel clock with painted tiles" width="659" height="800" loading="lazy">
        </a>
        <p class="workspace__caption"><span class="workspace__name">Shelf clock</span> <span class="workspace__meta">slate, 1880</span></p>
      </li>
      <li class="workspace__item">
        <a class="workspace__tile" href="#">
          <img class="workspace__img" src="assets/inkwell.jpg" alt="A blue glass inkwell with a lid" width="528" height="800" loading="lazy">
        </a>
        <p class="workspace__caption"><span class="workspace__name">Inkwell</span> <span class="workspace__meta">glass, 1850</span></p>
      </li>
    </ul>
  </div>
</section>

<style>
  .workspace {
    padding: var(--section-space) var(--edge);
  }
  .workspace__inner {
    max-width: var(--measure);
    margin: 0 auto;
  }
  .workspace__label {
    margin: 0 0 var(--space-s);
    color: var(--ink);
    font-size: var(--text-m);
    font-weight: 500;
    line-height: var(--leading-label);
  }
  .workspace__text {
    margin: 0 0 var(--space-l);
    color: var(--ink-soft);
    line-height: var(--leading-read);
  }
  .workspace__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--gap);
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .workspace__tile {
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--well);
    border-radius: var(--radius-l);
  }
  .workspace__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
    filter: grayscale(1) contrast(1.08);
    scale: 1.001;
    transition: filter var(--quick) var(--ease), scale var(--pop) var(--ease-bounce);
  }
  .workspace__tile:hover .workspace__img,
  .workspace__tile:focus-visible .workspace__img {
    filter: grayscale(0) contrast(1);
    scale: 1.04;
  }
  .workspace__tile:focus-visible {
    outline: var(--rule) solid var(--ink);
    outline-offset: 2px;
  }
  .workspace__caption {
    margin: var(--space-s) 0 0;
    font-size: var(--text-s);
    line-height: var(--leading-small);
  }
  .workspace__name {
    display: block;
    color: var(--ink);
  }
  .workspace__meta {
    display: block;
    color: var(--ink-faint);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
  }

  @media (max-width: 36rem) {
    .workspace__grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      row-gap: var(--space-l);
    }
  }
</style>

Similar components

Numbered tile index

Numbered tile index

Blue-ink shelf

Blue-ink shelf

Edge-to-edge picture rail

Edge-to-edge picture rail

Green flood

Green flood

Project index

Project index

Work grid with pill

Work grid with pill

Matted device wall

Matted device wall

Offset feature

Offset feature