-
Notifications
You must be signed in to change notification settings - Fork 26
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
Enforce theme font sizes #202
Comments
Some usage distribution across our UI code (not taking into account relative
I will try to merge the units that are really close to one another and try to get rid of big single-use-case ones context permitting. Ideally that should put it down to not more than 10-15 different sizes and the design team can pick it up after that (step 4 above) :) |
I think grouping them like this could work: tiny - 11px
small - 12.5px
normal : 14px
large : 16px
huge : 19px
enormous : 24px
gigantic : 34px
???
I went a bit crazy with the naming there - I think I could use a native speaker's help (@jpellizzari, @bia) for fine-grading between different words for big. Could always go with |
I think we should go with a scale like this to cut down on the available options: Names (respectively): Ii also propose we build this into the |
The type scale that we discussed on the Design Trello might still be a useful reference. |
We should also use either |
@fbarl the grouping I would recommend is: |
@jpellizzari @bia @miklosp @miklosp Thanks for all the feedback! I think I managed to consolidate most of your comments:
|
I say 20 and 24 are too close together to be meaningful. Be brave and merge them. 😉 |
Too many choices. That is basically a continuous list of integers. I am cool with adding one more level between 16 and 22, but we need to constrain the choices for consistency. |
Let's keep the current 6 variants. @bowenli can you please supply an example where you need something between 16 and 22? |
Regardless, we should still be using a ratio scaling factor. http://spencermortensen.com/articles/typographic-scale/ |
@bowenli I'm curious to know if some of the sizing examples that you pointed out could be resolved by using the same font size as the subtext, but semi-bold. |
Although our
weave.js
theme includes some font sizes, they are not used that much across our code - I assume the two main reasons are:a. There are only 3 sizes to choose from which still doesn't cover a lot of cases
b. Their usage is not enforced (or at least hinted by a warning)
I suggest the following:
theme.fontSizes
font-size
property (like it's done forz-index
)cc @bia @miklosp @jpellizzari
The text was updated successfully, but these errors were encountered: