You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the issues of this repository and believe that this is not a duplicate.
Summary 💡
Currently for picking up values from the theme.typogrpahy we would need to specify all font related properties separately: fontFamily, fontWeight, fontSize, letterSpacing etc.
Instead it would be much easier if developers are able to define only one property, font that will pick up all styles from theme.typography.*
Examples 🌈
<Boxsx={{font: "body1"}}/>
Motivation 🔦
This API would allow us to have cleaner and much better API related to the typography. It would also solve #17504
Summary 💡
Currently for picking up values from the
theme.typogrpahy
we would need to specify all font related properties separately:fontFamily
,fontWeight
,fontSize
,letterSpacing
etc.Instead it would be much easier if developers are able to define only one property,
font
that will pick up all styles fromtheme.typography.*
Examples 🌈
Motivation 🔦
This API would allow us to have cleaner and much better API related to the typography. It would also solve #17504
First reported in #23053 (comment)
The text was updated successfully, but these errors were encountered: