You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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 thenextjs
config/presetDescribe 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
The text was updated successfully, but these errors were encountered: