Skip to content

update fonts to Geist #2171

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/ParserOpenRPC/global.module.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.root {
--font-family-sans: 'Euclid Circular B', 'Roboto', sans-serif;
--font-family-sans: 'Geist', Arial, 'Helvetica Neue', Helvetica, sans-serif;
Copy link
Preview

Copilot AI Jul 24, 2025

Choose a reason for hiding this comment

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

This component is defining its own font-family-sans variable instead of using the centralized --font-mm-geist variable. Consider using var(--font-mm-geist) to maintain consistency with the rest of the application and avoid duplicating font stack definitions.

Suggested change
--font-family-sans: 'Geist', Arial, 'Helvetica Neue', Helvetica, sans-serif;
--font-family-sans: var(--font-mm-geist);

Copilot uses AI. Check for mistakes.

}

.rowWrap {
Expand Down
2 changes: 1 addition & 1 deletion src/scss/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
html {
box-sizing: border-box;

font-family: var(--font-mm-euclid);
font-family: var(--font-mm-geist);
font-size: 10px;
font-weight: normal;
font-style: normal;
Expand Down
2 changes: 1 addition & 1 deletion src/scss/commons/_typescale.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
}

.font-primary {
font-family: var(--font-mm-euclid);
font-family: var(--font-mm-geist);
}

/*
Expand Down
8 changes: 4 additions & 4 deletions src/scss/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
--font-mm-sans-mono: 'MM Sans Mono', 'Andale Mono', AndaleMono, monospace;
--font-mm-sans-variable: 'MM Sans Variable', Arial, 'Helvetica Neue', Helvetica, sans-serif;
--font-mm-centra: 'MM Centra No1', Arial, 'Helvetica Neue', Helvetica, sans-serif;
--font-mm-euclid: 'Euclid Circular B', Arial, 'Helvetica Neue', Helvetica, sans-serif;
--font-mm-geist: 'Geist', Arial, 'Helvetica Neue', Helvetica, sans-serif;
--ifm-color-primary: var(--developer-purple);
--ifm-color-primary-dark: var(--developer-purple-dark);
--ifm-color-primary-darker: var(--institution-purple-dark-2);
Expand Down Expand Up @@ -75,7 +75,7 @@

--ifm-font-family-monospace: var(--font-mm-sans-mono);
--ifm-heading-font-family: var(--ifm-font-family-monospace);
--ifm-font-family-base: var(--font-mm-euclid);
--ifm-font-family-base: var(--font-mm-geist);
--font-family-sans: var(--font-mm-sans);

--ifm-color-success: var(--developer-green-light);
Expand Down Expand Up @@ -786,7 +786,7 @@ ol {
}

div[class^='theme-announcement-bar'] {
font-family: var(--font-mm-euclid);
font-family: var(--font-mm-geist);
font-size: 1.4rem;
padding: 1rem 2rem;
text-align: center;
Expand Down Expand Up @@ -846,4 +846,4 @@ div[class^='theme-announcement-bar'] {
/* Add scroll padding to account for sticky product banner */
html {
scroll-padding-top: 10rem;
}
}
16 changes: 8 additions & 8 deletions src/scss/theme/_fonts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,33 +46,33 @@
}

@font-face {
font-family: 'Euclid Circular B';
font-family: 'Geist';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('/fonts/EuclidCircularB/EuclidCircularB-Regular-WebXL.ttf') format('truetype');
src: url('/fonts/Geist/Geist-Regular.woff2') format('woff2');
Copy link
Preview

Copilot AI Jul 24, 2025

Choose a reason for hiding this comment

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

Consider adding fallback font formats for better browser compatibility. While WOFF2 is modern and efficient, adding WOFF as a fallback would ensure support for older browsers that don't support WOFF2.

Suggested change
src: url('/fonts/Geist/Geist-Regular.woff2') format('woff2');
src: url('/fonts/Geist/Geist-Regular.woff2') format('woff2'),
url('/fonts/Geist/Geist-Regular.woff') format('woff');

Copilot uses AI. Check for mistakes.

}

@font-face {
font-family: 'Euclid Circular B';
font-family: 'Geist';
font-style: normal;
font-weight: 500;
font-display: swap;
src: url('/fonts/EuclidCircularB/EuclidCircularB-Medium.ttf') format('truetype');
src: url('/fonts/Geist/Geist-Medium.woff2') format('woff2');
}

@font-face {
font-family: 'Euclid Circular B';
font-family: 'Geist';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url('/fonts/EuclidCircularB/EuclidCircularB-Bold-WebXL.ttf') format('truetype');
src: url('/fonts/Geist/Geist-Bold.woff2') format('woff2');
}

@font-face {
font-family: 'Euclid Circular B';
font-family: 'Geist';
font-style: italic;
font-weight: 400;
font-display: swap;
src: url('/fonts/EuclidCircularB/EuclidCircularB-RegularItalic-WebXL.ttf') format('truetype');
src: url('/fonts/Geist/Geist-RegularItalic.woff2') format('woff2');
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added static/fonts/Geist/Geist-Bold.woff2
Binary file not shown.
Binary file added static/fonts/Geist/Geist-BoldItalic.woff2
Binary file not shown.
Binary file added static/fonts/Geist/Geist-Medium.woff2
Binary file not shown.
Binary file added static/fonts/Geist/Geist-MediumItalic.woff2
Binary file not shown.
Binary file added static/fonts/Geist/Geist-Regular.woff2
Binary file not shown.
Binary file added static/fonts/Geist/Geist-RegularItalic.woff2
Binary file not shown.
Loading