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 think it would be great to add support for modular scale typography. The current fontSize options are limited and it would take too long to create custom components using extendVariants to make the font sizes scale based on screen width.
I'm already overriding the default typography to make font sizes that scale up, here's an example:
p {
@apply
font-body
font-normal
text-base
md:text-md
xl:text-lg;
}
This works for text but not with things like buttons or inputs which changes font sizes based on the size prop. So I have to extend the button and many other components to include scalable font sizes based on size, something like this:
Not ideal because then I'm not using the theme's internal font size utils
Maybe there can be a moduleScaleText (or something like that) boolean that makes the font sizes scalable, would be better to have a config object that also has a ratio setting to change the amount the font size will grow based on the screen size and how often the text can scale (on every media query or just for md and xl).
This feature will make the font sizes large on bigger screens and would make the components more responsive. What do you think?
If you can give me a brief of where I can edit the plugin options for font sizes, I can do a spike on adding this feature when I have time.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I think it would be great to add support for modular scale typography. The current fontSize options are limited and it would take too long to create custom components using extendVariants to make the font sizes scale based on screen width.
I'm already overriding the default typography to make font sizes that scale up, here's an example:
This works for text but not with things like buttons or inputs which changes font sizes based on the size prop. So I have to extend the button and many other components to include scalable font sizes based on size, something like this:
Not ideal because then I'm not using the theme's internal font size utils
Maybe there can be a moduleScaleText (or something like that) boolean that makes the font sizes scalable, would be better to have a config object that also has a ratio setting to change the amount the font size will grow based on the screen size and how often the text can scale (on every media query or just for md and xl).
This feature will make the font sizes large on bigger screens and would make the components more responsive. What do you think?
If you can give me a brief of where I can edit the plugin options for font sizes, I can do a spike on adding this feature when I have time.
Beta Was this translation helpful? Give feedback.
All reactions