Skip to content

Commit dbb64c9

Browse files
committed
0 parents  commit dbb64c9

25 files changed

+24939
-0
lines changed

.all-contributorsrc

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
{
2+
"files": [
3+
"README.md"
4+
],
5+
"imageSize": 100,
6+
"commit": false,
7+
"contributors": [
8+
{
9+
"login": "impulse",
10+
"name": "impulse",
11+
"avatar_url": "https://avatars3.githubusercontent.com/u/8146736?v=4",
12+
"profile": "http://impuls.dev",
13+
"contributions": [
14+
"code"
15+
]
16+
},
17+
{
18+
"login": "gandreadis",
19+
"name": "Georgios Andreadis",
20+
"avatar_url": "https://avatars3.githubusercontent.com/u/5272244?v=4",
21+
"profile": "https://gandreadis.com",
22+
"contributions": [
23+
"code"
24+
]
25+
},
26+
{
27+
"login": "altruisticsoftware",
28+
"name": "Chris",
29+
"avatar_url": "https://avatars3.githubusercontent.com/u/12105346?v=4",
30+
"profile": "https://github.com/altruisticsoftware",
31+
"contributions": [
32+
"code"
33+
]
34+
},
35+
{
36+
"login": "dalwadani",
37+
"name": "Dhaifallah Alwadani",
38+
"avatar_url": "https://avatars1.githubusercontent.com/u/4618082?v=4",
39+
"profile": "https://github.com/dalwadani",
40+
"contributions": [
41+
"code"
42+
]
43+
},
44+
{
45+
"login": "nigelb135",
46+
"name": "Nigel Ball",
47+
"avatar_url": "https://avatars2.githubusercontent.com/u/815408?v=4",
48+
"profile": "http://nigelball.org",
49+
"contributions": [
50+
"ideas",
51+
"code"
52+
]
53+
},
54+
{
55+
"login": "monte-hayward",
56+
"name": "Monte Hayward",
57+
"avatar_url": "https://avatars3.githubusercontent.com/u/3780422?v=4",
58+
"profile": "https://github.com/monte-hayward",
59+
"contributions": [
60+
"code"
61+
]
62+
},
63+
{
64+
"login": "lukebennett88",
65+
"name": "Luke Bennett",
66+
"avatar_url": "https://avatars0.githubusercontent.com/u/3422401?v=4",
67+
"profile": "https://lukebennett.com.au",
68+
"contributions": [
69+
"code"
70+
]
71+
}
72+
],
73+
"contributorsPerLine": 7,
74+
"projectName": "gatsby-starter-tailwind",
75+
"projectOwner": "taylorbryant",
76+
"repoType": "github",
77+
"repoHost": "https://github.com"
78+
}

.eslintrc

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
// https://eslint.org/docs/user-guide/configuring#specifying-environments
3+
"env": {
4+
"browser": true,
5+
"node": true
6+
},
7+
// https://github.com/babel/babel-eslint
8+
"parser": "babel-eslint",
9+
"rules": {
10+
// https://eslint.org/docs/2.0.0/rules/strict
11+
"strict": 0
12+
},
13+
"settings": {
14+
"react": {
15+
"version": "detect"
16+
}
17+
},
18+
"extends": [
19+
// https://eslint.org/docs/rules/
20+
"eslint:recommended",
21+
// https://github.com/yannickcr/eslint-plugin-react#recommended
22+
"plugin:react/recommended",
23+
// https://github.com/benmosher/eslint-plugin-import
24+
"plugin:import/recommended"
25+
]
26+
}

.gitignore

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Project dependencies
2+
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
3+
.cache
4+
node_modules
5+
yarn-error.log
6+
7+
# Build directory
8+
/public
9+
10+
# macOS
11+
.DS_Store
12+
13+
# deployment-specific configs
14+
now.json

.prettierignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.cache
2+
package.json
3+
package-lock.json
4+
public

CONTRIBUTING.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## Contributing
2+
3+
Hey, there! 👋 Any and all contributions are welcome.
4+
5+
To lend a helping hand:
6+
7+
- [Fork the repository](https://help.github.com/articles/fork-a-repo/)
8+
- Make your desired changes
9+
- [Create a pull request](https://help.github.com/articles/creating-a-pull-request/)

LICENSE

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2020 Taylor Bryant
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
22+

README.md

+104
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
# Gatsby Starter Tailwind
2+
3+
[![All Contributors](https://img.shields.io/badge/all_contributors-7-orange.svg?style=flat-square)](#contributors)
4+
5+
<div align="center">
6+
<img src="https://image.ibb.co/cJjPN7/gatsby_tailwind.png" alt="Gatsby and Tailwind CSS logos">
7+
</div>
8+
9+
<div align="center">
10+
<strong>A <a href="https://www.gatsbyjs.org/">Gatsby</a> starter styled using <a href="https://tailwindcss.com/">Tailwind CSS</a>, a utility-first CSS framework.</strong><br />
11+
Uses <a href="https://www.purgecss.com/">PurgeCSS</a> to remove unused CSS.<br />
12+
Illustrations by <a href="https://undraw.co/">unDraw</a>.
13+
<br />
14+
<br />
15+
</div>
16+
17+
![alt text](https://image.ibb.co/jv6FC7/gatsby_starter_tailwind.png "Screenshot of Gatsby Starter Tailwind homepage")
18+
19+
<p align="center">View demo <a href="https://gatsby-starter-tailwind.oddstronaut.com/">here</a>.</p>
20+
21+
## What is Tailwind CSS?
22+
23+
> "Tailwind CSS is a utility-first CSS framework for rapidly building custom user interfaces."
24+
> [Tailwind CSS](https://tailwindcss.com)
25+
26+
## What is Gatsby?
27+
28+
> "Gatsby is a free and open source framework based on React that helps developers build blazing fast websites and apps." -[Gatsby](https://www.gatsbyjs.org/)
29+
30+
## Get started
31+
32+
Install the Gatsby CLI:
33+
34+
```sh
35+
npm i --global gatsby-cli
36+
```
37+
38+
Create a new Gatsby project using this starter:
39+
40+
```sh
41+
gatsby new my-new-website https://github.com/taylorbryant/gatsby-starter-tailwind
42+
```
43+
44+
Build a stylesheet from your Tailwind CSS config and run the project in development mode:
45+
46+
```sh
47+
cd my-new-website
48+
npm run develop
49+
```
50+
51+
## Format and lint
52+
53+
- `npm run analyze` - See what ESLint and Prettier can fix
54+
- `npm run fix` - Run Prettier and ESLint with the `--fix` option
55+
56+
## Build your site
57+
58+
Use `npm run build` to build your site for production.
59+
60+
## Deployment
61+
62+
### Netlify
63+
64+
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/taylorbryant/gatsby-starter-tailwind)
65+
66+
## Resources
67+
68+
- [Gatsby documentation](https://www.gatsbyjs.org/docs/)
69+
- [Tailwind documentation](https://tailwindcss.com/docs/what-is-tailwind/)
70+
- [Prettier documentation](https://prettier.io/docs/en/index.html)
71+
- [ESLint documentation](https://eslint.org/docs/user-guide/configuring)
72+
73+
## License
74+
75+
[MIT](https://github.com/taylorbryant/gatsby-starter-tailwind/blob/master/LICENSE.md)
76+
77+
## How you can help
78+
79+
Enjoying Gatsby Starter Tailwind and want to help? You can:
80+
81+
- [Create an issue](https://github.com/taylorbryant/gatsby-starter-tailwind/issues/new) with some constructive criticism
82+
- [Submit a pull request](https://github.com/taylorbryant/gatsby-starter-tailwind/compare) with some improvements to the project
83+
84+
## Contributors
85+
86+
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
87+
88+
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
89+
<!-- prettier-ignore -->
90+
<table>
91+
<tr>
92+
<td align="center"><a href="http://impuls.dev"><img src="https://avatars3.githubusercontent.com/u/8146736?v=4" width="100px;" alt="impulse"/><br /><sub><b>impulse</b></sub></a><br /><a href="https://github.com/taylorbryant/gatsby-starter-tailwind/commits?author=impulse" title="Code">💻</a></td>
93+
<td align="center"><a href="https://gandreadis.com"><img src="https://avatars3.githubusercontent.com/u/5272244?v=4" width="100px;" alt="Georgios Andreadis"/><br /><sub><b>Georgios Andreadis</b></sub></a><br /><a href="https://github.com/taylorbryant/gatsby-starter-tailwind/commits?author=gandreadis" title="Code">💻</a></td>
94+
<td align="center"><a href="https://github.com/altruisticsoftware"><img src="https://avatars3.githubusercontent.com/u/12105346?v=4" width="100px;" alt="Chris"/><br /><sub><b>Chris</b></sub></a><br /><a href="https://github.com/taylorbryant/gatsby-starter-tailwind/commits?author=altruisticsoftware" title="Code">💻</a></td>
95+
<td align="center"><a href="https://github.com/dalwadani"><img src="https://avatars1.githubusercontent.com/u/4618082?v=4" width="100px;" alt="Dhaifallah Alwadani"/><br /><sub><b>Dhaifallah Alwadani</b></sub></a><br /><a href="https://github.com/taylorbryant/gatsby-starter-tailwind/commits?author=dalwadani" title="Code">💻</a></td>
96+
<td align="center"><a href="http://nigelball.org"><img src="https://avatars2.githubusercontent.com/u/815408?v=4" width="100px;" alt="Nigel Ball"/><br /><sub><b>Nigel Ball</b></sub></a><br /><a href="#ideas-nigelb135" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/taylorbryant/gatsby-starter-tailwind/commits?author=nigelb135" title="Code">💻</a></td>
97+
<td align="center"><a href="https://github.com/monte-hayward"><img src="https://avatars3.githubusercontent.com/u/3780422?v=4" width="100px;" alt="Monte Hayward"/><br /><sub><b>Monte Hayward</b></sub></a><br /><a href="https://github.com/taylorbryant/gatsby-starter-tailwind/commits?author=monte-hayward" title="Code">💻</a></td>
98+
<td align="center"><a href="https://lukebennett.com.au"><img src="https://avatars0.githubusercontent.com/u/3422401?v=4" width="100px;" alt="Luke Bennett"/><br /><sub><b>Luke Bennett</b></sub></a><br /><a href="https://github.com/taylorbryant/gatsby-starter-tailwind/commits?author=lukebennett88" title="Code">💻</a></td>
99+
</tr>
100+
</table>
101+
102+
<!-- ALL-CONTRIBUTORS-LIST:END -->
103+
104+
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!

gatsby-browser.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import "./src/css/style.css";

gatsby-config.js

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
const resolveConfig = require("tailwindcss/resolveConfig");
2+
const tailwindConfig = require("./tailwind.config.js");
3+
4+
const fullConfig = resolveConfig(tailwindConfig);
5+
6+
module.exports = {
7+
siteMetadata: {
8+
title: `Gatsby Starter Tailwind`,
9+
description: `Gatsby starter styled with Tailwind`,
10+
author: `@taylorbryant`,
11+
},
12+
plugins: [
13+
`gatsby-plugin-eslint`,
14+
`gatsby-plugin-react-helmet`,
15+
{
16+
resolve: `gatsby-plugin-manifest`,
17+
options: {
18+
name: `gatsby-starter-tailwind`,
19+
short_name: `starter`,
20+
start_url: `/`,
21+
background_color: fullConfig.theme.colors.white,
22+
theme_color: fullConfig.theme.colors.teal["400"],
23+
display: `minimal-ui`,
24+
icon: `src/images/tailwind-icon.png`,
25+
},
26+
},
27+
{
28+
resolve: `gatsby-plugin-postcss`,
29+
options: {
30+
postCssPlugins: [
31+
require(`tailwindcss`)(tailwindConfig),
32+
require(`autoprefixer`),
33+
...(process.env.NODE_ENV === `production`
34+
? [require(`cssnano`)]
35+
: []),
36+
],
37+
},
38+
},
39+
`gatsby-plugin-offline`,
40+
],
41+
};

netlify.toml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build]
2+
command = "npm run build"
3+
publish = "public/"

0 commit comments

Comments
 (0)