Files
livewire-material/resources/svg/symbols/outlined/generating_tokens.svg
T
Andreas Reinhold / reiniandClaude Opus 5 7a95449c82 Draw the 67 Material Symbols Google ships without a viewBox at every size
Google publishes 67 symbols per cut (auto_awesome, insights,
tips_and_updates, battery_50 ...) with width and height but no viewBox,
their paths in 24 units, or 20 in the 20 cut, where every other symbol
draws in `0 -960 960 960`. bin/fetch-symbols dropped the size so CSS
decides it, which left these with no coordinate system: `<x-icon>`
drew them at 1:1, whole only at exactly 24px and cut off or misplaced
at any other size, the 20 cut every small button uses included.
normalise() now turns a file's width and height into its viewBox when
it has none, before dropping them. The 268 files are regenerated from
Google's originals at the recorded SOURCE commit with the fixed step
(each shipped file matched the old step's output first; the other
16,272 do not change), and every path lies inside its new viewBox.
IconTest checks that each shipped symbol has a viewBox and that
`<x-icon name="auto_awesome">` renders in 20 units at size 16 and in 24
at size 32; both fail without the change.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-17 04:18:10 +02:00

1 line
901 B
XML

<svg fill="currentColor" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 20q-3.35 0-5.675-2.325Q1 15.35 1 12q0-3.35 2.325-5.675Q5.65 4 9 4q3.35 0 5.675 2.325Q17 8.65 17 12q0 3.35-2.325 5.675Q12.35 20 9 20Zm0-2q2.5 0 4.25-1.75T15 12q0-2.5-1.75-4.25T9 6Q6.5 6 4.75 7.75T3 12q0 2.5 1.75 4.25T9 18Zm0-2.5q.425 0 .713-.288.287-.287.287-.712v-4h1.25q.325 0 .538-.213.212-.212.212-.537 0-.325-.212-.538Q11.575 9 11.25 9h-4.5q-.325 0-.537.212Q6 9.425 6 9.75q0 .325.213.537.212.213.537.213H8v4q0 .425.288.712.287.288.712.288ZM18.55 8l-.8-1.75-1.75-.8q-.275-.125-.275-.45T16 4.55l1.75-.8.8-1.75q.125-.275.45-.275t.45.275l.8 1.75 1.75.8q.275.125.275.45T22 5.45l-1.75.8-.8 1.75q-.125.275-.45.275T18.55 8Zm0 14-.8-1.75-1.75-.8q-.275-.125-.275-.45t.275-.45l1.75-.8.8-1.75q.125-.275.45-.275t.45.275l.8 1.75 1.75.8q.275.125.275.45t-.275.45l-1.75.8-.8 1.75q-.125.275-.45.275T18.55 22ZM9 12Z"/></svg>