Skip to content

Icon Tile

Interactive specimen

Native controls work. Demo links and submissions stay inside this specimen.

Source markup
<!-- @dsCard group="Display" height=120 -->
<!DOCTYPE html>
<html lang="en-GB" data-theme="dark">
<head>
<meta charset="utf-8">
<title>IconTile</title>
<style>
  /* layout of the states only: the tile's colour, border and radius come from bundle.css */
  .states {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--space-lg);
    max-width: 960px;
    padding: var(--space-sm);
  }
  .state { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2xs); }
  .state__row { display: flex; align-items: flex-end; gap: var(--space-sm); }
  .state p { margin: 0; }
  .state--sizes {
    border-left: var(--border-width-hairline) solid var(--color-semantic-border-soft);
    padding-left: var(--space-lg);
  }
</style>
</head>
<body>
<div class="states">

  <div class="state">
    <div class="state__row">
      <span class="icon-tile">
        <svg class="icon reticle" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" aria-hidden="true" focusable="false"><g class="mark" fill="currentColor"><path fill-rule="evenodd" d="M36,128 A92,92 0 1,0 220,128 A92,92 0 1,0 36,128 Z M59,128 A69,69 0 1,0 197,128 A69,69 0 1,0 59,128 Z"/><polygon points="89.033,105.296 32.388,48.652 32.388,32.388 48.652,32.388 105.296,89.033"/><polygon points="150.704,166.967 207.348,223.612 223.612,223.612 223.612,207.348 166.967,150.704"/><circle cx="128" cy="128" r="14"/></g></svg>
      </span>
    </div>
    <p class="t-label">Infrastructure</p>
  </div>

  <div class="state">
    <div class="state__row">
      <span class="icon-tile">
        <svg class="icon reticle" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" aria-hidden="true" focusable="false"><g class="mark" fill="currentColor"><path fill-rule="evenodd" d="M36,128 A92,92 0 1,0 220,128 A92,92 0 1,0 36,128 Z M59,128 A69,69 0 1,0 197,128 A69,69 0 1,0 59,128 Z"/><polygon points="89.033,105.296 32.388,48.652 32.388,32.388 48.652,32.388 105.296,89.033"/><polygon points="150.704,166.967 207.348,223.612 223.612,223.612 223.612,207.348 166.967,150.704"/><circle cx="128" cy="128" r="14"/></g></svg>
      </span>
    </div>
    <p class="t-label">Security</p>
  </div>

  <div class="state">
    <div class="state__row">
      <span class="icon-tile">
        <svg class="icon reticle" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" aria-hidden="true" focusable="false"><g class="mark" fill="currentColor"><path fill-rule="evenodd" d="M36,128 A92,92 0 1,0 220,128 A92,92 0 1,0 36,128 Z M59,128 A69,69 0 1,0 197,128 A69,69 0 1,0 59,128 Z"/><polygon points="89.033,105.296 32.388,48.652 32.388,32.388 48.652,32.388 105.296,89.033"/><polygon points="150.704,166.967 207.348,223.612 223.612,223.612 223.612,207.348 166.967,150.704"/><circle cx="128" cy="128" r="14"/></g></svg>
      </span>
    </div>
    <p class="t-label">Services</p>
  </div>

  <div class="state state--sizes">
    <div class="state__row">
      <svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" aria-hidden="true" focusable="false"><g class="mark" fill="currentColor"><path fill-rule="evenodd" d="M36,128 A92,92 0 1,0 220,128 A92,92 0 1,0 36,128 Z M59,128 A69,69 0 1,0 197,128 A69,69 0 1,0 59,128 Z"/><polygon points="89.033,105.296 32.388,48.652 32.388,32.388 48.652,32.388 105.296,89.033"/><polygon points="150.704,166.967 207.348,223.612 223.612,223.612 223.612,207.348 166.967,150.704"/><circle cx="128" cy="128" r="14"/></g></svg>
      <svg class="icon icon--md" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" aria-hidden="true" focusable="false"><g class="mark" fill="currentColor"><path fill-rule="evenodd" d="M36,128 A92,92 0 1,0 220,128 A92,92 0 1,0 36,128 Z M59,128 A69,69 0 1,0 197,128 A69,69 0 1,0 59,128 Z"/><polygon points="89.033,105.296 32.388,48.652 32.388,32.388 48.652,32.388 105.296,89.033"/><polygon points="150.704,166.967 207.348,223.612 223.612,223.612 223.612,207.348 166.967,150.704"/><circle cx="128" cy="128" r="14"/></g></svg>
      <svg class="icon icon--lg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" aria-hidden="true" focusable="false"><g class="mark" fill="currentColor"><path fill-rule="evenodd" d="M36,128 A92,92 0 1,0 220,128 A92,92 0 1,0 36,128 Z M59,128 A69,69 0 1,0 197,128 A69,69 0 1,0 59,128 Z"/><polygon points="89.033,105.296 32.388,48.652 32.388,32.388 48.652,32.388 105.296,89.033"/><polygon points="150.704,166.967 207.348,223.612 223.612,223.612 223.612,207.348 166.967,150.704"/><circle cx="128" cy="128" r="14"/></g></svg>
    </div>
    <p class="t-label">Bare icon: 1em, md, lg</p>
  </div>

</div>
</body>
</html>

A 3rem square holding one 1.5rem glyph in the brand accent, used as the small visual anchor on a .card, an .app-card or a .value-item row.

Use it where an item needs a mark beside its heading or its copy. Do not use it as a control: it carries no hover, focus or disabled state, so put the interactive element around it. Use one anchor per card.

The consumer supplies the markup: an element with .icon-tile wrapping an inline <svg class="icon"> drawn with fill="currentColor". Tiles no longer tint by pillar; the pillar is named by the text beside the tile.

States. The tile is static: background color-semantic-bg-raised, a border-width-hairline border in color-semantic-border-base, corners at radius-md. The tile sets color to color-semantic-accent-primary, so a glyph inside it reads amber; the preview’s reticle placeholder carries .reticle, which sets color-mark-light and keeps marks monochrome. Outside a tile, .icon is 1em and inherits the surrounding text colour, .icon--md is 1.5rem and .icon--lg is 2rem. Inside a tile the 1.5rem rule wins, so .icon--lg changes nothing.

Do not add shadow-glow-amber or .phosphor to a tile: the glow belongs to one element per view, and this is not it. Do not fill the tile with an accent; a mark on a filled accent has to be color-semantic-text-on-accent.

The glyph is provisional. Every tile in the preview holds the mark’s own reticle O (assets/Logos/noiz-favicon-white.svg), inlined so it reads currentColor. Swap in the Phosphor glyph once the per-item choices are made; the vendored set is in assets/icons/ and the rules in docs/06-iconography.md.

  • Role: none. .icon-tile is a plain <span> around an inline <svg>, and bundle.css gives it no interactive behaviour.
  • Accessible name: none of its own. The adjacent text names the item, so each <svg> carries aria-hidden="true" and focusable="false", as the preview does. A tile standing alone needs role="img" and an aria-label on the <svg> instead.
  • Keyboard: not interactive. Tab skips it, and Enter, Space, Escape and the arrow keys do nothing. Wrap the row in a link or button when it must be actionable.
  • Target size: nothing here is a target, so WCAG 2.2 SC 2.5.8 falls to that wrapping control. The tile’s own 3rem box clears the 24px minimum, so it never shrinks a control below it.
  • Announcement: none. The tile is static, so it needs no live region.

Hand-written from themes/noiz/assets/css/components.css (.icon-tile, .icon, .icon–md, .icon–lg).