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

[Feature Request]: [@storybook/nextjs] Are there any plans to support @next/font loading? #19710

Closed
madeleineostoja opened this issue Nov 2, 2022 · 1 comment

Comments

@madeleineostoja
Copy link

Is your feature request related to a problem? Please describe

I'm using Storybook v7 with NextJS 13, which introduced a new way you have to load fonts, using the @next/font package. It would be wonderful if Storybook supported this since Next abstracts away the output fonts.

Describe the solution you'd like

For Storybook to support using @next/font packages out of the box with the nextjs config/preset

Describe alternatives you've considered

Wrap all stories in a decorator that re-imports the fonts and re-declare's Next's CSS variable (as one example of how you can consume the fonts).

Are you able to assist to bring the feature to reality?

no

Additional context

No response

@madeleineostoja
Copy link
Author

Closing in favour of a bug report as it's easy to get caught out, if storybook uses any code that references the font loader (eg: global styles): #19711

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant