Skip to content

feat(icons): Once UI's own icons replace the built-ins (3.0) - #539

Merged
lorant-one merged 5 commits into
feat/3-0-breaking-cleanupfrom
feat/own-icon-pack
Nov 17, 2026
Merged

lorant-one merged 5 commits into
feat/3-0-breaking-cleanupfrom
feat/own-icon-pack

Conversation

@lorant-one

Copy link
Copy Markdown
Member

Requested by Lorant · project thread

First step of the 3.0 nav kit: the approved icon set (178 icons, once-ui-system/icons) becomes core's built-ins.

What changes

  • src/icons/data.ts is generated from once-ui-system/icons (pnpm generate-icons --from <icons repo>), rounded line set. Every icon shares one root (24 grid, 1.5 stroke), written once, so 178 icons cost about what 107 did (11.7 kB gz vs 11.8 kB for the data file).
  • 71 new names (briefcase, camera, rocket, truck, checkCircle, text…): the shared icons apps registered themselves.
  • data-border="conservative" squares caps and joins via new --icon-linecap / --icon-linejoin tokens (foundations). The set's own drawn conservative/playful geometry comes per shape in 3.1.
  • Meaning changes: check is now the plain mark (2.x drew it in a circle), checkbox is a ticked box (2.x drew the plain mark). Toast/Feedback success → checkCircle, Checkbox → check, HeadingNav's "On this page" → text. The 3.0 codemod reports both names per site (report only: a rewrite would not be idempotent). MIGRATING §15, CHANGELOG entry.
  • icon-manifest.json and the react-icons parity test are gone; the new test checks every 2.x name survives and every icon is a currentColor line icon on the grid. ai-spec reads names from data.ts; native data re-synced.

Notes for review

  • node scripts/bundle-size.mjs --update was run (StatTile and other icon users +~1.4 kB raw).
  • ai/catalog.json cap moves 30,500 → 31,200 (71 more icon names). IconName in per-component specs is now the type text instead of a 107-name list (over the 150 cap), so those files shrink; catalog.json keeps the full list.
  • Needs the visual-change label: every icon is redrawn.
  • Docs app still registers its own react-icons under some names (apps/docs/src/resources/icons.ts); cleaned up in a follow-up.

Checks

  • Core vitest: 4768/4768 after the Feedback test fix. Codemod tests 474/474. Native icons test 4/4. Build green.

Generated by Claude Code

…t-ins

178 icons from once-ui-system/icons (rounded line set, shared 24 grid root),
up from 107. Conservative borders square caps and joins through the new
--icon-linecap / --icon-linejoin tokens. check/checkbox changed meaning:
Toast and Feedback success use checkCircle, Checkbox draws check, and the
3.0 codemod reports both names. Native data re-synced.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016gNJtxGyk4YVJPL5V3YV6R
@lorant-one
lorant-one merged commit 7bd147b into feat/3-0-breaking-cleanup Nov 17, 2026
9 checks passed
@lorant-one
lorant-one deleted the feat/own-icon-pack branch November 21, 2026 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants