Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@waynegibson
Copy link
Contributor

TailwindCSS v4 had an update to the way you configure theme fonts variables. The font family variable has been renamed from --font-family-* variables to --font-* See this pull request

πŸ”— Linked issue

"resolves #409"

❓ Type of change

  • [ x] πŸ“– 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

To customize the font family this is how it now should be configured -

Old way

@theme {
 --font-family-display: "Inter", "sans-serif";
}

New way

@theme {
  --font-display: "Inter", "sans-serif";
}

TailwindCSS v4 had an update to the way you configure theme fonts variables.  See this pull request tailwindlabs/tailwindcss#14885
Copy link
Member

@danielroe danielroe left a comment

Choose a reason for hiding this comment

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

Thank you! ❀️

@danielroe danielroe changed the title Update 3.usage.md docs: update tailwind v4 example Dec 5, 2024
@codecov-commenter
Copy link

Codecov Report

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

Project coverage is 83.85%. Comparing base (9966271) to head (980e6ce).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #410   +/-   ##
=======================================
  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.

@danielroe danielroe merged commit ac8a496 into nuxt:main Dec 5, 2024
2 checks passed
@github-actions github-actions bot mentioned this pull request Dec 5, 2024
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