This example shows Styled-jsx (with SCSS) working for components written in TypeScript rendered both inside and outside of Storybook.
Deploy the example using Vercel or preview live with StackBlitz
Execute create-next-app with npm, Yarn, or pnpm to bootstrap the example:
npx create-next-app --example with-storybook-styled-jsx-scss with-storybook-styled-jsx-scss-appyarn create next-app --example with-storybook-styled-jsx-scss with-storybook-styled-jsx-scss-apppnpm create next-app --example with-storybook-styled-jsx-scss with-storybook-styled-jsx-scss-appnpm run storybook
# or
yarn storybooknpm run build-storybook
# or
yarn build-storybookYou can use Vercel to deploy Storybook. Specify storybook-static as the output directory.
This example combines the following examples, with some required extra config added: