diff --git a/README.md b/README.md index 2b51857..6117ce5 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,10 @@ Kick off your project with this opinionated boilerplate. This starter ships with - [Husky](https://github.com/typicode/husky) - [Jest](https://jestjs.io/) - [lint-staged](https://github.com/okonet/lint-staged) +- [PostCss](https://postcss.org/) - [Prettier](https://prettier.io/) - [Storybook](https://storybook.js.org/) +- [Tailwind CSS](https://tailwindcss.com/) - [TypeScript](https://www.typescriptlang.org/) _Have another more specific idea? You may want to check out the vibrant collection of [official and community-created starters](https://www.gatsbyjs.org/docs/gatsby-starters/)._ @@ -63,6 +65,7 @@ A quick look at the top-level files and directories you'll see. ├── LICENSE ├── package-lock.json ├── package.json + ├── postcss.config.js └── README.md 1. **`.storybook`**: This is a configuration directory for [Storybook](https://storybook.js.org/). Storybook is a UI development environment for your UI components. @@ -93,11 +96,15 @@ A quick look at the top-level files and directories you'll see. 14. **`package.json`**: A manifest file for Node.js projects, which includes things like metadata (the project’s name, author, etc). This manifest is how npm knows which packages to install for your project. -15. **`README.md`**: A text file containing useful reference information about your project. +15. **`postcss.config.js`**: This is the configuration file for [PostCSS](https://postcss.org/) -16. **`tsconfig.json`**: This is a [configuration file](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html) for [TypeScript](https://www.typescriptlang.org/). +16. **`README.md`**: A text file containing useful reference information about your project. -17. **`yarn.lock`** (See `package.json` below, first). This is an [automatically generated file](https://classic.yarnpkg.com/en/docs/yarn-lock/) based on the exact versions of your npm dependencies that were installed for your project. **(You won’t change this file directly).** +17. **`tailwind.config.js`**: This is the configuration file for [Tailwind CSS](https://tailwindcss.com/) + +18. **`tsconfig.json`**: This is a [configuration file](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html) for [TypeScript](https://www.typescriptlang.org/). + +19. **`yarn.lock`** (See `package.json` below, first). This is an [automatically generated file](https://classic.yarnpkg.com/en/docs/yarn-lock/) based on the exact versions of your npm dependencies that were installed for your project. **(You won’t change this file directly).** ## 🎓 Learning Gatsby diff --git a/gatsby-config.js b/gatsby-config.js index d7f019d..4f457e7 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -31,6 +31,7 @@ module.exports = { }, "gatsby-plugin-eslint", "gatsby-plugin-emotion", + `gatsby-plugin-postcss`, // this (optional) plugin enables Progressive Web App + Offline functionality // To learn more, visit: https://gatsby.dev/offline // `gatsby-plugin-offline`, diff --git a/package.json b/package.json index 0d71824..c7a2bd2 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "gatsby-image": "^2.4.4", "gatsby-plugin-manifest": "^2.4.5", "gatsby-plugin-offline": "^3.2.3", + "gatsby-plugin-postcss": "^2.3.3", "gatsby-plugin-react-helmet": "^3.3.1", "gatsby-plugin-sharp": "^2.6.4", "gatsby-source-filesystem": "^2.3.4", @@ -57,6 +58,8 @@ "lint-staged": ">=10", "prettier": "^2.0.5", "react-test-renderer": "^16.13.1", + "tailwindcss": "^1.4.6", + "twin.macro": "^1.3.0", "typescript": "^3.9.3" }, "keywords": [ diff --git a/postcss.config.js b/postcss.config.js new file mode 100644 index 0000000..077422c --- /dev/null +++ b/postcss.config.js @@ -0,0 +1,3 @@ +module.exports = () => ({ + plugins: [require("tailwindcss")], +}) diff --git a/src/components/__snapshots__/header.test.tsx.snap b/src/components/__snapshots__/header.test.tsx.snap index 2f4b5ad..04bfde9 100644 --- a/src/components/__snapshots__/header.test.tsx.snap +++ b/src/components/__snapshots__/header.test.tsx.snap @@ -5,51 +5,23 @@ Array [