I think we should widen the central docs column and use the same font size for all code. At the moment the code example box is only 63 chars wide. Tagging @Anthony Bullard for thoughts
Screenshot from 2024-12-30 16-23-41.png
How about 70ch wide (like the tutorial), and both using 14pt(this is for A11y, otherwise I need to adjust the saturation more which makes things look undifferentiated)?
Screenshot from 2024-12-30 17-46-20.png
I think the tutorial's width is still too narrow
python's sacred 80 could be nice
I’m not totally opposed but for text comprehensibility declines at around 70
I kind of would like to explore making the code examples more full bleed
I'm more concerned about font size on the tutorial
I wouldn't want to make the font size smaller just to make more things fit horizontally
I agree
I think mobile will actually be the bigger constraint
than desktop
Anthony Bullard said:
I kind of would like to explore making the code examples more full bleed
That sounds good!
or rather, the narrower constraint :big_smile:
Richard Feldman said:
I think mobile will actually be the bigger constraint
What's the takeaway here?
It seems like we should not make the code boxes narrow on desktop because they're narrow on mobile
oh I agree
just something to keep in mind that we have to deal with :big_smile:
code snippets on mobile are sort of inherently annoying
Mobile should be usable for a quick lookup, but desktop is what should be optimized
I rarely code Roc on my iPhone
people do read tutorials on phones though
e.g. if they see Roc on Hacker News on their phone, and follow the link to start learning about it
One idea would be to make the text be optimized for line breaks (~60rem) and make the code blocks be full width.
But for that to look good we should probably align the column to the left so the full width code looks like it would on an editor.
That would also make it easier for adding extra content to the right (like secondary navigation, notes, or whatever... if we ever come to that)
Last updated: Jul 05 2025 at 12:14 UTC