Skip to content

Commit

Permalink
Initial theme setup
Browse files Browse the repository at this point in the history
Inclues renaming, configuration, storybook setup, and first component
  • Loading branch information
Becca Bailey committed Jul 28, 2019
1 parent 7ac09a3 commit cb23ce2
Show file tree
Hide file tree
Showing 22 changed files with 20,907 additions and 154 deletions.
2 changes: 1 addition & 1 deletion demo/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
*/

module.exports = {
plugins: ["gatsby-theme-jam-example"],
plugins: ["gatsby-theme-writer"],
}
2 changes: 1 addition & 1 deletion demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"dependencies": {
"gatsby": "^2.13.1",
"gatsby-theme-jam-example": "*",
"gatsby-theme-events": "*",
"react": "^16.8.6",
"react-dom": "^16.8.6"
},
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions gatsby-theme-writer/.storybook/addons.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import '@storybook/addon-actions/register';
import '@storybook/addon-links/register';
10 changes: 10 additions & 0 deletions gatsby-theme-writer/.storybook/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { configure } from "@storybook/react"
import "typeface-petit-formal-script"

// automatically import all files ending in *.stories.js
const req = require.context("../stories", true, /\.stories\.js$/)
function loadStories() {
req.keys().forEach(filename => req(filename))
}

configure(loadStories, module)
File renamed without changes.
16 changes: 8 additions & 8 deletions theme/README.md → gatsby-theme-writer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ See the [live demo](https://gatsby-theme-jam-example.netlify.com)
To use this theme in your Gatsby sites, follow these instructions:

1. Install the theme

```sh
npm install --save gatsby-theme-jam-example
npm install --save gatsby-theme-writer
```

2. Add the theme to your `gatsby-config.js`:

```js
module.exports = {
plugins: [
'gatsby-theme-jam-example'
]
plugins: ["gatsby-theme-writer"],
}
```

Expand All @@ -43,9 +43,9 @@ To ensure your Theme Jam submission [follows the rules](https://themejam.gatsbyj
- [ ] Submit your theme at https://themejam.gatsbyjs.org

[a11y]: https://gatsbyjs.org/docs/making-your-site-accessible#how-to-improve-accessibility
[Lighthouse]: https://developers.google.com/web/tools/lighthouse/
[lighthouse]: https://developers.google.com/web/tools/lighthouse/
[axe]: https://www.deque.com/axe/
[WebPageTest]: http://webpagetest.org/
[Netlify]: https://netlify.com
[GitHub Pages]: https://pages.github.com/
[webpagetest]: http://webpagetest.org/
[netlify]: https://netlify.com
[github pages]: https://pages.github.com/
[npmpublish]: https://docs.npmjs.com/cli/publish
1 change: 1 addition & 0 deletions gatsby-theme-writer/gatsby-browser.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import "typeface-petit-formal-script"
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit cb23ce2

Please sign in to comment.