Skip to content

Fix website local font paths and font-weight CSS#12966

Merged
freddyaboulton merged 7 commits intomainfrom
font-fixes
Mar 6, 2026
Merged

Fix website local font paths and font-weight CSS#12966
freddyaboulton merged 7 commits intomainfrom
font-fixes

Conversation

@hannahblair
Copy link
Collaborator

Description

We were getting this error when loading the website:

[404] GET /static/fonts/IBMPlexMono/IBMPlexMono-Bold.woff2       
  The request is outside of Vite serving allow list.  

We needed to change static/fonts/ to /fonts/ for the website only. Also, CSS font-weight needs numbers e.g. 400, 700, but the code was using file names like regular/bold.

@gradio-pr-bot
Copy link
Collaborator

gradio-pr-bot commented Mar 4, 2026

🪼 branch checks and previews

Name Status URL
Spaces ready! Spaces preview
Website ready! Website preview
Storybook ready! Storybook preview
🦄 Changes detected! Details

Install Gradio from this PR

pip install https://gradio-pypi-previews.s3.amazonaws.com/e1086e85d11a0913d5710ee2e49bcd82746b57cf/gradio-6.8.0-py3-none-any.whl

Install Gradio Python Client from this PR

pip install "gradio-client @ git+https://github.com/gradio-app/gradio@e1086e85d11a0913d5710ee2e49bcd82746b57cf#subdirectory=client/python"

Install Gradio JS Client from this PR

npm install https://gradio-npm-previews.s3.amazonaws.com/e1086e85d11a0913d5710ee2e49bcd82746b57cf/gradio-client-2.1.0.tgz

@gradio-pr-bot
Copy link
Collaborator

gradio-pr-bot commented Mar 4, 2026

🦄 change detected

This Pull Request includes changes to the following packages.

Package Version
gradio patch
website patch

  • Fix website local font paths and font-weight CSS

✅ Changeset approved by @freddyaboulton

  • Maintainers can remove approval by unchecking this checkbox.

Something isn't right?

  • Maintainers can change the version label to modify the version bump.
  • If the bot has failed to detect any changes, or if this pull request needs to update multiple packages to different versions or requires a more comprehensive changelog entry, maintainers can update the changelog file directly.

@freddyaboulton freddyaboulton added v: patch A change that requires a patch release t: fix A change that implements a fix labels Mar 4, 2026
@freddyaboulton
Copy link
Collaborator

What's the right way to test this? In the website preview I still see some console errors

image

@aliabd
Copy link
Collaborator

aliabd commented Mar 5, 2026

@freddyaboulton try a hard refresh

@aliabd
Copy link
Collaborator

aliabd commented Mar 5, 2026

actually never mind i'm still seeing the error

Screenshot 2026-03-05 at 4 26 05 AM

@hannahblair
Copy link
Collaborator Author

ah dang

@hannahblair
Copy link
Collaborator Author

^ that's why!

Copy link
Collaborator

@freddyaboulton freddyaboulton left a comment

Choose a reason for hiding this comment

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

LGTM @hannahblair ! Thank you

@freddyaboulton freddyaboulton merged commit 673feb4 into main Mar 6, 2026
21 of 22 checks passed
@freddyaboulton freddyaboulton deleted the font-fixes branch March 6, 2026 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t: fix A change that implements a fix v: patch A change that requires a patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants