-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add typography styling attributes to Typography component #17614
Comments
This page is about typography of the design system not the Typography component. I would rather let the Box handle this since it's purpose is to be your design system primitive. The |
Thank you for your fast answer! I don't see why I should put all my style on a On my website, there is one particular h1 that I want it to be bold. This is only one example I gave you. But, it may be possible that I need to italicize only one particular paragraph or I need to change the alignment of one particular paragraph (make it right-aligned or center), and it would be more natural if I don't need to add an extra |
If you don't want to add a |
These use cases seem to be very specific. I'd like to hear a second opinion from another core member. Otherwise we'll see how many upvotes this issue gets since this is currently possible to achieve for library consumers. Nothing in the core library is preventing you from giving a particular heading a different font-weight as far as I can tell. |
Thank you for your answer.
No, it doesn't prevent me of course, but it would be nicer from my point of view. |
This is already discussed in #15561. |
@eps1lon I don't think that Material Design is our main concern in this context. From my perspective, the Typography component is interesting in the sense that it can pull the Now, I believe the concern is identical to #15561, we can continue the discussion there. |
You are right, it is the same discussion. Thank you for your response! |
Motivation 🔦
Typography styling is currently painful: changing font-size, font-weight, font-style, etc...
For example, if I want to make a H1 title bold, I need to write:
Whereas it would be much more natural and simple if I could do:
Summary 💡
I propose to add the
textAlign
,fontWeight
,fontSize
,fontStyle
,fontFamily
,letterSpacing
,lineHeight
attributes of theBox
component to theTypography
one.A proof that the
Typography
component lacks these attributes is that on your typography system page, you only useBox
component. It doesn't make sense for me.Anyway, thank you for all your great work!!
The text was updated successfully, but these errors were encountered: