Skip to content

Conversation

@danciaclara
Copy link
Collaborator

@danciaclara danciaclara commented Sep 10, 2025

Description

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Improvement (change that would cause existing functionality to not work as expected)
  • Code refactoring
  • Performance improvements
  • Documentation update

Screenshots and Media (if applicable)

Test Scenarios

References

Summary by CodeRabbit

  • Style

    • Switched site typography to the Satoshi variable font for headings and body text.
    • Improved weight rendering using variable font settings; harmonized menu/navbar weights.
    • Added subtle letter-spacing for body text for readability.
    • Increased sidebar category link font size from 13px to 14px.
  • Performance

    • Updated font preloads to use Satoshi variable font.
    • Removed unused legacy font preloads to reduce page weight and improve load times.

@vercel
Copy link

vercel bot commented Sep 10, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
docs Ready Ready Preview Comment Sep 10, 2025 2:40pm

@coderabbitai
Copy link

coderabbitai bot commented Sep 10, 2025

Walkthrough

Replaces Nacelle fonts with Satoshi variable font. Updates Docusaurus head preload tags accordingly. Adjusts CSS: font-family variables, @font-face, new weight variables, letter-spacing, and minor typography tweaks (menu link weight via font-variation-settings and a sidebar sublist font-size increase).

Changes

Cohort / File(s) Summary
Head font preloads
docusaurus.config.ts
Reworked headTags: remove Nacelle OTF preloads; add Satoshi-Variable.ttf preload; update MIME types to font/ttf; retain IBM Plex Mono and Google Fonts preloads. No exported API changes.
CSS typography and font setup
src/css/custom.css
Switch site fonts from Nacelle to Satoshi variable font. Add @font-face for Satoshi variable (wght 400–680). Update --ifm font-family variables. Introduce weight variables. Add body letter-spacing, menu link font-variation-settings, and bump a sidebar sublist font-size to 14px. Remove old Nacelle @font-face blocks.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • sriramveeraghanta
  • srinivaspendem

Pre-merge checks (3 passed)

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title “Updated font to Satoshi” directly and succinctly reflects the primary change in this pull request, which replaces the existing Nacelle font setup with the Satoshi variable font across configuration and CSS files. It is concise and focused on the main purpose of the update without extraneous detail, making it easily understood by teammates reviewing branch history.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.

Poem

In burrows of bytes, I twitch my nose,
Swapping Nacelle’s threads for Satoshi’s clothes.
Letters hop lighter, weights smoothly glide,
A variable breeze by the sidebar’s side.
Preloads pruned, the pages sing—
Thump-thump! goes the type as I spring. 🐇✨

Tip

👮 Agentic pre-merge checks are now available in preview!

Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.

  • Built-in checks – Quickly apply ready-made checks to enforce title conventions, require pull request descriptions that follow templates, validate linked issues for compliance, and more.
  • Custom agentic checks – Define your own rules using CodeRabbit’s advanced agentic capabilities to enforce organization-specific policies and workflows. For example, you can instruct CodeRabbit’s agent to verify that API documentation is updated whenever API schema files are modified in a PR. Note: Upto 5 custom checks are currently allowed during the preview period. Pricing for this feature will be announced in a few weeks.

Please see the documentation for more information.

Example:

reviews:
  pre_merge_checks:
    custom_checks:
      - name: "Undocumented Breaking Changes"
        mode: "warning"
        instructions: |
          Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).

Please share your feedback with us on this Discord post.

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch new-font-update

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sriramveeraghanta sriramveeraghanta merged commit bae11a3 into master Sep 10, 2025
2 of 3 checks passed
@sriramveeraghanta sriramveeraghanta deleted the new-font-update branch September 10, 2025 14:42
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (3)
src/css/custom.css (3)

76-82: Drop unnecessary !important on sidebar sublist font-size

If not required, avoid increasing specificity debt.

-  font-size: 14px !important;
+  font-size: 14px;

532-536: Scope global letter-spacing to avoid affecting code/monospace

Global 0.02em can harm code alignment. Reset for code.

Add (outside this block):

code, pre, kbd, samp { letter-spacing: normal; }

879-888: Add robust fallbacks to font-family variables

Improves resilience if Satoshi fails to load and aligns with system stacks.

-     --ifm-font-family-base: 'Satoshi';
-     --ifm-heading-font-family: 'Satoshi';
-     --ifm-font-family-monospace: 'IBM Mono';
+     --ifm-font-family-base: 'Satoshi', Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
+     --ifm-heading-font-family: 'Satoshi', Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
+     --ifm-font-family-monospace: 'IBM Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 27e3869 and 74ff053.

⛔ Files ignored due to path filters (5)
  • static/fonts/Nacelle/Nacelle-Bold.otf is excluded by !**/*.otf
  • static/fonts/Nacelle/Nacelle-Light.otf is excluded by !**/*.otf
  • static/fonts/Nacelle/Nacelle-Regular.otf is excluded by !**/*.otf
  • static/fonts/Nacelle/Nacelle-SemiBold.otf is excluded by !**/*.otf
  • static/fonts/Satoshi/Satoshi-Variable.ttf is excluded by !**/*.ttf
📒 Files selected for processing (2)
  • docusaurus.config.ts (1 hunks)
  • src/css/custom.css (5 hunks)
🔇 Additional comments (2)
docusaurus.config.ts (1)

101-104: Add WOFF2 asset and update preload
The file static/fonts/Satoshi/Satoshi-Variable.woff2 is missing; add it and then update the preload link as shown below:

- href: "/fonts/Satoshi/Satoshi-Variable.ttf",
+ href: "/fonts/Satoshi/Satoshi-Variable.woff2",
  as: "font",
- type: "font/ttf",
+ type: "font/woff2",

No Nacelle references detected.

src/css/custom.css (1)

840-845: Fix @font-face: invalid font-style, add WOFF2 with TTF fallback, split faces, and verify weight range

   @font-face {
       font-family: 'Satoshi';
-      src: url('/fonts/Satoshi/Satoshi-Variable.ttf') format('truetype');
+      src:
+        url('/fonts/Satoshi/Satoshi-Variable.woff2') format('woff2-variations'),
+        url('/fonts/Satoshi/Satoshi-Variable.ttf') format('truetype');
-      font-weight: 400 680;
+      font-weight: [axis-min] [axis-max];  /* replace with the variable font’s actual weight‐axis min/max */
       font-style: normal;
       font-display: swap;
   }
+
+@font-face {
+  font-family: 'Satoshi';
+  src:
+    url('/fonts/Satoshi/Satoshi-Variable.woff2') format('woff2-variations'),
+    url('/fonts/Satoshi/Satoshi-Variable.ttf') format('truetype');
+  font-weight: [axis-min] [axis-max];
+  font-style: italic;
+  font-display: swap;
+}

Manually verify the Satoshi variable font’s weight‐axis range (min/max) and replace [axis-min] [axis-max] accordingly.

Comment on lines 545 to 548
.menu__link {
font-family: var(--ifm-font-family-base);
font-variation-settings: 'wght' 600;
}
Copy link

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Don’t force weight via font-variation-settings on all menu links

This overrides font-weight (500/600) states and breaks fallbacks. Use font-weight only.

-  font-variation-settings: 'wght' 600; 
+  /* rely on font-weight declarations above (500) and in active/hover states */
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
.menu__link {
font-family: var(--ifm-font-family-base);
font-variation-settings: 'wght' 600;
}
.menu__link {
font-family: var(--ifm-font-family-base);
/* rely on font-weight declarations above (500) and in active/hover states */
}
🤖 Prompt for AI Agents
In src/css/custom.css around lines 545 to 548, the .menu__link rule is forcing
weight via font-variation-settings which overrides font-weight states and breaks
fallbacks; remove the font-variation-settings declaration and replace it with an
explicit font-weight (e.g. font-weight: 600;) so that normal font-weight
fallbacks and non-variable fonts work correctly, or limit
font-variation-settings to a selector that only applies when you know a variable
font is loaded.

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