Skip to content

chore: remove custom web fonts from DevTools UI - #1044

Merged
antfu merged 1 commit into
nuxt:mainfrom
antfubot:chore/remove-custom-web-fonts
Jul 27, 2026
Merged

chore: remove custom web fonts from DevTools UI#1044
antfu merged 1 commit into
nuxt:mainfrom
antfubot:chore/remove-custom-web-fonts

Conversation

@antfubot

Copy link
Copy Markdown
Collaborator

Summary

Removes presetWebFonts (which fetched "DM Sans" / "DM Mono" / unused "Caveat" from Google Fonts) from the DevTools UnoCSS configs:

  • packages/devtools-ui-kit/src/unocss.ts
  • packages/devtools/client/uno.config.ts

The font-sans / font-mono utility classes used throughout the client keep working unchanged, since UnoCSS's presetWind3/preset-mini already ships system-font stacks (ui-sans-serif, system-ui, ... / ui-monospace, SFMono-Regular, ...) as the default theme values. The font-stylish (Caveat) utility had no usages anywhere and was dropped outright. This stops the DevTools client from fetching external Google Fonts at runtime.

Out of scope (left untouched, by design):

  • docs/ site's self-hosted Inter via @nuxt/fonts (separate marketing site)
  • playgrounds-ecosystem/modules/ — a fixture for dogfooding the @nuxt/fonts module's DevTools integration
  • AssetFontPreview.vue's dynamic @font-face and SocialTwitter.vue's TwitterChirp fallback stack — DevTools features for previewing a scanned project's own fonts / mocking a social card, not fonts DevTools itself loads

Verified locally: pnpm run lint, pnpm run build, pnpm run typecheck, pnpm run test:unit all pass.


This PR was created with the help of an agent.

@coderabbitai

coderabbitai Bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 7a790e1d-f995-474c-8d9d-27bf56f3bbe5

📥 Commits

Reviewing files that changed from the base of the PR and between 5e99b1e and cd8719e.

📒 Files selected for processing (2)
  • packages/devtools-ui-kit/src/unocss.ts
  • packages/devtools/client/uno.config.ts

📝 Walkthrough

Walkthrough

Removed presetWebFonts imports and configurations from the shared UnoCSS utility and the devtools UnoCSS configuration. Existing presets, transformers, and UI kit wiring remain unchanged.

Estimated code review effort: 1 (Trivial) | ~3 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly matches the main change: removing custom web fonts from the DevTools UI.
Description check ✅ Passed The description accurately explains the UnoCSS font preset removal and its effect on DevTools.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

Drop presetWebFonts (Google Fonts 'DM Sans'/'DM Mono'/unused 'Caveat')
from packages/devtools-ui-kit and packages/devtools/client UnoCSS
configs. The font-sans/font-mono utility classes keep working as-is,
now resolving to UnoCSS's built-in system font stacks instead of
fetching external web fonts.
@antfubot
antfubot force-pushed the chore/remove-custom-web-fonts branch from 5e99b1e to cd8719e Compare July 27, 2026 06:52
@antfu
antfu merged commit 06de1bb into nuxt:main Jul 27, 2026
4 of 6 checks passed
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.

2 participants