Post

happy sunday! fonts.nuxt.com v1 is out ๐ŸŽ‰ if you haven't tried it, here's how: 1๏ธโƒฃ use `font-family` in css or tailwind โœ… ... and you're done! nuxt will detect the font, self-host it, and generate preloads + font metrics to cut layout shift + load time no configuration required โœจ

๐Ÿ‘‰ it's built with three other libraries that also just reached v1 ๐ŸŽ‚ โšช `unifont` - to resolve metadata โšช `fontaine` - to cut layout shift โšช `fontless` - to apply it agnostically for all vite-based frameworks โšก

0 reposts2 likes

plus, some long-requested new features: ๐ŸŽ›๏ธ arbitrary variable axes โœ‚๏ธ subset fonts down to the glyphs you use ๐Ÿ‹๏ธ named weights - `weights: ['medium', 'semibold']` โšก preload by subset or unicode range

oh, and the devtools panel is all new ๐Ÿ’… you can easily see every family resolved, which provider it comes from, where the face is used, and any warnings ... ๐Ÿ‘‰ plus, it's built on devfra.me - a framework-neutral foundation for devtools from @antfu.me

devfra.meBuild a devtool once. Mount it anywhere.Devframe is a framework-neutral foundation for devtools. One definition becomes a Web Standard handler you can mount into any host framework, ship as a CLI or static report, and expose to coding agent...

thank you to everyone who got us here โค๏ธ โ€ฆ and let us know what you think! ๐Ÿ™