Closed mattmarcello closed 6 years ago
Thanks for the suggestion! We're working on a better solution for using thematic values within the style object, but in version 0.0.49, you can set styled-system props like in your example with mr
and ml
Hey @mattmarcello,
This feature is now supported in the latest versions of Lab. You can specify either default props and/or reference the theme as props in the styles.
Thanks for opening this issue!
It would be nice to be able to reference the spacing values when styling components.
Consider the below example.
I'd like to be able to reference the third step in the spacing scale so that changes in the scale will propagate down to the component.
Maybe a cheap solution would be to allow users to specify default props other than those set in the visual editor.