An open source design system that's fully customizable and agent ready
TypeScript
'@astryxdesign/cli': patch
[experimental] Icon sets: wrapping a large icon library that names its looks in its exports works in seconds and gives one icon per glyph. Only the experimental icon commands, the icon-set guide, and integration check on an icon set change.
- Large libraries.
experimental icon new-set --fromreads a library of 20,000 exports in about ten seconds instead of minutes, and in text mode says on stderr that it is reading and what it found.iconNewSetandiconAddreport reading progress for large modules through the sharedlogger(stderr, text mode only); called directly, they stay silent untillogger.setSilent(false). - Libraries of looks. A library whose export names end in style, size and weight words (
XOutline24WGHT500Icon), never direction words likeUpandDown, gives one icon per glyph, namedx(XIcon), in the look the set's default variant names, else the library's usual default; suggestions andaddname icons by glyph,add --variant filled --allpicks each glyph's filled look, a refresh keeps every icon an earlier release wrapped, and a refresh with a new--default-variantmoves each glyph to that look. Every command that records the default variant takes it from the look each icon's export draws, refuses a look word the library does not have, and never adds a second export of an icon. - Variants on an existing set.
experimental icon new-set <set> --variants outline,filledwithout--fromdeclares variants (a set with icons keeps its default variant, or, with none declared, takes the look its icons draw; a set whose library's export names name no looks keeps it on a refresh too, refuses--variantsthat leave it out, and the refusal names theadd --variantrun that adds the other look), and--display-nameand--descriptionrewrite the descriptor, in place;add --variantnames an undeclared variant with that command. - Commands that run as printed. Every command
new-set,addandmapprint names the set, with--setwhere the command takes it; the commandsaddlists repeat--defaultand--id;--new-definitionandnew-definitiontake kebab-case as the definitions list shows it, and an unknown--definitionsuggests a name the next command takes. - Search.
experimental icon starno longer offersstart, a plural matches its singular,go homefinds the icon mapped tohome, and a letter or two never matches inside a word. - Checks. A set's own definitions pass
integration check --strict, and the generated module and its declaration file pass after a formatter rewrites them. - Theme icons. Each
themeIconsentry is sized to its box by CSS, so a component that writes its own size attributes still fills the theme's icon box.