Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/toughyear/tailwind-react-boilerplate
This is a create-react-app and tailwind based boilerplate with both development and production scripts (minified CSS).
https://github.com/toughyear/tailwind-react-boilerplate
Last synced: 2 days ago
JSON representation
This is a create-react-app and tailwind based boilerplate with both development and production scripts (minified CSS).
- Host: GitHub
- URL: https://github.com/toughyear/tailwind-react-boilerplate
- Owner: toughyear
- License: mit
- Created: 2020-05-16T20:57:08.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-25T06:04:33.000Z (over 4 years ago)
- Last Synced: 2024-04-14T03:14:33.420Z (9 months ago)
- Language: CSS
- Homepage: https://tailwind-react-boilerplate.now.sh
- Size: 313 KB
- Stars: 13
- Watchers: 3
- Forks: 14
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# tailwind-react-boilerplate :snowflake:
[![GitHub license](https://img.shields.io/github/license/toughyear/tailwind-react-boilerplate?style=flat-square)](https://github.com/toughyear/tailwind-react-boilerplate/blob/master/LICENSE) [![Tailwind CSS](https://img.shields.io/badge/tailwind-css-blue?style=flat-square)](https://tailwindcss.com/) [![GitHub stars](https://img.shields.io/github/stars/toughyear/tailwind-react-boilerplate?style=flat-square)](https://github.com/toughyear/tailwind-react-boilerplate/stargazers)
#### [Go to Live Demo :arrow_upper_right:](https://tailwind-react-boilerplate.now.sh/)
This is a create-react-app and tailwind based boilerplate with both development and production scripts (minified CSS).
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
### How to use this boilerplate? :blue_heart:
Clone the repo or download this. Go to the directory and run command:
`npm install`This will install all the necessary dependencies.
Now you can start building your react app just like you would in a CRA. No need to import any css files. Use intellisense to find the appropriate classes and make an awesome project!Starting point for the project is: `index.js`
### Importing tailwind.generated.css :rocket:
You only need to add this once in index.js:
`import "./tailwind.generated.css";`
As it has already been added for you in index.js and is accesible to all components you don't need to do anything.## Available Scripts :penguin:
In the project directory, you can run:
### `npm start` :watch:
Runs the app in the development mode and watches for changes in tailwind classes.
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.The page will reload if you make edits.
You will also see any lint errors in the console.### `npm test` :briefcase:
Launches the test runner in the interactive watch mode.
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.### `npm run build` :hammer:
Builds the app for production to the `build` folder. Tailwind css generated is minified.
It correctly bundles React in production mode and optimizes the build for the best performance.The build is minified and the filenames include the hashes.
Your app is ready to be deployed!See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
## Leave a star !! :star:
Leave a github star if you found this repo useful. This helps in increasing the visibility of this repo and others finding it too.
## Have a question? :question:
If you have a question, feel free raise an issue in repo or ask me here: [twitter](https://twitter.com/RajeevSinghN).
## Do you want to contribute? :gift:
Become a contributor in maintaining this boilerplate.
Although we want to keep this repo as minimal as possible, we are also looking for adding more features and create a more complicated template project integrated with Firebase :fire: and other awesome features. Connect with me here: [twitter](https://twitter.com/RajeevSinghN).