Skip to content

[docs] Consolidate to flex versions of Google Sans fonts#13518

Merged
sfshaza2 merged 2 commits into
mainfrom
feat/docs-simplify-font-setup
Jun 18, 2026
Merged

[docs] Consolidate to flex versions of Google Sans fonts#13518
sfshaza2 merged 2 commits into
mainfrom
feat/docs-simplify-font-setup

Conversation

@parlough

@parlough parlough commented Jun 18, 2026

Copy link
Copy Markdown
Member

Consolidate use of the original Google Sans fonts with the newer, publicly available ones that support variable axes. This increases consistency across the site and enables compliant use of the same fonts on forked sites.

Marketing site fonts were also updated to these in #13519.

@parlough parlough requested review from a team and sfshaza2 as code owners June 18, 2026 12:53
gemini-code-assist[bot]

This comment was marked as resolved.

@flutter-website-bot

flutter-website-bot commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

Staged preview of the updated docs.flutter.dev site (updated for commit 18d946b):

https://flutter-docs-prod--docs-pr13518-feat-docs-simplify-fon-s8oq80pp.web.app

@flutter-website-bot

flutter-website-bot commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

Staged preview of the updated flutter.dev site (updated for commit 18d946b):

https://flutter-dev-230821--www-pr13518-feat-docs-simplify-fon-t05qv5g7.web.app

parlough added a commit that referenced this pull request Jun 18, 2026
Corresponds to #13518, updating
the marketing site to use fonts consistent with the docs site. These
Google Sans Flex and Code fonts are publicly available and support
variable axes. This increases consistency across the sites and enables
compliant use of the same fonts on forked/translated sites.

- Updates CSS properties to be focused on use case not the value.
- Replaces manual font-weights to use one of the updated CSS properties.
- Converts uses of Google Sans and Roboto to Google Sans Flex.
- Converts uses of Roboto Mono to Google Sans Code.
- Enables swap on the fonts so font fetching and loading doesn't block
initial page rendering.
- Combines the requests into a singular request for slightly faster font
loading.

@sfshaza2 sfshaza2 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm. Thanks!

@sfshaza2 sfshaza2 merged commit 43bc5d0 into main Jun 18, 2026
15 checks passed
@sfshaza2 sfshaza2 deleted the feat/docs-simplify-font-setup branch June 18, 2026 17:08
conooi pushed a commit to dart-lang/site-www that referenced this pull request Jun 18, 2026
Corresponds to flutter/website#13518, updating
the Dart site to use newer fonts, consistent with the Flutter docs site.
These Google Sans Flex and Code fonts are publicly available and support
variable axes. This increases consistency across the sites and enables
compliant use of the same fonts on forked/translated sites.

- Replaces many manual font-weights to use one of the updated CSS
properties.
- Converts uses of Google Sans and Google Sans Text to Google Sans Flex.
- Converts uses of Google Sans Mono to Google Sans Code.
- Combines some of the requests for slightly faster font loading.
- Switches the blog from Noto Serif to Roboto Serif to be more
consistent with the nearby sans serif fonts.
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