Skip to content

Conversation

@nmn
Copy link
Collaborator

@nmn nmn commented Nov 23, 2025

What changed / motivation ?

Docusaurus allows the ability to "eject" the built in theme components so they can be customized. This is being done to migrate the styling from CSS files to StyleX for everything.

  • Footer components
  • ThemedImage
  • ... Everything else ...

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 23, 2025
@github-actions
Copy link

workflow: benchmarks/perf

Comparison of performance test results, measured in operations per second. Larger is better.

[email protected] compare
node ./compare.js /tmp/tmp.c4tTUvKxDE /tmp/tmp.FIp72A4kcT

Results Base Patch Ratio
babel-plugin: stylex.create
· basic create 558 558 1.00
· complex create 68 67 0.99 -
babel-plugin: stylex.createTheme
· basic themes 453 454 1.00 +
· complex themes 44 45 1.02 +

@github-actions
Copy link

workflow: benchmarks/size

Comparison of minified (terser) and compressed (brotli) size results, measured in bytes. Smaller is better.

[email protected] compare
node ./compare.js /tmp/tmp.FaTkxaYc5t /tmp/tmp.YEaBgestUR

Results Base Patch Ratio
@stylexjs/stylex/lib/cjs/stylex.js
· compressed 1,311 1,311 1.00
· minified 4,150 4,150 1.00
@stylexjs/stylex/lib/cjs/inject.js
· compressed 1,223 1,223 1.00
· minified 3,216 3,216 1.00
benchmarks/size/.build/bundle.js
· compressed 496,650 496,650 1.00
· minified 4,847,840 4,847,840 1.00
benchmarks/size/.build/stylex.css
· compressed 99,853 99,853 1.00
· minified 747,541 747,541 1.00

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants