Skip to content

Add a CLI to extract Fluent System Icons for React Native - #4521

Merged
Jason Morse (JasonVMo) merged 2 commits into
mainfrom
user/jasonvmo/extract-icons
Nov 20, 2026
Merged

Jason Morse (JasonVMo) merged 2 commits into
mainfrom
user/jasonvmo/extract-icons

Conversation

@JasonVMo

Copy link
Copy Markdown
Contributor

Platforms Impacted

  • iOS
  • macOS
  • win32 (Office)
  • windows
  • android

Build-time tooling only; no platform-specific runtime changes.

Description of changes

  • Add @fluentui-react-native/extract-icons under packages/utils. It generates TSX using the published React Native icons codegen, and accepts component export names or SVG catalog names.
  • Support direct CLI arguments and one or more output jobs under extractIcons in a shared Node-loadable config file.
  • Preapprove the first-party React Native icons package without changing the seven-day quarantine, upgrade tester-core to the codegen release, and add a release changeset.

This PR is standalone; it does not change the token layer or migrate any components to generated icons.

Verification

  • Passed: yarn workspace @fluentui-react-native/extract-icons build
  • Passed: yarn workspace @fluentui-react-native/extract-icons test (six tests)
  • Passed: yarn workspace @fluentui-react-native/extract-icons lint
  • Passed: yarn change:check
  • Blocked: yarn clean-lage-cache && yarn lage buildci, followed by yarn lage buildci, hit transient desktop-test fixture files during repository checks. yarn check-package-contents passed in isolation.
  • Native rendering was not tested; this change adds a generation tool rather than platform runtime behavior.
Before After
No standalone CLI to generate TSX for a selected set of icons. Run extract-icons --output src/icons.tsx AccessTime20Regular or specify multiple outputs in a shared config.

Pull request checklist

This PR has considered (when applicable):

  • Automated Tests
  • Documentation and examples
  • Keyboard Accessibility
  • Voiceover
  • Internationalization and Right-to-left Layouts

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

Bundle size report

Tree-shaken, minified production esbuild bundles with React and React Native runtimes externalized.

Scenario Modules-Mac (Δ) Modules-Win (Δ) Size-Mac (Δ) Size-Win (Δ)
components-button 79 (+1) 80 (+1) 72.92k (-702b) 72.85k (-702b)
components-catalog 228 (+1) 229 (+1) 229.66k (+349b) 229.59k (+349b)
design-themed-root 55 (+4) 56 (+4) 56.26k (+998b) 56.18k (+998b)
design-color-lib 6 (+0) 6 (+0) 6.27k (+0b) 6.27k (+0b)
design-theme-state-legacy-source 49 (+1) 50 (+1) 52.96k (-841b) 52.89k (-841b)
design-legacy-theme 42 (+0) 42 (+0) 39.11k (+0b) 42.91k (+0b)
design-legacy-theme-from-flex 58 (+4) 58 (+4) 60.70k (+824b) 64.51k (+822b)
design-fluent-light-theme 7 (+0) 7 (+0) 18.74k (+0b) 22.59k (+0b)
design-fluent-theme 35 (+0) 35 (+0) 27.46k (+4b) 31.25k (-1b)
design-fluent-hc-theme 32 (+0) 32 (+0) 27.34k (+0b) 31.13k (+0b)
design-flex-theme 29 (-4) 29 (-4) 14.30k (-9.07k) 14.29k (-9.07k)
design-flex-cool-theme 26 (New) 26 (New) 12.51k (New) 12.50k (New)
design-flex-warm-theme 26 (-7) 26 (-7) 12.28k (-11.15k) 12.27k (-11.15k)

The job is advisory: size changes are reported but do not fail the pull request. Bundle or analysis errors still fail.


View bundle-size workflow run

@JasonVMo
Jason Morse (JasonVMo) merged commit d80ab14 into main Nov 20, 2026
17 of 20 checks passed
@JasonVMo
Jason Morse (JasonVMo) deleted the user/jasonvmo/extract-icons branch November 20, 2026 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants