Skip to content
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

docs: Callout limited default font-weights #399

Merged
merged 2 commits into from
Nov 24, 2024

Conversation

rijkvanzanten
Copy link
Contributor

πŸ”— Linked issue

Ref #209 (comment)

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

For a new user, it's not immediately obvious that only the 400 font weight is loaded for fonts. This PR aims to improve that by calling it out during the installation and troubleshooting steps.

@@ -63,6 +63,10 @@ div {

That's it! Nuxt Fonts will detect this and you should immediately see the web font loaded in your browser. [Read more about how it works](/advanced#how-it-works).

::callout{icon="i-heroicons-exclamation-triangle" color="amber"}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This icon/color combo is pulled from the Nuxt UI docs; not sure if the icon set used here is available in the docs for @nuxt/fonts

@@ -45,6 +45,12 @@ export default defineNuxtConfig({
})
```

#### `weights`
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was missing prior. Technically this is a somewhat unrelated change to the current PR, but figured I'd save your inbox from yet another issue/PR combo for this inoffensive tweak 😁

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests βœ…

Project coverage is 83.85%. Comparing base (8d28f32) to head (89bfccd).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #399   +/-   ##
=======================================
  Coverage   83.85%   83.85%           
=======================================
  Files          13       13           
  Lines        1016     1016           
  Branches      266      266           
=======================================
  Hits          852      852           
  Misses        158      158           
  Partials        6        6           

β˜” View full report in Codecov by Sentry.
πŸ“’ Have feedback on the report? Share it here.


🚨 Try these New Features:

@danielroe danielroe merged commit a58ba98 into nuxt:main Nov 24, 2024
2 checks passed
@github-actions github-actions bot mentioned this pull request Nov 24, 2024
@rijkvanzanten rijkvanzanten deleted the weights branch November 24, 2024 17:08
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