-
Notifications
You must be signed in to change notification settings - Fork 33
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
[RFC]: New font tokens #727
Comments
Is it possible that text size smaller than |
I checked Dashboard and capture CSS overview for some pages and there are at least 3 places where text size is smaller than 11px (see screenshots) but I think those can be migrated to 11px. |
This issue is stale because it has been open 14 days with no activity. |
This issue was closed because it has been stalled for 2 days with no activity. You are still welcome to reopen it and continue from where you finished. Best regards Saleor team |
This issue is stale because it has been open 14 days with no activity. |
Short description of the feature
We currently have several difficult-to-use font tokens connected to context, such as
heroLarge
. To improve usability, we should rename them and introduce a scale from 1 to 11 instead.Full description
We should replace the current font-related tokens (
fontSize
,letterSpacing
, andlineHeight
) with ones that have a scale from 1 to 11:Developers should use the corresponding line-height and letter-spacing when using values from the scale. For example,
font-weight-1
should be used withline-height-1
andletter-spacing-1
.For
fontWeight
we should have:As we introduce new tokens we should also change API for
Text
component:Acceptance Criteria
Additional notes
Text – Radix Themes
Text — Shopify Polaris
The text was updated successfully, but these errors were encountered: