Skip to content

Migrate to System76 brand fonts (Fira Sans, Roboto Slab, Ubuntu Mono)#407

Merged
erinxocon merged 1 commit into
masterfrom
update-fonts
Jul 13, 2026
Merged

Migrate to System76 brand fonts (Fira Sans, Roboto Slab, Ubuntu Mono)#407
erinxocon merged 1 commit into
masterfrom
update-fonts

Conversation

@erinxocon

@erinxocon erinxocon commented Jul 13, 2026

Copy link
Copy Markdown
Member

Description

Replaces Starlight's default fonts with the brand typefaces used by the old Nuxt site's @system76/design package, loaded via Astro's built-in font provider.

  • Adds fonts config in astro.config.mjs (Fira Sans for body, Roboto Slab for headings, Ubuntu Mono for code) using fontProviders.fontsource()
  • Adds a custom Head.astro component to preload the body font and load the heading/mono fonts
  • Sets --sl-font, --sl-heading-font, and --sl-font-mono in variables.css to the new families
  • Fixes inline code and code block font size, which Starlight/Expressive Code default to smaller than body text (--sl-text-code / --sl-text-code-sm now match --sl-text-body) so code renders at the same size as surrounding text

@erinxocon
erinxocon requested a review from a team as a code owner July 13, 2026 17:57
jackpot51
jackpot51 previously approved these changes Jul 13, 2026

@jacobgkau jacobgkau left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This decision was made (and approved) by the marketing team.

The change seems a little jarring to me, but I think it's just because it's different. I don't think it's particularly unreadable with Fira.

@erinxocon
erinxocon merged commit 53538e4 into master Jul 13, 2026
2 checks passed
@erinxocon
erinxocon deleted the update-fonts branch July 13, 2026 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants