Gatsby starter that uses all the extras to get you up and running with scalable architecture, and workflow as fast as possible.
- Gatsby (v2)
- TypeScript (v4)
- Storybook (v5)
- Styled Components with Theming (v4)
- Styled Reset (Advanced)
- Netlify Config
- ESLint (Standard)
- Prettier
- React to SVG Generator
$ gatsby new my-awesome-site https://github.com/LinnJS/gatsby-scalable-typescript
$ cd my-awesome-site
$ yarn start || yarn develop
You are welcome to come up with other solutions, but we typically do this:
npm install -g svg-to-react-cli
(https://www.npmjs.com/package/svg-to-react-cli)- Navigate to the directory where there is your svg (e.g.
example.svg
) - Run
svgtoreact example Example
, this then createsExample.js
(the React component for the svg). You can then import this component like any other React commponent.
styled-components
(https://www.styled-components.com/).
- There is a theme object located in the globals directory, this is where styled are declared
- ThemeProvider is located in Layout where theme is passed to all child styled-components
ThemeProvider
(https://www.styled-components.com/docs/api#themeprovider).
Licensed under the MIT License.
See license for more information.