kitbash Sign in Connect agent
Components

Grey index tiles

Four big grey tiles two by two, 2 px apart, each with a label at the top; on hover a tile floods with its highlighter and its second chip slides in.

Part of the style

Highlighter Word Chips

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --ink: #1d0c0b;
  --paper: #f15b29;
  --chip: rgba(227, 86, 39, 0.7);
  --chip-solid: #e35627;
  --chip-press: #d95326;
  --ink-mute: rgba(29, 12, 11, 0.45);
  --veil: rgba(241, 91, 41, 0.72);
  --periwinkle: #d15c4c;
  --mint: #b46662;
  --lemon: #b56c68;
  --blush: #ad7472;
}
</style>

<nav class="index-tiles" aria-label="Sections">
  <ul class="index-tiles__grid">
    <li class="index-tiles__cell" style="--lit: var(--periwinkle)">
      <a class="index-tiles__tile" href="#">
        <span class="index-tiles__label">About</span>
        <span class="index-tiles__hint">How we work</span>
        <span class="index-tiles__arrow" aria-hidden="true">&#8599;</span>
      </a>
    </li>
    <li class="index-tiles__cell" style="--lit: var(--mint)">
      <a class="index-tiles__tile" href="#">
        <span class="index-tiles__label">Work</span>
        <span class="index-tiles__hint">Thirty-one projects</span>
        <span class="index-tiles__arrow" aria-hidden="true">&#8599;</span>
      </a>
    </li>
    <li class="index-tiles__cell" style="--lit: var(--lemon)">
      <a class="index-tiles__tile" href="#">
        <span class="index-tiles__label">Shop</span>
        <span class="index-tiles__hint">Prints and cups</span>
        <span class="index-tiles__arrow" aria-hidden="true">&#8599;</span>
      </a>
    </li>
    <li class="index-tiles__cell" style="--lit: var(--blush)">
      <a class="index-tiles__tile index-tiles__tile--picture" href="#">
        <img class="index-tiles__img" src="assets/weave-theory.jpg" alt="" width="800" height="651" loading="lazy">
        <span class="index-tiles__label">Archive</span>
        <span class="index-tiles__hint">Ideas we dropped</span>
        <span class="index-tiles__arrow" aria-hidden="true">&#8599;</span>
      </a>
    </li>
  </ul>
</nav>

<style>
  .index-tiles {
    padding: var(--space-xl) var(--edge) var(--section-space);
    font-family: var(--font-display);
    font-weight: var(--weight-bold);
  }
  .index-tiles__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gap);
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .index-tiles__tile {
    position: relative;
    display: block;
    height: clamp(9rem, 22vw, 18rem);
    overflow: hidden;
    padding: var(--space-s);
    border-radius: var(--radius-l);
    background: var(--chip-solid);
    color: inherit;
    text-decoration: none;
    transition: background-color var(--fast) var(--ease);
  }
  .index-tiles__tile:hover,
  .index-tiles__tile:focus-visible {
    background: var(--lit);
  }
  .index-tiles__tile:focus-visible {
    outline: var(--line) solid var(--ink);
    outline-offset: 2px;
  }
  .index-tiles__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.2);
    mix-blend-mode: multiply;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity var(--grow) var(--ease-grow), transform var(--pad) var(--ease-grow);
  }
  .index-tiles__tile:hover .index-tiles__img,
  .index-tiles__tile:focus-visible .index-tiles__img {
    opacity: 0.5;
    transform: none;
  }
  .index-tiles__label {
    position: relative;
    display: block;
    font-size: var(--text-l);
    letter-spacing: var(--tracking);
    line-height: 1.1;
  }
  .index-tiles__hint {
    position: relative;
    display: inline-block;
    margin-top: var(--space-xs);
    padding: var(--space-xs) var(--space-s);
    border-radius: var(--radius);
    background: var(--paper);
    font-family: var(--font-body);
    font-size: var(--text-s);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity var(--fast) var(--ease-press), transform var(--grow) var(--ease-grow);
  }
  .index-tiles__tile:hover .index-tiles__hint,
  .index-tiles__tile:focus-visible .index-tiles__hint {
    opacity: 1;
    transform: none;
  }
  .index-tiles__arrow {
    position: absolute;
    right: var(--space-s);
    bottom: var(--space-s);
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius);
    background: var(--chip);
    font-size: var(--text-m);
    transition: transform var(--grow) var(--ease-grow);
  }
  .index-tiles__tile:hover .index-tiles__arrow,
  .index-tiles__tile:focus-visible .index-tiles__arrow {
    transform: translate(2px, -2px);
  }

  /* Phones have no hover: the second chip shows at rest. */
  @media (hover: none) {
    .index-tiles__hint {
      opacity: 1;
      transform: none;
    }
  }
</style>

Similar components

Corner masthead

Corner masthead

Bar and opening line

Bar and opening line

Wordmark masthead

Wordmark masthead

Black bar and menu

Black bar and menu

Rainbow ticker header

Rainbow ticker header

Grid top bar

Grid top bar

Spread nav with mascot

Spread nav with mascot

Grid masthead

Grid masthead