Closed kazuyaseki closed 1 year ago
@kazuyaseki import it from stitches.config
import {globalStyles } from "../stitches.config"
export const decorators = [
(Story) => {
globalStyles();
return (
<div>
<Story />
</div>
);
},
];
stitches.config.ts
export const globalStyles = globalCss({ ... })
It worked thanks!!
Bug report
I'm sorry if this is a dumb question, but when I try to use globalStyles of stitches in storybook, it throws an error as follows
Describe the bug
To Reproduce
I have preview.jsx like this
where resetStyles are defined as follows
Expected behavior
I want to know how to apply globalStyles of stitches to storybook without error
Screenshots
System information