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
Make it possible to add (or remove) size modes. Currently we provide sm, md, lg, but we could add support for optionally adding several smaller or larger modes as well, removing sizes, or reconfiguring the base size for each. A part of the necessary work to support this has been done in feat: modular font-size scale #4044 by removing hard-coding of these size modes in the css generating code.
Expose possibility for adjusting the step size of each size mode, which is currently only an internal token.
Currently, size modes affect size tokens and font-size tokens similarly. We could consider adding options to configure this differently, since these internally use different tokens for base-size and step. E.g. someone could configure both a sm mode and a sm-compact mode, where the latter has smaller size tokens, while both have the equal values for font-size tokens. Or having the size tokens grow less than the font-size tokens when changing from sm to md to lg.
Explore non-breaking changes to improve sizing modes. Ideas to consider (from most to least likely):
font-sizemore customizable.sm,md,lg, but we could add support for optionally adding several smaller or larger modes as well, removing sizes, or reconfiguring the base size for each. A part of the necessary work to support this has been done in feat: modular font-size scale #4044 by removing hard-coding of these size modes in the css generating code.sizetokens andfont-sizetokens similarly. We could consider adding options to configure this differently, since these internally use different tokens for base-size and step. E.g. someone could configure both asmmode and asm-compactmode, where the latter has smallersizetokens, while both have the equal values forfont-sizetokens. Or having thesizetokens grow less than thefont-sizetokens when changing fromsmtomdtolg.