500 icons, two inks
My site took in a pack of 500 icons and redrew it in two inks, a line and a grey dither, and the script that checks the set prints 516.
Not quite 500
On 17 November 2026 pull request 88 was merged into this site, and Composite, the design system the pages are drawn with, got its first icon set. Colours, type, rules and ready-made parts, and now icons.
The set is a free pack, Streamline Sharp Duo Free, with 500 icons. The pack draws each one in two blues and white. The site draws it in two inks instead: the ink of the line, and a dither of grey dots. The three commits of the pull request name Claude Opus 5.5 as co-author.
I didn't want the pack's blue. It just didn't feel right for this site.
The title says 500. The script says 516. That bugged me a bit. Let's go through the gap.
500 and 516
The pack has 500 SVG files, in assets/icons/streamline-sharp-duo. The README in assets/icons says they're the sharp/duo folder of the pack's repository at commit 52d750c (26 May 2025), unchanged.
The site adds 15 icons the pack doesn't have: the four arrows, the four carets, x, minus, plus, dots-three, check-circle, x-circle and warning-triangle. They're drawn on the same 24-unit grid, in assets/icons/own, and they aren't Streamline's.
That makes 515 files. pnpm icons:check prints 516.
The extra name is sidebar. The script makes it in code, from the pack's layout-right-sidebar, mirrored, because the sidebar of this site opens on the left. So it's 500 + 15 + 1. The title counts the pack. The set has 516 names.
Two inks
The pack paints in three colours. The script reads each one as a role, then drops the colour.
| In the pack | Role | On the site |
|---|---|---|
stroke #4147d5 | line | currentColor |
fill #4147d5 | solid | currentColor |
fill #d7e0ff | tint | the dither, in Edge grey |
fill #ffffff | knockout | a cut through the layers under it |
currentColor is the text colour of whatever holds the icon, so an icon has no colour of its own. It follows the text. Edge is one grey of the system, #6b6a66.
A knockout is a white shape in the pack that stands for a hole. The code draws it as an SVG mask, so the ground shows through on any fill. A tint cuts the layers under it the same way. Of the 516 icons, 448 have a tint and 157 have a knockout. Both counts come from the generated file set.ts, and one icon can have both.
The line is 1.5 units wide on the 24-unit grid, which is 1 pixel at 16 pixels. Joins are mitred. Round caps become square. The parser keeps butt caps, the flat kind, because a comment in it says the pack draws a dot as a short butt-capped segment.
Grey dots, drawn as dashes
The design document says what the dither is: a 25 % ordered dither of Edge-grey dots, one CSS pixel a dot at 16 pixels, each row offset by half a step. The dots are 1.5 units wide on a lattice of 3. That's 1.5 × 1.5 out of 3 × 3, so 25 %.
They're Edge grey, not the ink of the line. The document gives the reason: Edge sits between ink and bone, so the dots read as a second tone on Ink, on a Well (#1c1c1d) and on bone, and the line stays the strongest mark.
The code draws the dots as dashes. One path of eight rows, clipped to the shape of the tint. These are the first two rows:
M0 .75h24
M1.5 3.75h24Each row is a line 24 units long. A dash array of 1.5 1.5 cuts it into dots, and the second row starts 1.5 units to the right.
The first way that failed
The obvious tool is a <pattern>, the SVG element that repeats a small tile. The code doesn't use one. A comment in draw.tsx says why: Chrome resamples a pattern tile, and a 25 % tile came out near solid.
That's all the source gives. There's no number for "near solid".
Dashes need no tile. They're lines at the real positions.
And there's a second weak spot, in the design document. A pressed control has the Held grey, #7d7c78. On Held, the document says, the dots all but vanish, and Held lasts only while a control is pressed. The source shows no fix.
The script and its check
pnpm icons runs scripts/build-icons.mts, 170 lines. It reads the 500 and the 15 SVG files and writes src/lib/icons/set.ts, the path data of every icon, and src/lib/icons/glyphs.tsx. Each starts with a header that says don't edit it by hand.
pnpm icons:check runs the same script with --check. It makes both files in memory, compares them with the files on disk, and ends with an error and Stale: when one differs. The check is in the list of the CI workflow, and those checks are advisory, because nothing blocks a merge.
The parser stops on what it doesn't know. Its comment says why: an icon that half-converts would ship blue or round. So it throws on an unknown element, attribute or colour, on a stroke width other than 1.5, and on a viewBox other than 0 0 24 24. The script itself throws when two icons share a name. The pull request says 11 of its 331 tests are new for the parser.
It also says how the line was checked. All 515 icons that have a source file were drawn twice in Chrome: the source, and the site's version with the dither off. The worst line mismatch was 0.4 % (bug), and the median was 0.
The pull request reports no such check for the dither.
What 516 icons weigh
set.ts is 212,392 bytes for 516 icons. The Icon component looks up a name in that whole map, so a page that imports Icon loads the paths of all 516. The pull request says the pack's path data sits only in the chunk of the /system specimens, and the home page doesn't load it. No file in src or content uses Icon today.
A big set for a quiet room.
For parts that need one icon, the script writes glyphs.tsx: 19 components, 5,593 bytes, named after the Phosphor icons they replaced. Phosphor is the library the site used before. A registry part then changes only its import. The rule in AGENTS.md is that a client component imports glyphs, never Icon.
The /system page grew. Its HTML is about 1.93 MB, 176 KB after gzip, and the Icon specimen is about 689 KB of that, 71 KB after gzip. The specimen shows the whole pack, brand marks such as facebook-1 and google-drive included, and a whole Culture group. The pull request says pages of the site draw no icons. A rule of the design document says an icon sits beside its label and never decorates a heading or a Panel.
The credit
The pack is CC BY 4.0, which asks for credit and a note of changes. The Icon specimen on /system has both. It links to Sharp Duo Free by Streamline and to CC BY 4.0. It names the changes: one ink with mitred joins and no round caps, the second colour redrawn as a grey dither, and the white knockouts cut through. It also says the carets, arrows and other glyphs are our own. The rules of the repository say the credit stays on that specimen.
Still loose
<pattern>. The result is on record in one comment only, with no number for "near solid".- The dither check. The pull request reports a geometry check for the line, and none for the dither.
- Names and glyphs. The set has 516 names. The parts import 19 of them as glyphs, and
Iconruns only in the/systemspecimen. - shadcn.
shadcn addstill writes Phosphor imports, becausecomponents.jsonnames that library. A new snippet needs its import changed by hand.
Does that bother me? I don't know yet. It's too early to say.
Which leaves the second ink. Press a control, and the Held grey comes up, and the dots all but vanish. The line stays. For as long as the control is pressed, the icon has one ink.