0.0.1 • Published 5 years ago

gatsby-theme-typescript-storybook v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

gatsby-theme-typescript-storybook

This is a gatsby theme which acts as a base for themes requiring typescript and storybook. Feel free to fork this repository and make changes which suit your needs. Alternatively, you can pull this directly into a yarn workspace and use it as a local package without having to publish to NPM. How you use this is entirely up to your needs (you could even remove the theme elements and just use this as a starter with ts and storybook). This repo is minimal and unopinionated so does not direct you on how to build your site other than setting up Typescript and Storybook.

Usage

cd my-yarn-workspace-project //if you want it in a yarn workspace, otherwise skip
gatsby new gatsby-theme-my-theme-name https://github.com/danspratling/gatsby-theme-typescript-storybook

And in your site's gatsby-config.js file:

module.exports = {
  __experimentalThemes: [`gatsby-theme-typescript-storybook`]
}

After that, you can just use this like any other theme.