Skip to content

Conversation

@LonMcGregor
Copy link
Contributor

A couple of styling issues are present on ubuntu, and likely other linux systems, because the font "Space Grotesk" is used:

  • Code blocks are not monospaced
  • inline code has line height issues
  • space grotesk is included in a "serif" font stack as well - it is a sans serif font

Also, throughout the different CSS files, a range of different font stacks are used for monospace fonts

This normalises all the monospace fonts to use the same font stack.

Checklist

@netlify
Copy link

netlify bot commented Nov 10, 2025

Deploy Preview for cyf-tracks ready!

Name Link
🔨 Latest commit 8b80acf
🔍 Latest deploy log https://app.netlify.com/projects/cyf-tracks/deploys/69145d201982c8000893552c
😎 Deploy Preview https://deploy-preview-1652--cyf-tracks.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Nov 10, 2025

Deploy Preview for cyf-curriculum ready!

Name Link
🔨 Latest commit 8b80acf
🔍 Latest deploy log https://app.netlify.com/projects/cyf-curriculum/deploys/69145d20bee7eb00080e37d1
😎 Deploy Preview https://deploy-preview-1652--cyf-curriculum.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 85 (no change from production)
Accessibility: 100 (no change from production)
Best Practices: 92 (no change from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Nov 10, 2025

Deploy Preview for cyf-common ready!

Name Link
🔨 Latest commit 8b80acf
🔍 Latest deploy log https://app.netlify.com/projects/cyf-common/deploys/69145d20c10a2a0007b3d0c7
😎 Deploy Preview https://deploy-preview-1652--cyf-common.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Nov 10, 2025

Deploy Preview for cyf-sdc ready!

Name Link
🔨 Latest commit 8b80acf
🔍 Latest deploy log https://app.netlify.com/projects/cyf-sdc/deploys/69145d205254000008b016fb
😎 Deploy Preview https://deploy-preview-1652--cyf-sdc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Nov 10, 2025

Deploy Preview for cyf-programming ready!

Name Link
🔨 Latest commit 8b80acf
🔍 Latest deploy log https://app.netlify.com/projects/cyf-programming/deploys/69145d20b055890008081e31
😎 Deploy Preview https://deploy-preview-1652--cyf-programming.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 85 (🟢 up 1 from production)
Accessibility: 100 (no change from production)
Best Practices: 92 (no change from production)
SEO: 90 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Nov 10, 2025

Deploy Preview for cyf-launch ready!

Name Link
🔨 Latest commit 8b80acf
🔍 Latest deploy log https://app.netlify.com/projects/cyf-launch/deploys/69145d20d3843c000848d92c
😎 Deploy Preview https://deploy-preview-1652--cyf-launch.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Nov 10, 2025

Deploy Preview for cyf-itd ready!

Name Link
🔨 Latest commit 8b80acf
🔍 Latest deploy log https://app.netlify.com/projects/cyf-itd/deploys/69145d2031a2dd00083339ae
😎 Deploy Preview https://deploy-preview-1652--cyf-itd.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 85 (🔴 down 8 from production)
Accessibility: 100 (no change from production)
Best Practices: 92 (no change from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Nov 10, 2025

Deploy Preview for cyf-piscine ready!

Name Link
🔨 Latest commit 8b80acf
🔍 Latest deploy log https://app.netlify.com/projects/cyf-piscine/deploys/69145d201982c80008935530
😎 Deploy Preview https://deploy-preview-1652--cyf-piscine.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 86 (🔴 down 8 from production)
Accessibility: 100 (no change from production)
Best Practices: 92 (no change from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@LonMcGregor LonMcGregor marked this pull request as draft November 10, 2025 12:10
@LonMcGregor
Copy link
Contributor Author

I have normalising the fonts to be the same, and removed the unused space grotesk.

Viewing on linux, The main homepage module grids for SDC and ITP, for example, are now entirely monospaced, where before they were sans serif. Were these pages always monospaced on mac?

@illicitonion I don't have a mac to test, do you? would you please be able to check the deploys above look the same?

@illicitonion
Copy link
Member

This was the front page on a mac before this change:

Screenshot 2025-11-10 at 13 51 34

And this is after:

Screenshot 2025-11-10 at 13 51 57

I think we probably don't want monospace all the things.

FWIW the standard CYF font is Raleway (which you can hopefully see on https://programming.codeyourfuture.io/prs-needing-review/) - we should maybe just standardise on it everywhere we want a non-monospace font?

@illicitonion illicitonion moved this from 📋 Backlog to 🏗 In progress in Curriculum Planning Nov 10, 2025
@LonMcGregor LonMcGregor marked this pull request as ready for review November 11, 2025 13:08
@LonMcGregor
Copy link
Contributor Author

@illicitonion Updated now so that:

  • Main page content uses default sans serif font for the users system
  • Page UI stuff like headers etc use Raleway, falling back to a sans serif font
  • Only code blocks will use monospace
  • All the different pages (itp, sdc, piscine) now use the same theme file for fonts

@LonMcGregor LonMcGregor self-assigned this Nov 11, 2025
Copy link
Member

@illicitonion illicitonion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This generally LGTM!

I looked through a few sample sprints, and a few things struck me as slightly off:

Can we clean those few things up? Then let's merge!

@LonMcGregor
Copy link
Contributor Author

That should be the main issue fixed. I have noticed a lot of other styling issues, like how the main page headings are different between SDC and ITP, but I will leave that for another time

@illicitonion
Copy link
Member

Those all look good now, but suddenly default block content has become serif for me? It looks like --theme-font--copy's first entry is 400 100%/1.5 system-ui - if I drop the leading 400 100%/1.5 it looks fine and sans-serif, but with it I get switched out to Times somehow.

@LonMcGregor
Copy link
Contributor Author

I had missed swapping out a font-family for a font. I hope it should all be fixed now

Copy link
Member

@illicitonion illicitonion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect, thank you so much!

@github-project-automation github-project-automation bot moved this from 🏗 In progress to 👀 In review in Curriculum Planning Nov 12, 2025
@illicitonion illicitonion merged commit 27d3518 into main Nov 12, 2025
35 checks passed
@illicitonion illicitonion deleted the lm-normalise-fonts branch November 12, 2025 13:26
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Curriculum Planning Nov 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants