Standardize font sizes #46
Labels
No Label
Bug
Component
Config
Good First Issue
Low-Priority
Page
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: www/cs-2022-class-profile#46
Loading…
Reference in New Issue
No description provided.
Delete Branch "j285he-standardize-font-sizes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #33.
There were many more font sizes in the Figma, but as a best design practice, I chose the four most common.
Staging:
https://j285he-standardize-font-sizes-csc-class-prof-snedadah.k8s.csclub.cloud/
@ -72,1 +71,3 @@
h2 {
/* Major section headings (e.g. About the Programs) */
h1 {
I think it would make more sense to rename this h2, and make the next one h1 instead. Since it is a bit weird in my opinion how the h2 font size is bigger than this one. Furthermore, in terms of semantic sense, something like a page title makes more sense as an h1, while a section heading makes more sense as h2.
+1, h1 should be larger than h2, in my opinion. I also agree that page titles should probably be h1, and section headings should probably be h2.
@ -76,0 +78,4 @@
/* Page titles (e.g. Demographics) */
h2 {
font-size: calc(56rem / 16);
color: var(--primary-accent-light);
I changed this to
-primary-accent-light
from-primary-accent-lighter
since I think it better matches the figma design of "demographics". Please change it back if you think I'm mistaken.Personally, I'm not quite as fussed about the shades of colour at this point, since
(a) it's not too hard to change which heading is which colour later, and
(b) I'm considering doing an audit of all the colours at the end anyways, so we might end up tweaking the hex strings slightly (eg. making sure text vs. background colour contrast is sufficient, and aso primary-accent-light and secondary-accent-light can be kinda hard to tell apart sometimes imo).
Some requests:
font-size
forp
, and add a sensible default tobody
instead. I'd suggestfont-size: 1rem
.font-weight
underbody
. It seems like all the text in Figma is bold (700), but I'd suggest maybe 500 or 600 (or 700) by default underbody
, then 700 for all h1, h2, ..., h6.@ -85,3 +99,4 @@
}
a {
font-size: calc(24rem / 16);
Let's get rid of this and set
font-size: 1rem
by default underbody
? It feels a little wack for anchors (a
tags) to potentially have a different font size from the surrounding text, in my opinion. If specific anchors need to be larger, we can used CSS modules to style just those anchors.I just copied the website margins over.
Also deleted h5, h6 since I think that those aren't being used and it's good to limit the amount of different font-sizes. Let me know if you want that reinstated.
@ -71,1 +71,4 @@
margin: 0;
/* Font styling for body */
font-size: calc(22rem / 16);
I personally think this body font size (and all the font sizes here in general) are quite large. For comparison, on the website, our page titles (eg. About Us) are 48px, and body text is 16px (1rem).
Is there a reason for these numbers? Otherwise I'd personally prefer bumping everything down a bit, eg.
p = 1rem
h1 = 48px
h2 = 36px
h3 = anything between 24px - 32px (inclusive), you can pick what looks best
h4 = 24px (same as what we currently have)
(ofc these should all be
calc(...rem / 16)
etc. 🙂)I think the
p
is a touch small but perhaps that might just be my screen.I've updated to these above specifications and we can always change back if needed. Thanks
@ -72,0 +77,4 @@
/* Page titles (e.g. Demographics) */
h1 {
font-size: calc(56rem / 16);
NIT: set font-weight for all headers too? could either do
or just add it to the styles for each header.
@ -33,0 +38,4 @@
<h3>h3 h3 h3 h3 h3 h3 h3 h3 h3 h3 h3 h3 h3 h3 h3 h3 h3 h3</h3>
<h4>h4 h4 h4 h4 h4 h4 h4 h4 h4 h4 h4 h4 h4 h4 h4 h4 h4 h4</h4>
<p>p p p p p p p p p p p p p p p p p p p p p p p p p p p p</p>
<a>a a a a a a a a a a a a a a a a a a a a a a a a a a a a</a>
NIT: add
href="#"
or something so we get the pointer cursor when hovering over the link :))Also not sure why, but the staging link doesn't seem to work for me
https://j285he-standardize-font-sizes-csc-class-profile-staging-snedadah.k8s.csclub.cloud
I was able to build and run the site locally though.
Sorry, staging was broken since the name was too long. I added a max length cutoff now:
Here is a working link:
https://j285he-standardize-font-sizes-csc-class-prof-snedadah.k8s.csclub.cloud/
Thanks for getting this done! One last comment but overall it looks good to me 🙂
@ -71,1 +71,4 @@
margin: 0;
/* Font styling for body */
font-size: 1rem;
Okay yeah, idk why but 16px does feel a little small... I tried 18px and I think it looks good? Up to you, we can always change it later.