Skip to content

feat: add story for @nuxt/fonts module#946

Open
hacknug wants to merge 11 commits intonuxt-modules:mainfrom
hacknug:feat/nuxt-fonts
Open

feat: add story for @nuxt/fonts module#946
hacknug wants to merge 11 commits intonuxt-modules:mainfrom
hacknug:feat/nuxt-fonts

Conversation

@hacknug
Copy link
Copy Markdown
Contributor

@hacknug hacknug commented Sep 1, 2025

🔗 Linked issue

#820

Supersedes #921 because I'm a moron and made my changes to main on a auto-deleted codespace 😅

📚 Description

This PR adds a NuxtFonts component and a story to check if the @nuxt/fonts module is working correctly inside Storybook. At the moment, IT DOES NOT.

It also adds a /modules/fonts route to test the module is working correctly inside the app which IT DOES.

@netlify
Copy link
Copy Markdown

netlify Bot commented Sep 1, 2025

👷 Deploy request for nuxt-storybook pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit bbc9f2c

@hacknug
Copy link
Copy Markdown
Contributor Author

hacknug commented Oct 7, 2025

@tobiasdiez everything seems to be working ok on my end (both with nuxt and storybook dev).

Not sure why Showcase doesn't show the fonts on the only link I can see. Maybe fonts aren't being deployed as part of storybook standalone?

Solution only works for the default path: https://fonts.nuxt.com/get-started/configuration#assets

Should we add a mention in the docs? Make it configurable? Try to re-use the user provided config for the fonts module?


EDIT: Sorry it took me a while to get to this, I've been busy and I finally managed to make some time to look into this solution I had in my head for a while haha

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