SVG sprite sheet with CSS Linked Parameters

One SVG, 54 icons. Pass an index and color from the host page; CSS inside the SVG selects the icon.

Firefox: set layout.css.link-parameters.enabled to true in about:config.
Edge / Chrome: enable Experimental Web Platform features and restart, or launch with --enable-blink-features=CSSLinkParametersProperty.

Checking Linked Parameters support...

Icon picker

Home

21 / Home

Column 1 / Row 2

Entire sprite sheet

All 54 icons arranged in sheet order

10 columns / 6 rows / 24-unit cells. Click to select; arrow keys to move. Open SVG.

Host page markup

Sprite sheet markup

<svg xmlns="http://www.w3.org/2000/svg"
     width="240" height="144" viewBox="0 0 240 144">
  <view id="icon" viewBox="0 0 24 24"/>
  <style>
    :root {
      --icon-index: clamp(0,
        round(down, env(--icon-index, 0), 1), 53);
      --column: mod(var(--icon-index), 10);
      --row: round(down,
        calc(var(--icon-index) / 10), 1);
    }
    #icons {
      fill: env(--icon-color, #172554);
      transform: translate(
        calc(var(--column) * -24px),
        calc(var(--row) * -24px)
      );
    }
  </style>
  <g id="icons">
    <path d="..."/>
    <path d="..."/>
    ...
  </g>
</svg>