This example shows Styled-jsx (with SCSS) working for components written in TypeScript rendered both inside and outside of Storybook.
Preview the example live on StackBlitz:
Deploy the example using Vercel:
Execute create-next-app with npm or Yarn to bootstrap the example:
npx create-next-app --example with-storybook-styled-jsx-scss with-storybook-styled-jsx-scss-app
# or
yarn 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: