Load CSS in Storybook.

Simply import into preview.ts.

import { Preview } from '@storybook/your-framework';

import '../src/styles/global.css';

const preview: Preview = {
  parameters: {},
};

export default preview;

Official website here.

https://storybook.js.org/docs/configure/styling-and-css#importing-css-files

It can be applied simply with a short description.

よかったらシェアしてね!
目次