Welcome to the Astro + Tailwind CSS Project Template repository! This template provides you with a solid foundation to kickstart your web development projects with modern tools and best practices. It's pre-configured with ESLint, Prettier, Husky, and Autoprefixer for a seamless development experience.
- Astro: Astro is an all-in-one web framework for building fast, content-focused websites.
- Tailwind CSS: A utility-first CSS framework for rapidly building custom designs.
- ESLint: Linting utility to enforce code quality and consistency.
- Prettier: Opinionated code formatter to keep your codebase neat and consistent.
- Husky: Git hooks made easy, ensuring code quality before committing.
- Autoprefixer: Automatically adds vendor prefixes to your CSS rules for better browser compatibility.
Follow these steps to get your project up and running:
-
Clone the Repository: Begin by cloning this repository to your local machine using
git clone https://github.com/richterich/astro-tailwindcss.git
. -
Navigate to the Project Directory: Move into the project directory with
cd astro-tailwindcss
. -
Install Dependencies: Run
npm install
oryarn install
to install all the necessary dependencies. -
Development Mode: Start the development server by running
npm run dev
oryarn dev
. This will launch the application and provide you with a local development URL. -
Build for Production: When you're ready to deploy your application, use
npm run build
oryarn build
to generate optimized and minified assets.
/
├── .husky/ # Husky dir
│ └── pre-commit # Pre-commit hooks
├── public/ # Public assets
│ ├── logo.svg # Astro logo
| └── favicon.svg # Favicon
├── src/ # Source code
│ ├── layouts/ # Layouts of a website
│ ├── pages/ # Pages of a website
│ ├── shared/ # Shared components
│ └── main.css # Main/Global styles
├── .eslintignore # ESLint ignore configuration
├── .gitignore # Git ignore configuration
├── .lintstagedrc # Lint Stage configuration
├── .prettierignore # Prettier ignore configuration
├── .eslintrc.cjs # ESLint configuration
├── prettier.config.js # Prettier configuration
├── postcss.config.js # PostCSS configuration
├── tailwind.config.js # Tailwind CSS configuration
├── package.json # Package configuration
├── LICENSE # License file
└── README.md # Project documentation (you're here!)
You are welcome to contribute to this project! To contribute, follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push your changes to your fork.
- Submit a pull request with a detailed description of your changes.
This project is licensed under the MIT License - see the LICENSE file for details.
Happy coding! If you have any questions or need further assistance, don't hesitate to reach out.