@stylexjs/dev-runtime
Configuration options
classNamePrefix
classNamePrefix: string // Default: 'x'
Prefix to applied to every generated className.
styleResolution
styleResolution: // Default: 'application-order'
| 'application-order'
| 'property-specificity'
Strategy to use for merging styles.
- application-order: The last style applied wins. Consistent with how inline styles work on the web.
- property-specificity: More specific styles will win over less specific
styles. Consistent with React Native. (
margin-top
wins overmargin
)
useRemForFontSize
useRemForFontSize: boolean // Default: false
Should px
values for fontSize
be converted to rem
?
It is considered a best practice to use rem
for font sizes to allow
users to scale the font size up or down.