kitbash Sign in Connect agent
Components

Blue-ink shelf

Leaning pictures printed in blue ink with hand-drawn circles, arrows and captions; they straighten on hover.

Part of the style

Blue Biro Doodles

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-wash: rgba(255, 242, 241, 0.03);
  --ink-faint: rgba(255, 242, 241, 0.22);
  --paper: #334493;
  --ink-soft: #faa19f;
}
</style>

<section class="sketchbook">
  <header class="sketchbook__head">
    <h2 class="sketchbook__title">on the shelf this week</h2>
    <p class="sketchbook__note">Four pots out of the last firing. Each one is the only one.</p>
  </header>
  <ul class="sketchbook__grid">
    <li class="sketchbook__item" style="--tilt: -2deg">
      <a class="sketchbook__link" href="#">
        <span class="sketchbook__frame">
          <img class="sketchbook__img" src="assets/jar.jpg" alt="A pale salt-glazed jar with two lug handles" width="800" height="622" loading="lazy" />
        </span>
        <svg class="sketchbook__mark sketchbook__mark--ring" viewBox="0 0 100 60" preserveAspectRatio="none" aria-hidden="true">
          <path d="M62 5 C88 4 99 18 96 32 C92 50 34 58 12 48 C-1 41 3 18 22 10 C40 3 70 4 84 10" />
        </svg>
        <span class="sketchbook__caption">Ash Jar No. 4</span>
        <span class="sketchbook__price">£48 · one left</span>
      </a>
    </li>
    <li class="sketchbook__item" style="--tilt: 1.5deg">
      <a class="sketchbook__link" href="#">
        <span class="sketchbook__frame">
          <img class="sketchbook__img" src="assets/crock.jpg" alt="A tall dark stoneware crock" width="676" height="800" loading="lazy" />
        </span>
        <svg class="sketchbook__mark sketchbook__mark--arrow" viewBox="0 0 60 40" aria-hidden="true">
          <path d="M4 34 C14 30 30 22 50 8 M42 6.4 L50.4 7.6 L48.6 15.6" />
        </svg>
        <span class="sketchbook__caption">Blue Ox Crock</span>
        <span class="sketchbook__price">£120 · holds a week of bread</span>
      </a>
    </li>
    <li class="sketchbook__item" style="--tilt: -1deg">
      <a class="sketchbook__link" href="#">
        <span class="sketchbook__frame">
          <img class="sketchbook__img sketchbook__img--high" src="assets/bird-jar.jpg" alt="A stoneware jar shaped like a grumpy owl" width="542" height="800" loading="lazy" />
        </span>
        <svg class="sketchbook__mark sketchbook__mark--stars" viewBox="0 0 60 40" aria-hidden="true">
          <path d="M10 6 L12 14 L20 15 L13 19 L15 27 L10 22 L4 26 L7 19 L1 15 L8 14 Z M40 18 L46 30 M46 18 L39 30" />
        </svg>
        <span class="sketchbook__caption">Owl Jug</span>
        <span class="sketchbook__price">not for sale, sorry</span>
      </a>
    </li>
    <li class="sketchbook__item" style="--tilt: 2.2deg">
      <a class="sketchbook__link" href="#">
        <span class="sketchbook__frame">
          <img class="sketchbook__img" src="assets/cobalt-jar.jpg" alt="A grey jar brushed with blue leaves" width="622" height="800" loading="lazy" />
        </span>
        <svg class="sketchbook__mark sketchbook__mark--ring" viewBox="0 0 100 60" preserveAspectRatio="none" aria-hidden="true">
          <path d="M40 4 C70 2 98 14 95 30 C92 48 40 57 16 48 C0 42 2 20 20 11 C34 4 56 3 70 7" />
        </svg>
        <span class="sketchbook__caption">Thursday Mugs</span>
        <span class="sketchbook__price">£26 each · set of four</span>
      </a>
    </li>
  </ul>
</section>

<style>
  .sketchbook {
    padding: var(--section-space) var(--edge);
  }
  .sketchbook__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-s) var(--gap);
    margin-bottom: var(--space-xl);
  }
  .sketchbook__title {
    margin: 0;
    font-family: var(--font-hand);
    font-size: var(--hand-m);
    font-weight: 400;
    line-height: 1;
    rotate: -1.5deg;
  }
  .sketchbook__note {
    margin: 0;
    max-width: 30ch;
    font-style: italic;
    color: var(--ink-soft);
  }
  .sketchbook__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-xl) var(--gap);
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .sketchbook__link {
    position: relative;
    display: grid;
    gap: var(--space-xs);
    color: var(--ink);
    text-decoration: none;
    rotate: var(--tilt);
    transition: rotate var(--quick) var(--ease);
  }
  .sketchbook__frame {
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--radius-none);
    outline: var(--rule) solid transparent;
    outline-offset: 6px;
    background: var(--ink);
    isolation: isolate;
    transition: outline-color var(--quick) var(--ease);
  }
  /* Printed in one blue ink: the grey picture is screened onto a blue box, so black turns blue and white stays white. */
  .sketchbook__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 30% 50%;
    filter: grayscale(1) contrast(1.45) brightness(1.2);
    mix-blend-mode: screen;
  }
  .sketchbook__img--high {
    object-position: 50% 30%;
  }
  .sketchbook__mark {
    position: absolute;
    fill: none;
    stroke: var(--ink);
    stroke-width: var(--stroke);
    stroke-linecap: round;
    stroke-linejoin: round;
    overflow: visible;
    pointer-events: none;
  }
  .sketchbook__mark path {
    vector-effect: non-scaling-stroke;
  }
  .sketchbook__mark--ring {
    left: -6%;
    bottom: -16px;
    width: 92%;
    height: 84px;
  }
  .sketchbook__mark--arrow {
    right: -14px;
    bottom: 30px;
    width: 56px;
    height: 38px;
    rotate: 180deg;
  }
  .sketchbook__mark--stars {
    right: -18px;
    top: -22px;
    width: 58px;
    height: 40px;
  }
  .sketchbook__caption {
    margin-top: var(--space-s);
    font-family: var(--font-hand);
    font-size: var(--hand-s);
    line-height: 1;
  }
  .sketchbook__price {
    font-size: var(--text-s);
    color: var(--ink-soft);
  }
  .sketchbook__link:hover,
  .sketchbook__link:focus-visible {
    rotate: 0deg;
  }
  .sketchbook__link:hover .sketchbook__frame,
  .sketchbook__link:focus-visible .sketchbook__frame {
    outline-color: var(--ink);
  }
  .sketchbook__link:focus-visible {
    outline: none;
  }

  @media (max-width: 52rem) {
    .sketchbook__grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (max-width: 26rem) {
    .sketchbook__grid {
      gap: var(--space-l) var(--space-m);
    }
    .sketchbook__caption {
      font-size: 24px;
    }
    .sketchbook__mark--stars {
      right: -6px;
    }
    .sketchbook__mark--arrow {
      right: -4px;
    }
  }
</style>

Similar components

Book shelf

Book shelf

Tagged object grid

Tagged object grid

Workspace shelf

Workspace shelf

Edge-to-edge picture rail

Edge-to-edge picture rail

Project slice

Project slice

Work globe

Work globe

Work grid with pill

Work grid with pill

Night viewer

Night viewer