stylex icon indicating copy to clipboard operation
stylex copied to clipboard

blog: designing for composition

Open nmn opened this issue 1 year ago • 1 comments

Blog Post

A blog post that describes how we arrived at certain API design decisions and how we prioritise predictable style composition.

nmn avatar Oct 08 '24 06:10 nmn

workflow: benchmarks/size

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

@stylexjs/[email protected] size:compare ./size-compare.js /tmp/tmp.Z0ouFgZ7dm /tmp/tmp.MCJ0VABflO

Results Base Patch Ratio
stylex/lib/stylex.js
· compressed 729 729 1.00
· minified 2,541 2,541 1.00
stylex/lib/StyleXSheet.js
· compressed 1,266 1,266 1.00
· minified 3,776 3,776 1.00
rollup-example/.build/bundle.js
· compressed 567,110 567,110 1.00
· minified 10,232,512 10,232,512 1.00
rollup-example/.build/stylex.css
· compressed 100,626 100,626 1.00
· minified 757,176 757,176 1.00

github-actions[bot] avatar Oct 08 '24 06:10 github-actions[bot]

Closing old PR

necolas avatar May 14 '25 19:05 necolas